How to configure php for apache and nginx in fedora

Source: Internet
Author: User
How to configure php for apache and nginx on fedora. now apache can use php, and nginx cannot use php. I installed the lamp first, and then installed nginx later. ------ solution -------------------- 1. you have installed APACHE first, then it will take up 80 first, how to configure php for apache and nginx on fedora
Now apache can use php,
Currently, nginx cannot use php./I installed lamp first, and then installed nginx later.


------ Solution --------------------
1. if APACHE is installed first, it will occupy 80 terminals first, so your NGNIX cannot use 80.
2. NGNIX does not support PHP interfaces. only FPM tools can be used to explain PHP

You can find the relevant information.

As to why APACHE can interpret PHP, it is because when compiling PHP, you can choose to compile an APACHE module to process PHP, php5_module.so. it processes PHP through apache_handle.
While NGNIX does not implement response interfaces, it only uses external software, such as FPM and FPM, to implement PHP interfaces through FASTCGI.

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.