The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

phpsuexec

Discussion in 'General Discussion' started by guest_, Oct 3, 2006.

  1. guest_

    guest_ Registered

    Joined:
    Oct 3, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,383
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    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. MaraBlue

    MaraBlue Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    335
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Carmichael, CA
    cPanel Access Level:
    Root Administrator
    No. It's an Apache module.

    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/server-security-issues--phpsuexec--textpattern
     

Share This Page