After httpd + mysql + phpphp is installed in Windows, the source code is displayed. after httpd + mysql + php is installed in Windows, I copy a test php document to the apache Directory D: \ Program Files (x86) under \ Apache Group \ Apache2 \ htdocs, this should be the default directory. enter localhost/1. php displays the source code, but cannot be parsed normally. How can this problem be solved 〉? > 〉〉?
Reply to discussion (solution)
The PHP file is not attached to PHP for explanation. Search.
The PHP file is not attached to PHP for explanation. Search.
Google cannot find the answer. what should I do? How to Let php parse it
After the installation is complete, restart Apache once, if not. During the php installation process, the modified apache configuration file does not take effect.
Similarly, any php. ini configuration has been modified. the configuration in httpd. conf takes effect only after Apache is restarted.
Create a File> phpinfo. php
Echo phpinfo ();
?>
Try