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_value ... how can I get it to work?

Status
Not open for further replies.

MikeBronner

Programmer
May 9, 2001
756
US
Hi guys,

I'm trying to get the following settings to work:

- running multiple virtual hosts, defined in httpd.conf
- want to set up following php values in only one virtual host:
- include_path
- doc_root
- auto_prepend

However, it won't recognize the values I have saved in the <virtualdirectory> in httpd.conf, but instead uses those in php.ini. If I disable the settings in php.ini (by putting a ';' in front of the line), it resorts to use some defeault values, and not those in httpd.conf. The following is my virtual host settings:

DocumentRoot /usr/local/httpd/htdocs/hengeworks/public_html
ServerName hengeworks.com
DirectoryIndex index.php index.html
ServerAdmin webmaster@emmgee.com
php_value include_path /includes
php_value doc_root /usr/local/httpd/htdocs/hengeworks/public_html
php_value auto_prepend_file includes.php



Any help is greatly appreciated!! Thanks ;-) Take Care,
Mike
 
Have you looked into the functions that assigns temporary values to the php_ini variables?
 
I found the error of my ways: I had accidentally declared two identical virtual servers. After deleting the wrond one, everything is working fine. Take Care,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top