Ask apahce + php after the completion of PHP does not parse apache version 2.2.22php version of the php-5.2.17 installed after testing HTMLcode & lt; html & gt; & lt; head & gt; & lt; title & gt; test & lt; title & gt; & lt; head & gt; & lt; body & gt; ask apahce + php if PHP does not parse
Apache version 2.2.22
Php edition php-5.2.17
Test after installation
HTML code
test
Save it as index. html can see php-related information. it can be parsed normally. does it indicate that the PHP environment has been successful?
While
PHP code
If it is saved as index. php, it cannot be parsed. you can right-click to view the above source code.
AddType application/x-httpd-php. php. html. htm. php3. php4 has been added.
Short_open_tag = On
I don't know what else to pay attention to. please help me solve this problem.
------ Solution --------------------
It should be an association problem. it seems that three rows need to be added.
Loadmodule php5_module "c:/php5/php5apache2. dll"
PHPinidir "c:/php5/php. ini"
Addtype application/x-httpd-php. php
Save restart Apache
Check whether port 80 is in Listen.
I believe that PHP environment variables are added.
For urgent use, use xampp to quickly build the environment
------ Solution --------------------
Server restart. some modules may not be fully loaded.