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
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.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.