Hello, my friends,
First of all what I have done already:
1. I installed ISPconfig 18.104.22.168 on fresh CentOS 5.2 i386 server and used instructions on ispconfig.org documentation.
2. After I noticed that apache didn't started when I chose SuPHP option for website. I simply haven't suphp module on my server.
3. I installed suphp following falco's guide "SuPHP On Fedora 7 Or CentOS 5 With ISPConfig". It was weird to me, that installation created only module file, but not suphp.conf or suphp.log, so I maked those files manualy and renamed php.conf:
LoadModule suphp_module modules/mod_suphp.so
AddHandler x-httpd-php .php
AddHandler x-httpd-php .php .php4 .php3 .phtml
;Path to logfile
;User Apache is running as
;Path all scripts have to be in
;Path to chroot() to before executing script
; Security options
;Check wheter script is within DOCUMENT_ROOT
;Send minor error messages to browser
;PATH environment variable
;Umask to set, specify in octal notation
; Minimum UID
; Minimum GID
;Handler for php-scripts
;Handler for CGI-scripts
My virtualhosts file:
ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 503 /error/503.html
AllowOverride Indexes AuthConfig Limit FileInfo
Allow from all
# suphp enabled
# suPHP_UserGroup web1 client1
AddHandler x-httpd-suphp .php .php3 .php4 .php5
So, apache is starting normaly, but I cannot access ISP control panel (port 8080) - I'm being redirected to Apache 2 Test Page. When I trying to reach www.domain.com
, I getting ISPconfig's green welcome page (html). www.domain.com/phpmyadmin
gives me 500 Internal server error, and if I trying http://myipaddress
I also getting ISPconfig's green welcome page (html).
[Sat Mar 21 11:14:29 2009] [notice] caught SIGTERM, shutting down
[Sat Mar 21 11:15:52 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Mar 21 11:15:52 2009] [notice] Digest: generating secret for digest authentication ...
[Sat Mar 21 11:15:52 2009] [notice] Digest: done
[Sat Mar 21 11:15:52 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Sat Mar 21 11:42:23 2009] [error] [client 88.119.xxx.xxx] Directory index forbidden by Options directive: /var/www/html/
[Sat Mar 21 11:53:28 2009] [error] [client 82.135.xxx.xxx] No user or group set - set suPHP_UserGroup
[Sat Mar 21 11:53:28 2009] [error] [client 82.135.xxx.xxx] File does not exist: /var/www/error/500.html
I swear, I tried lots of things. I have another server with Ubuntu and there everything is going well. It's is a second day since I'm trying to sort this out
Falco's tutorial is based on ISPconfig 2, but it must be compatible with ISPconfig 3 as well. I could not find line "$go_info["server"]["apache2_php"] = 'both';" in ISPc3 config.inc.php or elsewhere to change it to " $go_info["server"]["apache2_php"] = 'suphp';", but I believe it have nothing to do with whole http server, right? Also I tried to put line "suPHP_UserGroup apache apache" to /etc/httpd/conf.d/suphp.conf. Should I try to install mod_suphp from repos instead? I tried to install version 0.7.1 as well, but result was the same. Anyway, installations went without errors. I think...
So, please, help me to sort this out.