Jump to content

Changing PHP Local Values


Recommended Posts

Hi all,

 

Just to let you know, I'm pretty new to this...

 

I'm trying to change some of the php local configuration values.  I can sucessfully change the master values by editing the default php.ini file, but this does not change the local values.  This is a clean install on my own test server so I have full access.  I've been doing a lot of googling and so far have not had any success.

 

What I can tell you is that I followed the following instructions to install Linux: -

 

http://www.howtoforge.org/perfect-server-ubuntu8.04-lts

 

and installed ISP-Config (this runs under it's own apache so should not make any difference).

 

The httpd.conf file is empty.

$_SERVER['GATEWAY_INTERFACE'] = CGI/1.1 (I believe this means PHP is running as CGI?)

 

I hope this is enough information so that someone might be able to point me in the right direction?

 

Many thanks in advance!  ;D

 

Mike.

Link to comment
https://forums.phpfreaks.com/topic/136815-changing-php-local-values/
Share on other sites

Solved at last...

 

Firstly, Ubuntu uses apache2.conf instead of httpd.conf (explaining why it is blank).

 

ISP Config uses a virtual hosts configuration file, but on my system this was located here (below), rather than vhosts.conf: -

 

/etc/apache2/vhosts/Vhosts_ispconfig.conf

 

Changing the relevant lines in this file updated my php local configuration settings.  You may find something similar to the following command very useful in locating where the changes are being made: -

 

grep -H -r "safe_mode" /etc/apache2/

 

Hope this helps someone,

 

Mike.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.