suPHP install

Discussion in 'Installation/Configuration' started by Captain, Dec 28, 2010.

  1. Captain

    Captain Member

    Hello!

    I want to install suPHP by this thread: http://www.howtoforge.com/suphp_debian_etch_ispconfig

    Want to know about this: "Now remove all the phpadmin entries within the original Vhosts_ispconfig.conf file."

    my Vhosts is:

    Code:
    <VirtualHost 192.168.123.116:80>
    <IfModule mod_php5.c>
        php_admin_value open_basedir "/var/www/web1/:/tmp/"
    </IfModule>
    SuexecUserGroup itex1_r web1
    ServerName www.domain.com:80
    ServerAdmin webmaster@domain.com
    DocumentRoot /var/www/web1/web
    ServerAlias domain.com
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /var/www/web1/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_flag safe_mode Off
    Alias /stats "/var/www/web1/web/webalizer"
    Alias /error/ "/var/www/web1/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3
    <IfModule mod_rewrite.c>
      RewriteEngine on
      RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
      RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    
    
    I need to remove line:
    php_admin_flag safe_mode Off
    <IfModule mod_php5.c>
    php_admin_value open_basedir "/var/www/web1/:/tmp/"
    </IfModule>

    from my Vhosts file? And after suPHP instalation I can use this directive:
    <IfModule mod_php5.c>
    php_admin_value open_basedir "/var/www/web1/:/tmp/"
    </IfModule>
    in my vhosts?

    Thnks.
     
  2. till

    till Super Moderator

  3. Captain

    Captain Member

    Thank you Till for reply!

    But what about my first question?

    I need to remove this lines from my Vhosts_ispconfig.conf file, before I install suPHP? (because in thread: Now remove all the phpadmin entries within the original Vhosts_ispconfig.conf file. Restart Apache:)

    Code:
    php_admin_flag safe_mode Off
    
    <IfModule mod_php5.c>
    php_admin_value open_basedir "/var/www/web1/:/tmp/"
    </IfModule>
    
    Thnks.
     

Share This Page