PHP5 and apache2.0 installation can not resolve the PHP code solution ____php

Source: Internet
Author: User
The first step, install a good apache2, and then unzip the PHP to the directory you want to put (the path must be English). The second step is the configuration file. Open the Apache configuration file httpd.conf. Add the following lines to the front (in fact, I like to put the front, good change) scriptalias/php514/"d:/httpd/php514/"
AddType application/x-httpd-php. php
AddType application/x-httpd-php-source. PHPS Note: I can not parse, that is, the lack of this sentence. I don't know if you are.
Action application/x-httpd-php "/php514/php-cgi.exe" and find the following line DirectoryIndex index.html index.htm Index.html.var index.php is added to the bold. There should be no leakage of this step (if any, please leave a message to tell me) to the third step, is to change the php.ini file. Open it, find Extension_dir = "./" This puts it on the annotation point and writes another line for itself.   Extension_dir= the directory of your PHP DLL file (usually ext). There are some extensions that you add to yourself as needed. If there are no omissions, it should be resolved normally. One thing to mention, though, is that the PHP5 short mark is closed, usually open (because there is still a significant portion of the code used in this notation), in php.ini, the Short_open_tag = off is changed to ON.   and the global variable switch, do it yourself. If there is a problem, bring it up. Let's discuss it together. Finish writing the collection work.

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.