Community Forums
Connect with us on LinkedIn
  
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    2

    Default phpsuexec

    My friend asked me to help him with his WHM. And I have a question about phpsuexec. As far as I understood this is module from cPanel.net? Is it possible to see a documentation on it and sources?

    Actually I have only one important question regarding phpsuexec: is it possible to use different php.ini for different VirtualHosts with this module or not?

    And if it's impossible what you can suggest if I extremely need different PHP settings for different VirtualHosts? suPHP maybe? Our software is Apache is 1.3.x and PHP 4.x

    Thank you.

  2. #2
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    I think phpsuexec lets you use a customized php.ini file in directories that contain the executed PHP script. This only works with PHP4, I think this feature was taken out of PHP5, although I think its being added back in future PHP5 releases.

    The problem with this is that php.ini files are only read directory by directory instead of for the entire VirtualHost. This means, that if you place a customized php.ini file in the public_html directory then it is only read by PHP scripts that are executed in the public_html directory. PHP scripts in public_html/scripts would read the server-wide php.ini file unless another customized php.ini file is located in that directory.

    suPHP is a solution, it allows you to apply customized php.ini files for each VirtualHost. However, it is not supported by cPanel (atleast not with Apache 1.3, I don't think). I did write a guide for getting suPHP to work on cPanel servers with Apache 1.3:

    http://www.spareknet.org/howtos/suphp.php

    I don't recommend the guide, unless you feel comfortable working in a Linux environment and know how to make configuration adjustments.

  3. #3
    Member
    Join Date
    May 2005
    Location
    Auburn, CA
    Posts
    243

    Default

    Quote Originally Posted by guest_
    My friend asked me to help him with his WHM. And I have a question about phpsuexec. As far as I understood this is module from cPanel.net?
    No. It's an Apache module.

    Is it possible to see a documentation on it and sources?

    Actually I have only one important question regarding phpsuexec: is it possible to use different php.ini for different VirtualHosts with this module or not?

    And if it's impossible what you can suggest if I extremely need different PHP settings for different VirtualHosts? suPHP maybe? Our software is Apache is 1.3.x and PHP 4.x

    Thank you.
    I'm fighting the urge to suggest Google, here...I really, truly am. Normally it annoys me to no end when people get "uppity" in this or any forum and point a poster to Google, but in this case, it's clear you haven't even attempted a search.

    Here's an easy-to-read article on PHPSUexec. I found it on Google ;-)

    http://codylindley.com/Misc/74/serve...c--textpattern

Similar Threads & Tags
Similar threads

  1. phpsuexec
    By kuwaitnt in forum New User Questions
    Replies: 2
    Last Post: 05-17-2006, 09:26 AM
  2. PHPsuexec
    By superwarp7 in forum Discusión en Español
    Replies: 5
    Last Post: 04-19-2006, 10:43 PM
  3. phpsuexec
    By latpanel in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-19-2004, 06:43 PM
  4. Still 'nobody' after phpsuexec
    By Doctor in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-21-2003, 02:45 PM
  5. phpsuexec
    By jbix9 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 10-15-2003, 03:52 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube