Jump to content

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"

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.