Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Apr 2006
    Posts
    26

    Default suPHP per site?

    Is there any way to turn on suPHP using .htaccess, or some other way to do it on a site-by-site basis? I would like to test this functionality before turning it on for all users.

    Thanks.

  2. #2
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    You can install two instances of PHP. One php4 and one php5 (one CGI and one apache module). I forgot how it's done, but you should be able to use the apache conf file to assign different users to different instances of PHP.

  3. #3
    Member
    Join Date
    Apr 2006
    Posts
    26

    Default

    Quote Originally Posted by casey View Post
    You can install two instances of PHP. One php4 and one php5 (one CGI and one apache module). I forgot how it's done, but you should be able to use the apache conf file to assign different users to different instances of PHP.
    Thanks, but I don't want to install PHP 4. It's never been installed on this server, and it is now end-of-lifed.

    I was hoping to be able to do something like this in a user's .htaccess:

    suPHP_Engine on

    This didn't work, but I did find something that did work. I used a .conf files for a virtual host and added these lines:

    suPHP_Engine on
    AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
    suPHP_AddHandler application/x-httpd-php5

    I then ran this:

    /scripts/ensure_vhost_includes --user=username

    It seemed to work fine.

  4. #4
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Cool. Good to know. I recently switched to suPHP and didn't have any problems at all thanks to the instructions at
    http://forums.cpanel.net/showthread....ighlight=suphp

Similar Threads & Tags
Similar threads

  1. how to force site to open as www.site than http://site
    By pankajarya in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-10-2011, 11:12 PM
  2. Disable suphp for one site?
    By cooldude7273 in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 01-13-2008, 04:41 AM
  3. Site Address Pointing to the Wrong Site?!
    By ClearSky in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-26-2005, 10:05 PM
  4. Moving a site...Restoring a site from CPanel backup???
    By BoomPop in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-09-2003, 09:46 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube