Jump to content

Archived

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

nuq

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

 

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

I retried the steps, there is one thing i am not sure. When the instruction says "Uncommented ..." how do i do that. What i did was just delete the "#" mark in front of the line.

 

 

Applogize for being an ignorance

nuq

Share this post


Link to post
Share on other sites

"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"

 

 

Share this post


Link to post
Share on other sites

heeee haw,

 

its working now. :lol:

The problem was the restarting the apache.

 

Thanx a million, till the next problem.

harun

Share this post


Link to post
Share on other sites

×

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.