feelingsheepish Posted July 31, 2006 Share Posted July 31, 2006 Hi,I have installed PHP with MySQL and Apache.When i execute the test file (<? phpinfo(); ?>) via my localhost it opens in notepad.Please help it's been driving me crazy.Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/16154-installation-help-php-open-in-text-editor/ Share on other sites More sharing options...
wildteen88 Posted August 1, 2006 Share Posted August 1, 2006 You are going to http://localhost/ and then clicking on the file you want to run? If you are and its opening up within notepad then Apache appears to bemisconfigured. How have you configured Apache to parse PHP files with the PHP Intepreter? What tutorial did you follow to install Apache, PHP and MySQl. Quote Link to comment https://forums.phpfreaks.com/topic/16154-installation-help-php-open-in-text-editor/#findComment-66902 Share on other sites More sharing options...
feelingsheepish Posted August 1, 2006 Author Share Posted August 1, 2006 Hi,I am going to [u]http://localhost/test.php[/u] and the file is opening into notepad. I have used the tutorial in the book "php and mysql web development" to configure my web server. I included the following lines in my httpd config file.LoadModule php5_module c:/php/php5apache.dllAddModule mod_php5.cAddType aqpplication/x-httpd-php .phpAction application/x-httpd-php "/php/php.exe"I have used this tutorial in the past and everything has worked so don't understand why it is not working. Quote Link to comment https://forums.phpfreaks.com/topic/16154-installation-help-php-open-in-text-editor/#findComment-67147 Share on other sites More sharing options...
wildteen88 Posted August 1, 2006 Share Posted August 1, 2006 Did you restart Apache when you made the changes to the httpd.conf file. Also is Apache starting up with any errors/beeps? Other than that I cannot see why it is doing that. Quote Link to comment https://forums.phpfreaks.com/topic/16154-installation-help-php-open-in-text-editor/#findComment-67157 Share on other sites More sharing options...
gudmunson Posted August 2, 2006 Share Posted August 2, 2006 [quote]AddType aqpplication/x-httpd-php .php[/quote]Dunno if you saw this or have figured it out, but you misspelled application. That could cause your problem. Quote Link to comment https://forums.phpfreaks.com/topic/16154-installation-help-php-open-in-text-editor/#findComment-68191 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.