Php does not parse after apahce + PHP is complete

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.