Avatar of Irwin W.
Irwin W.
Flag for Canada asked on

PHP Displaying white screen

I have enable php for my OS X server.

All went well.

I decided to test to see what modules are enabled for php using a file called info.php

When I browse to the php file All I get is a white screen.

Here is what my php info file contains.

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

?>

Open in new window

LinuxMac OS XPHP

Avatar of undefined
Last Comment
Irwin W.

8/22/2022 - Mon
Randy Downs

A white screen for phpinfo usually means that php is not enabled.
Randy Downs

Maybe this will help

http://board.phpbuilder.com/showthread.php?7100612-can-t-run-lt-phpinfo%28%29-gt-!

2. If you want to view a page through Apache, you have to start the server up, then type the localhost address to the page you want to view. The page has to be under the htdocs directory for Apache to parse it. Apache won't recognize it's supposed to parse anything if you use the /usr/local/apache/htdocs/phppage.php URL. For example, the URL for above would be http://localhost/phppage.php.

3. You can find out the extensions Apache identifies PHP files with by looking in your httpd.conf, as you said. If you save that file in that extension and it still doesn't work, check out some of the threads in the Windows Installation forum to find out how to add another PHP extension to httpd.conf.
Randy Downs

Your help has saved me hundreds of hours of internet surfing.
fblack61
Irwin W.

ASKER
This is not a Windows install, as indicated in my opening line... ;)
Randy Downs

Yeah I posted the link to OS X. Try these:



Position your cursor at the beginning of that line, and remove the hash or pound sign (#). It should now look like this:

LoadModule php5_module      libexec/apache2/libphp5.so

This enables PHP 5 on your computer.
Irwin W.

ASKER
I have been troubleshooting it and would like a link or info that is more current. If you are going to post it. A 12 year old link is a tad bit out dated :)
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Dave Baldwin

It's not a 12 year old link and that has always been the way to enable PHP on Apache.  See here too: http://stackoverflow.com/questions/6790568/how-do-you-get-php-working-on-mac-os-x-lion-10-7
Kelly Black

Can you post the output of this command please?

rpm -qa | grep -i php
Crunched

rpm on OSX?

You could try turning on error reporting, find and uncomment this line in your php.ini file:
 error_reporting(E_ALL);

Open in new window

Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Kelly Black

Oh sorry right I didn't notice it was posted as OSX. Apologies.
ASKER CERTIFIED SOLUTION
Irwin W.

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Dave Baldwin

Interesting.  What version of Safari?
Irwin W.

ASKER
Here is the version info.

Safari version info
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Kelly Black

How did Safari even come into the picture? Suddenly its just "interesting"? Communication outside the board?
Dave Baldwin

No, read his closing comment below where he said that there is an issue with Safari.
Irwin W.

ASKER
I found my own answer here.  It turns out that the issue is with Safari.  I installed Firefox and I can now access the phpMyAdmin page.

http://www.host1free.com/forum/vps-technical-support/7723-phpmyadmin-blank-page-after-login-2.html
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck