nuq Posted October 25, 2004 Share Posted October 25, 2004 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 Quote Link to comment https://forums.phpfreaks.com/topic/2021-unable-to-test-the-phpinfophp/ Share on other sites More sharing options...
gizmola Posted October 25, 2004 Share Posted October 25, 2004 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. Quote Link to comment https://forums.phpfreaks.com/topic/2021-unable-to-test-the-phpinfophp/#findComment-6607 Share on other sites More sharing options...
nuq Posted October 26, 2004 Author Share Posted October 26, 2004 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 Quote Link to comment https://forums.phpfreaks.com/topic/2021-unable-to-test-the-phpinfophp/#findComment-6611 Share on other sites More sharing options...
sonjay Posted October 26, 2004 Share Posted October 26, 2004 "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" Quote Link to comment https://forums.phpfreaks.com/topic/2021-unable-to-test-the-phpinfophp/#findComment-6613 Share on other sites More sharing options...
nuq Posted October 27, 2004 Author Share Posted October 27, 2004 heeee haw, its working now. The problem was the restarting the apache. Thanx a million, till the next problem. harun Quote Link to comment https://forums.phpfreaks.com/topic/2021-unable-to-test-the-phpinfophp/#findComment-6619 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.