White Screen | Blank Screen | PHP Broken

HTML pages render on my Virtualmin server websites as normal.

To check PHP I use the following php page, <? phpinfo(); ?> I upload this page to my public_html folder and chmod recursively to 755.

http://www.example.com/phpinfo.php only renders a BLANK WHITE SCREEN without any thing in the presentation layer and nothing in the 'view source code' except a few empty common tags that are probably put there by the browser ftp client itself by default. These empty tags do not contain any properties or attributes and there is nothing between the tags either.

Normally, <? phpinfo(); ?> pulls up a lot of details about the php server.

I have updated centos 6 to latest and selinux policies - my repositories are default that came with the host plan and virtualmin repos. I have done nothing wrong as far as I am aware.

I have no idea where to go from here. Please help.

Status: 
Active

Comments

Howdy -- what shows up in your $HOME/logs/error_log whenever that occurs?

In reply to Eric. I read a lot of your posts this past month and always thankful for them. I wanted to add that I switch the nameservers at the registrars site back to the old webhost for *.domain-name-TWO-snip.com but the nameservers for the *.domain-name-one-snip.com are still pointing to my new Virtualmin server for testing until I get the PHP working (then I will point all nameservers to new Virtualmin server). I have ns1.domain-name-one-snip.com as my centos6 install hostname for my box (only one ethernet card) and then I added ns1.domain-name-TWO-snip.com as an additional hostname for the *.domain-name-TWO-snip.com website using the Webmin Networking panel as below:

IP Address Hostnames 127.0.0.1 localhost , localhost.localdomain , localhost4 , localhost4.localdomain4 ::1 localhost , localhost.localdomain , localhost6 , localhost6.localdomain6 00.000.94.12 ns1.domain-name-one-snip.com , ns2.domain-name-one-snip.com 00.000.94.26 ns1.domain-name-TWO-snip.com , ns2.domain-name-TWO-snip.com

I sorry I didn't write that earlier...

Error_log: ----------------------------------------------[begin]----------------------------------------------- [Fri Dec 30 17:45:03 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 17:45:03 2011] [warn] RSA server certificate wildcard CommonName (CN) *.domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 17:45:10 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 17:45:10 2011] [warn] RSA server certificate wildcard CommonName (CN).domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 17:45:34 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 17:45:34 2011] [warn] RSA server certificate wildcard CommonName (CN) *.domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 18:02:59 2011] [error] [client 75.92.86.160] File does not exist: /home/wbh/public_html/favicon.ico [Fri Dec 30 18:03:00 2011] [error] [client 75.92.86.160] File does not exist: /home/wbh/public_html/favicon.ico [Fri Dec 30 18:03:50 2011] [error] [client 75.92.86.160] File does not exist: /home/wbh/public_html/region_map.png, referer: http://domain-name-one-snip.com/region_map.html [Fri Dec 30 18:04:40 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 18:04:40 2011] [warn] RSA server certificate wildcard CommonName (CN).domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 18:04:41 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 18:04:41 2011] [warn] RSA server certificate wildcard CommonName (CN) *.domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 18:04:56 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 18:04:56 2011] [warn] RSA server certificate wildcard CommonName (CN).domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 18:06:14 2011] [warn] [client 75.92.86.160] mod_fcgid: stderr: PHP Fatal error: error traversing database - perhaps it is corrupt? in /home/wbh/public_html/geoip.inc on line 620 [Fri Dec 30 18:06:26 2011] [warn] [client 75.92.86.160] mod_fcgid: stderr: PHP Fatal error: error traversing database - perhaps it is corrupt? in /home/wbh/public_html/geoip.inc on line 620 [Fri Dec 30 18:15:42 2011] [warn] [client 75.92.86.160] mod_fcgid: stderr: PHP Fatal error: error traversing database - perhaps it is corrupt? in /home/wbh/public_html/geoip.inc on line 620 [Fri Dec 30 18:41:07 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 18:41:07 2011] [warn] RSA server certificate wildcard CommonName (CN) *.domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 18:41:08 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 18:41:08 2011] [warn] RSA server certificate wildcard CommonName (CN).domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 18:42:41 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 18:42:41 2011] [warn] RSA server certificate wildcard CommonName (CN) *.domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 18:42:41 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 18:42:41 2011] [warn] RSA server certificate wildcard CommonName (CN).domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 18:50:26 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 18:50:26 2011] [warn] RSA server certificate wildcard CommonName (CN) *.domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 18:50:40 2011] [error] [client 75.92.86.160] PHP Warning: Directive 'magic_quotes_runtime' is deprecated in PHP 5.3 and greater in Unknown on line 0 [Fri Dec 30 18:50:52 2011] [error] [client 75.92.86.160] PHP Warning: Directive 'magic_quotes_runtime' is deprecated in PHP 5.3 and greater in Unknown on line 0 [Fri Dec 30 18:50:56 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 18:50:56 2011] [warn] RSA server certificate wildcard CommonName (CN).domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 18:50:56 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 18:50:56 2011] [warn] RSA server certificate wildcard CommonName (CN) *.domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 18:51:07 2011] [error] [client 75.92.86.160] PHP Warning: Directive 'magic_quotes_runtime' is deprecated in PHP 5.3 and greater in Unknown on line 0 [Fri Dec 30 18:58:32 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 18:58:32 2011] [warn] RSA server certificate wildcard CommonName (CN).domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 18:58:32 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 18:58:32 2011] [warn] RSA server certificate wildcard CommonName (CN) *.domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 18:58:45 2011] [error] [client 75.92.86.160] PHP Warning: Directive 'magic_quotes_runtime' is deprecated in PHP 5.3 and greater in Unknown on line 0 [Fri Dec 30 19:42:43 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 19:42:43 2011] [warn] RSA server certificate wildcard CommonName (CN).domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 19:43:35 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 19:43:35 2011] [warn] RSA server certificate wildcard CommonName (CN) *.domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 19:43:39 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Dec 30 19:43:39 2011] [warn] RSA server certificate wildcard CommonName (CN)*.domain-name-one-snip.com' does NOT match server name!? [Fri Dec 30 19:46:24 2011] [error] [client 75.92.86.160] PHP Warning: Directive 'magic_quotes_runtime' is deprecated in PHP 5.3 and greater in Unknown on line 0 [Fri Dec 30 19:47:25 2011] [error] [client 75.92.86.160] PHP Warning: Directive 'magic_quotes_runtime' is deprecated in PHP 5.3 and greater in Unknown on line 0 [Fri Dec 30 19:48:17 2011] [error] [client 66.249.66.105] File does not exist: /home/wbh/public_html/robots.txt [Fri Dec 30 19:48:18 2011] [error] [client 66.249.71.202] File does not exist: /home/wbh/public_html/images [Fri Dec 30 19:52:42 2011] [error] [client 50.23.239.14] File does not exist: /home/wbh/public_html/robots.txt, referer: http://www.orangeask.com/ [Fri Dec 30 19:52:42 2011] [error] [client 50.23.239.14] Directory index forbidden by Options directive: /home/wbh/public_html/, referer: http://www.orangeask.com/ [Fri Dec 30 19:58:53 2011] [error] [client 66.249.66.136] File does not exist: /home/wbh/public_html/robots.txt [Fri Dec 30 19:58:54 2011] [error] [client 66.249.66.136] File does not exist: /home/wbh/public_html/Nutrition [Fri Dec 30 20:04:26 2011] [error] [client 66.249.71.217] File does not exist: /home/wbh/public_html/weblog [Fri Dec 30 20:05:46 2011] [error] [client 64.77.84.226] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:) [Fri Dec 30 21:46:30 2011] [error] [client 75.92.86.160] PHP Warning: Directive 'magic_quotes_runtime' is deprecated in PHP 5.3 and greater in Unknown on line 0 ----------------------------------------------------[end]---------------------------------------------------

Note, using virtualmin and webmin I associated an extra hostname with a virtual ip address associated with eth(2) and "*.domain-name-TWO-snip.com", not that I know enough to be doing that kind of thing.

I reduced the bind conf files by deleting the virtual servers and creating just one virtual server in their place. Now I get the following error_log:

[Sun Jan 01 19:44:48 2012] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Jan 01 19:44:48 2012] [warn] RSA server certificate wildcard CommonName (CN) *.example-site.com' does NOT match server name!? [Sun Jan 01 19:44:50 2012] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Jan 01 19:44:50 2012] [warn] RSA server certificate wildcard CommonName (CN).example-site.com' does NOT match server name!? [Sun Jan 01 19:45:42 2012] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Sun Jan 01 19:45:42 2012] [warn] RSA server certificate wildcard CommonName (CN) `.example-site.com' does NOT match server name!? [Sun Jan 01 19:50:44 2012] [error] [client 75.92.86.160] File does not exist: /home/wbh/public_html/favicon.ico [Sun Jan 01 19:50:45 2012] [error] [client 75.92.86.160] File does not exist: /home/wbh/public_html/favicon.ico

favicon.ico is not referenced in my serverinfo.php file, <? phpinfo(); ?>

So, that error should not be there in my honest opinion.

Please advise.

The notices you're seeing in the error logs there aren't showing any sort of PHP error -- it doesn't show the reason as to the problem you're seeing.

That may imply that the error you're getting isn't in this error log, which may be related to the issue you're having. In addition to looking in $HOME/logs/error_log, you may also want to look at /var/log/httpd/error_log for any clues.

You could have a DNS issue, or an IP address mismatch between what Apache is configured to use for this domain, and what IP address the request is coming in on. You could go into System Settings -> Re-Check Config to make sure it doesn't detect any configuration issues.

However, remember that the Support area here is for Virtualmin Pro customers -- if you're using Virtualmin GPL there, you'd want to use the forums for obtaining additional support. We monitor those, along with lots of wonderful folks in the community. Thanks!

I don't see a way to PM - I was just wondering if you could refer me to someone reliable who I could pay to fix the problem please?

I have the virtualmin repositories but I also have the official RHEL repository and the latest 6.2 centos update... similarly syslinux policy updates. Though I suspect a mis-configured apache to be the issue.

Please advise.

We unfortunately don't have any recommendations for consultants -- but you're quite welcome to post a note in the Jobs forum, and you can ask any responders for details on their sysadmin skills and for references.