LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-19-2005, 08:02 PM   #1
dtra
Member
 
Registered: Nov 2004
Distribution: fc4
Posts: 104

Rep: Reputation: 15
php5 configure with different php.ini file


hi all

i'm trying to compile php5 to use a different php.ini file
in my configure line i have this, among a lot of other stuff

'--with-config-file=/etc/php5.ini' '--with-config-file-path=/etc'

but the php5.ini file is never created
i ran make, and make install afterwards but the file still did not appear
does the position of the two lines above in the configure options matter?
cos they are at the end

using redhat 9, apache 2

the whole config line if you need that
Code:
'./configure' 'i686-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' 
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' 
'--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' 
'--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' 
'--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' 
'--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' 
'--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' 
'--with-bz2' '--with-curl' '--with-dom=/usr' '--with-dom-xslt=/usr' 
'--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr/local' 
'--with-gd=/usr' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' 
'--with-gettext=shared' '--with-ncurses' '--with-gmp' '--with-iconv' 
'--with-jpeg-dir=/usr' '--with-openssl' '--with-pear' '--with-png' '--with-pspell' 
'--with-regex=system' '--with-xml' '--with-expat-dir=/usr' 
'--with-zlib-dir=/usr/local' '--with-layout=GNU' '--enable-bcmath' 
'--enable-debugger' '--enable-exif' '--enable-ftp=shared' 
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' 
'--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-discard-path' 
'--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' 
'--without-oci8' '--with-imap=shared' '--with-imap-ssl' 
'--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr'
 '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' 
'--enable-ucd-snmp-hack' '--enable-memory-limit' '--enable-bcmath' 
'--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' 
'--enable-dio' '--enable-mcal' '--enable-mbstring' '--enable-mbstr-enc-trans'
 '--disable-experimental-zts' '--with-apxs2filter' 
'--with-mysql-sock=/var/lib/mysql/' '--enable-simplexml' 
'--with-config-file=/etc/php5.ini' '--with-mysqli=/usr/bin/mysql_config'
thanks
dave

Last edited by dtra; 01-19-2005 at 08:11 PM.
 
Old 01-19-2005, 08:43 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You can copy the php.ini-dist (I think that's the correct name) from the source directory to the location you specified for it, and the edit it to suit your environment. IIRC PHP expects you to do this yourself so you make sure to look at the config file.
 
Old 01-19-2005, 09:04 PM   #3
dtra
Member
 
Registered: Nov 2004
Distribution: fc4
Posts: 104

Original Poster
Rep: Reputation: 15
hi, thanks for your reply
i tried putting the file there
but the problem is, and i probably should have mentioned this earlier, we are trying to install and run side-by-side with php4
it doesn't seem to want to use /etc/php5.ini
just /etc/php.ini
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
editing a php.ini file ilustrate Linux - General 4 07-13-2005 01:16 PM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 12:05 PM
Question about php.ini file. jon_k Linux - Software 0 08-07-2004 06:52 AM
PHP.ini Troubles on conf file Gerardoj Linux - General 3 03-24-2004 09:03 PM
php.ini and file uploads gblue Linux - Newbie 0 02-29-2004 06:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration