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.