Link to home
Start Free TrialLog in
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

Avatar of Randy Downs
Randy Downs
Flag of United States of America image

A white screen for phpinfo usually means that php is not enabled.
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.
Avatar of Irwin W.

ASKER

This is not a Windows install, as indicated in my opening line... ;)
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.
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 :)
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
Can you post the output of this command please?

rpm -qa | grep -i php
Avatar of Crunched
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

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

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Interesting.  What version of Safari?
Here is the version info.

User generated image
How did Safari even come into the picture? Suddenly its just "interesting"? Communication outside the board?
No, read his closing comment below where he said that there is an issue with Safari.
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