PHP installation tips: FAQs (2)

Source: Internet
Author: User
4. Q: When I compile php (as the current mainstream development language) with apache (the most popular WEB server platform on the Unix platform), it seems that there is a problem. It always says that the httpd. h file cannot be found, but the file actually exists. Why? A: You need to configure/install the script SyntaxHighlight for php (as the mainstream development language). 4,

Q: When I compile php (as the mainstream development language) with apache (the most popular WEB server platform on Unix), it seems that there is a problem. It always says that the httpd. h file cannot be found, but the file actually exists. Why?

A: You need to make the php (as the mainstream development language) configuration/installation script know the highest level of your apache (the most popular WEB server platform on Unix) source code directory, instead of httpd. directory of the H file. That is to say, you should specify "-- with-apache (the most popular WEB server platform on the Unix platform) =/path/to/apache (the most popular WEB server platform on the Unix platform) /"instead of" -- with-apache (the most popular WEB server platform on the Unix platform) =/path/to/apache (the most popular WEB server platform on the Unix platform)/src ".


V,

Q: I have installed php with RPM (as the mainstream development language), but apache (the most popular WEB server platform on Unix) but cannot process php (as the mainstream development language) files. Why?

A: If you use RPM to correctly install php (as the mainstream development language), you must repeat or add the following lines to the httpd. conf file:

# Extra Modules
AddModule mod_php (as the mainstream development language). c
AddModule mod_php (as the mainstream development language) 3.c
AddModule mod_perlc.
# Extra Modules
LoadModule php (as the mainstream development language) _ module modules/mod_php (as the mainstream development language). so
LoadModule php (as the mainstream development language) 3_module modules/libphp (as the mainstream development language) 3.so
LoadModule perl_module modules/libperl. so

In addition, add:

AddType application/x-httpd-php (as the mainstream development language) 3. php (as the mainstream development language) 3

To the global part of httpd. conf, or to the part where you need to provide php (as the mainstream development language) support.

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.