PHP installation strategy: frequently asked questions (ii)
Source: Internet
Author: User
Four
Q: When I compile PHP and Apache together, there seems to be a problem. It always says that the Httpd.h file cannot be found, but in fact the file exists. Why?
A: You need to let the PHP configuration/installation script know your Apache source's top-level directory, not the directory containing the Httpd.h file. In other words, you should specify "--with-apache=/path/to/apache/" instead of "--with-apache=/path/to/apache/src".
Five
Q: I installed PHP using RPM, but Apache can't process php files. Why?
A: Assuming you use RPM to properly install PHP, you must either reverse or add the following lines to the httpd.conf file:
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