Answer the question
In order to leave comments, you need to log in
Nginx and PHP, how to reconfigure with Apache?
I purchased a server (Centos operating system) and Apache is installed there by default.
There was a task to install Nginx, I installed it, but since I'm still new to this business, please explain how to disable Apache and install Nginx as a server?
Answer the question
In order to leave comments, you need to log in
1 stupid answer
rpm -e apache2
rpm -1 nginx
2. smarter answer. (if you need both) In the avacha config find listen: *:80 and change it to 8080
After that they will no longer conflict for ports
Remove Apache first:
After that, use this guide to install and configure Nginx and PHP-FPM.
chkconfig apache2 off && chkconfig apache2 --del
Instead of apache2 it could be httpd, no centos handy to check.
yum remove httpd -- remove Apache package
yum install nginx -- download and install nginx package
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question