View Single Post
  #27  
Old 12th February 2008, 21:04
SupuS SupuS is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 201
Thanks: 68
Thanked 13 Times in 11 Posts
Default

Quote:
Originally Posted by Hans
Problem solved, but weird....
I disabled php for the TYPO3 website and enabled it again....After that all the TYPO3 sites where up and running again.
Hi again

Works disabling of suPHP fine for you? I installed suPHP and everything works fine but I am not able to disable suPHP engine by insert this code:

Code:
suPHP_Engine off
RemoveHandler .php
php_admin_flag engine on
After adding this code to apache directives under ispconfig in my vhost is:

Code:
<VirtualHost *********:80>
suPHP_Engine off
RemoveHandler .php
php_admin_flag engine on
ServerName test.server.cz:80
ServerAdmin webmaster@server.cz
DocumentRoot /var/www/web2/web
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/web2/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Directory /var/www/web2/web>
  suPHP_Engine on
  suPHP_UserGroup web2_user web2
  AddHandler x-httpd-php .php .php3 .php4 .php5
  suPHP_AddHandler x-httpd-php
  SetEnv php_safe_mode Off
</Directory>
Alias /error/ "/var/www/web2/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/web2/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web2/user/$1/web/$3
</VirtualHost>
suPHP is installed as described in howto .. except this:

Code:
[handlers]
;Handler for php-scripts
x-httpd-php=php:/home/admispconfig/ispconfig/tools/suphp/usr/bin/php-wrapper
it was set by ispconfig so I leave it

Thanks for any idea .. SupuS
Reply With Quote