Jump to content

unable to test the "phpinfo.php"


Recommended Posts

Hi,

 

I followed the "Setting Up PHP, MySQL, and Apache Server Platform on Mac..." from Macromedia Development center. When i run the test by browsing for phpinfo.php file, the browser automatically download the file instead of open it to get the php info. Can anybody help me with this?

 

Appriciate the help.

harun

 

Link to comment
https://forums.phpfreaks.com/topic/2021-unable-to-test-the-phpinfophp/
Share on other sites

Your apache httpd.conf is not configured correctly to recognize .php files as requiring php parsing. There's a number of possible reasons for this. Make sure first off that you have an addtype statement for .php files, or reread the installation instructions for php and make sure you have not missed something. Detailed php installation instructions can be found at php.net.

"Uncomment" does mean to delete the # mark at the front of the line. (All of them, if there's more than one.) So it sounds like you've done that correctly, assuming you've uncommented the correct lines in there.

 

You also need to restart Apache after making a change to your httpd.conf file. GUI method (if you're using Apple's default Apache install): System Preferences -> Sharing -> Personal Web Sharing -> Stop and then start "Personal Web Sharing."

 

CLI method (using any Apache install): in Terminal, type "sudo apachectl graceful" or "sudo apachectl restart"

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.