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 () 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