snoodle Posted March 20, 2009 Share Posted March 20, 2009 For some reason, after reinstalling WAMP, my .php files (and .php code inside of html files) will not execute. Apache modules include a checked php5_module and phpMyAdmin/index.php has no problem running in my browser. Any help is most appreciated as I am losing my mind. Link to comment https://forums.phpfreaks.com/topic/150364-php-disabled/ Share on other sites More sharing options...
wildteen88 Posted March 20, 2009 Share Posted March 20, 2009 When WAMP is installed, it only configures Apache to parse .php files with PHP. To parse .html files as PHP, go to WAMP tray icon and select Apache > httpd.conf. Scoll down until you find this line AddType application/x-httpd-php .php Change it to AddType application/x-httpd-php .php .html Save the httpd.conf and restart the Apache service. Your .html files should now be parsed as PHP. Link to comment https://forums.phpfreaks.com/topic/150364-php-disabled/#findComment-789704 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.