For php installation problems, various exceptions are always prompted.

Source: Internet
Author: User
Php installation problems, always prompt all kinds of errors, please answer previously configured in linux php, now want to build wamp, so download the httpd-2.2.22-win32-x86-openssl-0.9.8t.msi and php5.2.17 compressed package, create a wamp folder in F, which contains four sub-folders: Apache2.2, PHP, Mysql, and www (as the server's main directory). install apahce, php, and m php, all kinds of errors are always prompted.
I used to configure php in linux, and now I want to build wamp, so I downloaded the httpd-2.2.22-win32-x86-openssl-0.9.8t.msi and php5.2.17 compressed package, in F to create a wamp folder, there are four subfolders Apache2.2, PHP, Mysql, www (as the main directory of the server), install apahce, php, and mysql in the corresponding packages respectively, and configure them according to http://www.win7china.com/html/13026.html. after configuration, the following problem occurs during php testing.
Create test. php: enter localhost/test in the browser. php always prompts The requested URL/test. php was not found on this server error. later I checked apache's error log and found File does not exist: F:/wamp/Apache2.2/htdocs/test. php. check the configuration file httpd because DocumentRoot has not changed. no problem was found in the DocumentRoot result in conf. put php in F:/wamp/Apache2.2/htdocs and test localhost/test again. php, this time The requested URL/test. php was not found on this server error, but test. the content in php is shown as follows:
Phpinfo ();
?>
Phpinfo () not parsed; the page showing the php icon
Hope experts can help you find problems.

------ Solution --------------------
1. DocumentRoot and ServerRoot are two values. are you confused? In addition, semicolons, quotation marks, and so on

2. associate the php extension and check the previous post. this is also today's

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.