Installing suPHP

Discussion in 'General' started by TheFuzzy0ne, Dec 31, 2008.

  1. TheFuzzy0ne

    TheFuzzy0ne New Member

    Hello. I followed the setup instructions for Debian 4.0 to the letter, but whenever I reload the server, I see:

    Syntax error on line 27 of /etc/apache2/sites-enabled/thefuzzy0ne.co.uk.vhost:
    Invalid command 'suPHP_Engine', perhaps misspelled or defined by a module not included in the server configuration

    How do I install suPHP on my server?

    Thanks.

    EDIT: Hang on. I just found http://www.howtoforge.com/install-s...tions-for-use-with-ispconfig-2.2.20-and-above . Looks like the answer was in front of my face the entire time.

    Should ISPConfig allow this option to be selected if it's not installed?
     
  2. TheFuzzy0ne

    TheFuzzy0ne New Member

    Installing suPHP fixed the problem, as well as most of the problems mentioned in this post

    Thanks for such a straight forward tutorial.
     
  3. mghens

    mghens New Member

    The tutorial did not help with ISPConfig 3.0.0.8 RC1

    If I install Debian 4 etch: libapache2-mod-suphp, ISPConfig crashes with:


    SoftException in Application.cpp:202: Script "/usr/local/ispconfig/interface/web/index.php" resolving to "/usr/local/ispconfig/interface/web/index.php" not within configured docroot
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    This tutorial is not for ISPConfig 3. If you installed suphp this way, uninstall it a sthis is not compatible with ISPConfig 3.

    For ISPConfig 3, just follow exactly the installation instructions in the ispconfig 3 tar.gz file, they contain everything incl. suphp. The error you describe happens because you followed the tutorial above instead of the ispconfig 3 instructions.
     
  5. mghens

    mghens New Member

    Till,

    I did my install using: INSTALL_DEBIAN_4.0.txt

    in the ispconfig3_install directory, SuPHP is only mentioned in the INSTALL_UBUNTU_8.04.txt directions.

    grep -i suphp *
    INSTALL_UBUNTU_8.04.txt:3.1) Optional: Install SuPHP
    INSTALL_UBUNTU_8.04.txt:apt-get install libapache2-mod-suphp
    INSTALL_UBUNTU_8.04.txt:vi /etc/suphp/suphp.conf

    Michael
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    1) Undo everything you did as you followed the other suphp howto.
    2) Check that everything is working again.
    3) run this to install suphp:

    apt-get install libapache2-mod-suphp
     
  7. mghens

    mghens New Member

    For Debian, you might want to add.

    In /etc/apache2/mods-available/suphp.conf

    comment out:

    AddHandler x-httpd-php .php .php3 .php4 .php5 .phtml
    suPHP_AddHandler x-httpd-php

    Change
    suPHP_Engine on
    to
    suPHP_Engine off

    Changes to /etc/suphp/supphp.conf are the same as Ubunto
     

Share This Page