Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Dec 2003
    Posts
    124

    Default PHP 5.1.4 and PHP.INI local values not bieng set

    Recently got a brand new server, and upgraded to php 5.1.4. However, custom php.ini in users public_html or (sub-directories, since php.ini files only work in the folder they are in). Doesn't work.

    I cannot set any local value, and all values are set to the master value.

    Can anyone confirm that they can set a custom local value for php in php 5.1.4? If they can anyone know what could be wrong with my setup?

  2. #2
    Member
    Join Date
    Jan 2004
    Posts
    25

    Default Php not running as CGI ?

    Hey Mysteerie !

    Just a quick guess : Could it be that you compiled PHP as an apache module whereas you normally us it as CGI ?

    Setting parameters in php.ini in the webroot only works if PHP is compiled as CGI.

    You can easily check whether your server uses PHP as CGI by using the phpinfo() command.

    PHPSuExec also forces the use of PHP as CGI. Maybe you forgot to enable it ?

    Hope this helps, let us know if it worked.

    Best regards,
    Florian

    http://www.tizoo.com

  3. #3
    Member
    Join Date
    Dec 2003
    Posts
    124

    Default

    Server API CGI is what I'm seeing in phpinfo. Also yea forgot t mention that phpsuexec is enabled (users are running under thier own name for php scripts). Also I'm running apache 1.3.36

  4. #4
    Member
    Join Date
    Dec 2003
    Posts
    124

    Default

    Just tested this on another server, upgraded to php 5.1.4 and php.ini didn't work. The configuration file line was reading from the master php.ini and not the local one located in the user's directory. I did downgrade to php 5.0.5 and the php.ini seemed to work again in the user's directory. Though I rather find a better solution to this, anyone can point me in the right direction?

Similar Threads & Tags
Similar threads

  1. PHP: Error parsing /usr/local/lib/php.ini on line 827
    By Nicarlo in forum New User Questions
    Replies: 9
    Last Post: 04-29-2011, 10:13 PM
  2. PHP: Error parsing /usr/local/lib/php.ini on line 782
    By BerbBrown in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-11-2011, 05:07 PM
  3. PHP: Error parsing /usr/local/lib/php.ini on line 1136
    By desiguru in forum New User Questions
    Replies: 1
    Last Post: 12-08-2009, 07:11 PM
  4. Please help - PHP values htaccess/php.ini
    By jeroman8 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-13-2008, 10:01 AM
  5. Disabling local php.ini while php still runs in SUExec mode
    By gizmoh in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-10-2005, 11:34 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube