Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php.ini

Status
Not open for further replies.

axman505

Technical User
Jun 20, 2001
489
US
If i compilied php with the following options:
./configure --with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/php --with-mysql=/usr/local/mysql


where do i put my php.ini file?
 
is that the php default? becaues i didnt give any compile options for where ot place the ini file.
 
Here's a neat thing, if you run a phpinfo, it will tell you were to put your php.ini

The sixth line says

Configuration file (php.ini) path

If it says something like
/etc/php.ini

It means it found the file and is using it

if it says something like
/etc

It means it's looking in the /etc directory but not finding anything, so it's just using defaults.

-Rob
 
I don't know.

I always compile PHP from source, but I also always specify --with-config-file-path=/etc as an option to configure.

If you can get it running, write a script that outputs phpinfo(). It will tell you where it expects the file to be. Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top