Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member bmcpanel's Avatar
    Join Date
    Jun 2002
    Posts
    546

    Default PHPSUEXEC :: Location of custom php.ini file for customer?

    I have read thread after thread about PHPSUEXEC and using custom php.ini files in customer root directories.

    Though I have searched tirelessly, I have yet to find a definitive answer to the following...

    1. What location should the custom php.ini file be placed...
    --> /home/user
    or
    --> /home/user/public_html
    or
    --> /home/user/somethingelse?

    2. What permissions to chmod to?

    3. What ownership (I am assuming "user.user" )

    4. Does httpd need to be restarted if you place a custom php.ini file in a customer site once you make updates to their php.ini?

    I have seen conflicting answers to some of these questions in other threads. Accurate answers to these questions will be most appreciated.

  2. #2
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    836
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Place the custom ini file in the directory it's being used. for instance on my server I have register globals off - so to run oscommerce I need a php.ini in both the install directory and the one below called admin.

    httpd does not need restarting. Just upload via ftp - permissions and ownership will be correct. (yes that does mean user.user).
    Michael

  3. #3
    Member
    Join Date
    May 2002
    Posts
    152

    Default

    I always chmod php.ini to 601 or 611 just so no one can view it.. from the web.

  4. #4
    Member
    Join Date
    Jul 2003
    Location
    Atlanta, GA
    Posts
    31

    Default

    This is not working for me. I have placed a custom php.ini into my customers public_html directory where the file is being run from. phpinfo() shows register_globals = on.

Similar Threads & Tags
Similar threads

  1. php.ini location?
    By pacificw in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-11-2007, 09:39 AM
  2. php 4 & 5 ini location
    By Jikson26 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-14-2007, 11:33 AM
  3. PHPSuexec and Register_globals / php.ini?
    By Ralph9110 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-20-2007, 12:52 AM
  4. TIP: PHP 5.1.6 + phpsuexec + local php.ini (register_globals)
    By Bazer in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-13-2007, 03:25 PM
  5. PHPSuExec and Php.ini
    By asterisk in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 05-25-2006, 02:31 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube