Forum Moderators: phranque

Message Too Old, No Replies

Overwrite PHP.ini Settings in vhost.conf

Apache2 ignores PHP Settings in special Config file

         

Grumbler85

11:14 pm on Nov 25, 2008 (gmt 0)

10+ Year Member



Hello,

i got a problem on my WebServer with Apache2 Server which ignores some php_admin_* settings in a special config File.

The issue applies to a config file which is loaded from another one automatically created by Plesk.

So i got 2 Files: httpd.include (including some PHP Settings i want to overwrite) and vhost.conf (which is included by httpd.include)

Now i try to change the open_basedir and the safe_mode settings of Apache, but all it does on restarting the vhost is ignoring my settings

I tried to get information about this issue via google and all i found were errornous configs or typos in the filename. But neither applies for me as i can see.

I would be very happy if someone had an idea.

Greets Grumbler

coopster

10:47 pm on Dec 1, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, Grumbler85.

If you are using a Plesk control panel, there is a checkbox in the "setup" area for each domain. On that page there will be another checkbox for PHP and PHP safe mode. When you modify the vhost.conf directly you can initiate a plesk rebuild by running a certain plesk admin command. I cannot recall the command nor syntax off hand, but it is in their manual. Don't forget to restart the Apache server.