Results 1 to 6 of 6

Thread: [HOWTO] SuPHP

  1. #1
    Join Date
    Jan 2004
    Posts
    5

    [HOWTO] SuPHP

    Hello,

    Does any body want a howto to install suphp?
    Please let me know!

    FreeBSD 4.9 Howto:
    Howto install suphp under FreeBSD with DirectAdmin

    Greetings,
    Stèphan Eizinga
    Last edited by 12Media; 02-02-2004 at 08:18 AM.
    MSN: stephan AT starxs.nl

  2. #2
    Join Date
    Sep 2003
    Posts
    130
    Hi,

    That would be helpful for those who wants to enable suPHP

  3. #3
    Join Date
    Jan 2004
    Posts
    5
    Only i have only access to a directadmin server with many clients and the server is not mine.
    If somebody have a server with not many clients and a down time from 30 min is no problem in the night (GMT+1) than i will install it on the server and make a howto from it.
    MSN: stephan AT starxs.nl

  4. #4
    Join Date
    Nov 2003
    Posts
    87
    I have a new server with DA and FreeBSD 4.9, I've just moved 2 customers to the new server so ypu can do it on mine
    I'll PM you...

  5. #5
    Join Date
    Jan 2004
    Posts
    5
    Thanks aleborg, i have made a howto from it!
    Check the first post!

    Have fun!!
    MSN: stephan AT starxs.nl

  6. #6
    Join Date
    Sep 2003
    Posts
    130
    EDIT 1 : Maybe the mod should move the thread to the HowTo section ?
    EDIT 2 : Forgot one step. See step 8
    EDIT 3 : Forgot an option on suPHP ./configure
    EDIT 4 : Changed the way to install suPHP. Now everything should work perfectly!

    Here are the steps I did to make suPHP work with Redhat 9.0 :

    1- Get suPHP :
    wget http://www.suphp.org/download/suphp-0.5.tar.gz

    2- Unpack the archive and enter into the created directory :
    tar -zxvf suphp-0.5.tar.gz ; cd suphp-0.5/

    3- Copy your current php bin :
    cp -p /usr/local/bin/php /usr/local/bin/php.CLI

    - Download, extract php CGI :
    Make sure you are running Redhat9.0 and you are using PHP 4.3.4 :
    wget http://katou.nebukazar.net/CGI-php-v4.3.4-rh9.tar.gz
    tar -zxvf CGI-php-v4.3.4-rh9.tar.gz ; cp -fp CGI-php-v4.3.4-rh9/php /usr/local/bin/php.CGI

    If you are not using Redhat 9 or you're not using the same PHP version, you can download your PHP version, configure then make. The CGI php version is located under : [PHP-Directory]/sapi/cgi/php

    4- Configure suPHP to your system :
    ./configure --with-apache-user=apache --with-php=/usr/local/bin/php.CGI --disable-checkpath --disable-checkuid --disable-checkgid --with-min-uid=0 --with-min-gid=0

    5- Make :
    make

    6- Before doing make install, please keep a backup of your httpd.conf :
    cp -p /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak

    7- Make install suPHP :
    make install

    8- Edit your httpd.conf
    - vi or pico /etc/httpd/conf/httpd.conf

    locate :
    <IfModule mod_php4.c>
    AddType application/x-httpd-php .inc .php .php4 .php3 .phtml
    AddType application/x-httpd-php-source .phps
    </IfModule>
    and replace with :
    <IfModule mod_php4.c>
    suPHP_Engine on
    AddHandler x-httpd-php .php
    AddType application/x-httpd-php .inc .php .php4 .php3 .phtml
    AddType application/x-httpd-php-source .phps
    9- Change 1 setting in your php.ini (!! Make sure you are editing the right php.ini file !!):
    vi or pico /usr/local/lib/php.ini

    find :

    ;cgi.force_redirect =
    and change it to :

    cgi.force_redirect = 0
    10- Restart httpd :
    service httpd restart

    suPHP log is installed under /etc/httpd/logs/suphp_log

    If you need more help PM me or contact me at ltellier@3logics.com
    Last edited by nebukazar; 02-03-2004 at 10:44 PM.

Similar Threads

  1. HOWTO: PHP 5 CLI to PHP 5 CGI + suPHP
    By circlesquare in forum How-To Guides
    Replies: 82
    Last Post: 01-29-2015, 09:17 AM
  2. HOWTO: mod_fcgid in CB 2.0, switchable to suphp
    By Jan_E in forum CustomBuild 2.0
    Replies: 8
    Last Post: 02-04-2013, 11:44 AM
  3. HOWTO : SuPHP
    By nebukazar in forum How-To Guides
    Replies: 69
    Last Post: 05-20-2007, 06:19 AM
  4. looking voor howto suPHP for apache 1.3 and PHP5
    By snaaps in forum MySQL / PHP
    Replies: 4
    Last Post: 03-29-2007, 01:39 AM
  5. [HOWTO] SuPHP
    By 12Media in forum DirectAdmin General Discussion
    Replies: 5
    Last Post: 02-02-2004, 11:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •