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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting php off the ground

Status
Not open for further replies.

bobbydale81

IS-IT--Management
Dec 9, 2005
33
US
My php.ini file is located in two different places on my drive /usr/local/php/php.ini and /etc/php.ini. Both are configured exactly the same; however, PHP is not behaving the way that I have configured it in both files.

One example: My session.save_path is set to /var/ in both files, yet PHP continues to use /tmp for the session.save_path. It does this with a few other configuration options.

Any ideas?

Thanks!
Dale
 
Ask PHP where it expects php.ini to be.

Run a script that consists entirely of:

<?php
phpinfo();
?>

and look for "Configuration File (php.ini) Path" in the output.



Want the best answers? Ask the best questions! TANSTAAFL!
 
Configuration File (php.ini) Path = /usr/local/php"

That is where I already have the file, but the options I have in the file, specifically session.save_path, are not taking effect. Could this be a permissions issue? The php.ini file is owned by root and is in the group root. Should it be something different? Perhaps, the same group that httpd is a part of?

Thanks!
Dale
 
That shouldn't matter, so long has the file is world-readable.

Did you restart Apache after editing php.ini? If you're running PHP as a web server module, the changes won't take effect until you do.



Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top