Php files doesn't work

gumiak

Verified User
Joined
Dec 4, 2006
Messages
11
After uptading DA and creating accounts that are subdomains (f.e. domeny.pibi.pl) php files don't work on new accounts - 500 Internal Server Error

On older accounts they work fine.
 
[Fri Feb 22 00:10:02 2008] [notice] SIGHUP received. Attempting to restart
[Fri Feb 22 00:10:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 00:10:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 00:10:03 2008] [notice] Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7e PHP/4.4.2 mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Fri Feb 22 00:12:01 2008] [notice] caught SIGTERM, shutting down
[Fri Feb 22 00:12:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 00:12:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 00:12:04 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Feb 22 00:12:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 00:12:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 00:12:04 2008] [notice] Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7e PHP/4.4.2 mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Fri Feb 22 11:59:01 2008] [notice] caught SIGTERM, shutting down
[Fri Feb 22 11:59:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 11:59:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 11:59:03 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Feb 22 11:59:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 11:59:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 11:59:03 2008] [notice] Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7e PHP/4.4.2 mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Fri Feb 22 12:00:01 2008] [notice] SIGHUP received. Attempting to restart
[Fri Feb 22 12:00:02 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 12:00:02 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 12:00:02 2008] [notice] Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7e PHP/4.4.2 mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Fri Feb 22 12:01:01 2008] [notice] caught SIGTERM, shutting down
[Fri Feb 22 12:01:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 12:01:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 12:01:04 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Feb 22 12:01:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 12:01:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Fri Feb 22 12:01:04 2008] [notice] Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7e PHP/4.4.2 mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Fri Feb 22 23:37:53 2008] [error] [client 89.230.211.100] request failed: error reading the headers
[Sat Feb 23 00:10:02 2008] [notice] SIGHUP received. Attempting to restart
[Sat Feb 23 00:10:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 00:10:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 00:10:03 2008] [notice] Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7e PHP/4.4.2 mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Sat Feb 23 00:13:01 2008] [notice] caught SIGTERM, shutting down
[Sat Feb 23 00:13:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 00:13:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 00:13:03 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Feb 23 00:13:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 00:13:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 00:13:03 2008] [notice] Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7e PHP/4.4.2 mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Sat Feb 23 09:09:01 2008] [notice] caught SIGTERM, shutting down
[Sat Feb 23 09:09:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 09:09:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 09:09:03 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Feb 23 09:09:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 09:09:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 09:09:03 2008] [notice] Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7e PHP/4.4.2 mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Sat Feb 23 09:59:25 2008] [error] [client 68.142.212.170] File does not exist: /var/www/robots.txt
[Sat Feb 23 09:59:25 2008] [error] [client 68.142.212.170] File does not exist: /var/www/404.shtml
[Sat Feb 23 11:36:32 2008] [error] [client 89.228.245.159] No user or group set - set suPHP_UserGroup
[Sat Feb 23 11:36:32 2008] [error] [client 89.228.245.159] File does not exist: /var/www/500.shtml
[Sat Feb 23 11:50:01 2008] [notice] caught SIGTERM, shutting down
[Sat Feb 23 11:50:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 11:50:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 11:50:03 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Feb 23 11:50:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 11:50:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 11:50:04 2008] [notice] Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7e PHP/4.4.2 mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Sat Feb 23 11:51:01 2008] [notice] caught SIGTERM, shutting down
[Sat Feb 23 11:51:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 11:51:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 11:51:03 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Feb 23 11:51:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 11:51:03 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 11:51:03 2008] [notice] Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7e PHP/4.4.2 mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Sat Feb 23 11:52:01 2008] [notice] caught SIGTERM, shutting down
[Sat Feb 23 11:52:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 11:52:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 11:52:04 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Feb 23 11:52:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 11:52:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 11:52:04 2008] [notice] Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7e PHP/4.4.2 mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Sat Feb 23 12:05:54 2008] [notice] caught SIGTERM, shutting down
[Sat Feb 23 12:05:56 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 12:05:56 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 12:05:56 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Feb 23 12:05:57 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 12:05:57 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 12:05:57 2008] [notice] Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7e PHP/4.4.2 mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
[Sat Feb 23 12:15:18 2008] [notice] caught SIGTERM, shutting down
[Sat Feb 23 12:15:21 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 12:15:21 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 12:15:21 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Feb 23 12:15:21 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 12:15:21 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sat Feb 23 12:15:21 2008] [notice] Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7e PHP/4.4.2 mod_perl/1.999.21 Perl/v5.8.4 configured -- resuming normal operations
 
May sure directory permissions are 777
And file permissions are 644.

You may also wish to create a self-signed certificate instead of the default 'snake-oil' one.

I've found on some files I had that were not labelled .php (but were), I needed to add the following to my .htaccess file.

Code:
<Files FILENAME_GOES_HERE>
ForceType  x-httpd-php5
</Files>
 
Forcing php5 files didn't work :(


Apache error log for the domain

[Mon Feb 25 00:10:06 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Mon Feb 25 00:13:01 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Mon Feb 25 00:13:01 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Mon Feb 25 10:49:04 2008] [error] [client 83.168.88.21] File does not exist: /home/domeny/domains/domeny.pibi.pl/public_html/favicon.ico
[Mon Feb 25 10:49:04 2008] [error] [client 83.168.88.21] File does not exist: /home/domeny/domains/domeny.pibi.pl/public_html/404.shtml
[Mon Feb 25 12:05:56 2008] [error] [client 80.48.39.249] File does not exist: /home/domeny/domains/domeny.pibi.pl/public_html/favicon.ico
[Mon Feb 25 12:05:56 2008] [error] [client 80.48.39.249] File does not exist: /home/domeny/domains/domeny.pibi.pl/public_html/404.shtml
[Mon Feb 25 16:09:09 2008] [error] [client 79.186.129.20] File does not exist: /home/domeny/domains/domeny.pibi.pl/public_html/favicon.ico
[Mon Feb 25 16:09:09 2008] [error] [client 79.186.129.20] File does not exist: /home/domeny/domains/domeny.pibi.pl/public_html/404.shtml
[Mon Feb 25 18:06:55 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:06:55 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:06:56 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:06:56 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:06:57 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:06:57 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:06:57 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:06:57 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:06:58 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:06:58 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:06:58 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:06:58 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:06:59 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:06:59 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:07:00 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:07:00 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:07:01 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:07:01 2008] [error] [client 83.168.88.21] Options ExecCGI is off in this directory: /home/domeny/domains/domeny.pibi.pl
[Mon Feb 25 18:09:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Mon Feb 25 18:09:04 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Mon Feb 25 18:09:35 2008] [error] [client 83.168.88.21] File does not exist: /home/domeny/domains/domeny.pibi.pl/public_html/favicon.ico
[Mon Feb 25 18:09:35 2008] [error] [client 83.168.88.21] File does not exist: /home/domeny/domains/domeny.pibi.pl/public_html/404.shtml
[Mon Feb 25 18:09:40 2008] [error] [client 83.168.88.21] No user or group set - set suPHP_UserGroup
[Mon Feb 25 18:09:40 2008] [error] [client 83.168.88.21] File does not exist: /home/domeny/domains/domeny.pibi.pl/public_html/500.shtml
[Mon Feb 25 18:09:41 2008] [error] [client 83.168.88.21] No user or group set - set suPHP_UserGroup
[Mon Feb 25 18:09:41 2008] [error] [client 83.168.88.21] File does not exist: /home/domeny/domains/domeny.pibi.pl/public_html/500.shtml
[Mon Feb 25 18:10:01 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
 
(Make a backup of your scripts file before attempting the following)

Looks to me that your using suphp

If thats the case ensure that all files and directories that your script uses are set to <= 755 (chmod). If their 777 or 775 that could be the problem.

Also the scripts files have to be owned by the user so chown user:user.

That should fix it.

Let us know how it turned out.
 
[Mon Feb 25 18:10:01 2008] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?

Call me silly but shouldn't that be domain name be .com ?

Cheers
Nath
 
tarquel, no it shouldn't because it's default cert that comes with apache.
 
gumiak:
Code:
[Mon Feb 25 18:09:40 2008] [error] [client 83.168.88.21] No user or group set - set suPHP_UserGroup

It means that there is no suPHP_UserGroup set in virtualhost templates. If you don't want to set it - you can use this guide: http://help.directadmin.com/item.php?id=176
 
I remember I had some problems after one uptade cause I didn't have custombild and also suphp was the one making problems.

smtalk you helped me then. So maybe it's better to reinstall the whole DA with all nescesarry stuff like custombuild etc.??

For example now on every new domain (or when I'm changing the domain name) php files don't work. phpmyadmin doesn't work from user accounts only from main server, the same with webmails.
 
You don't need to reinstall DA :) Just install CustomBuild and that's enough. Good luck!
 
Back
Top