N
N
nepster-web2013-12-07 02:34:04
PHP
nepster-web, 2013-12-07 02:34:04

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

5 answer(s)
R
rozhik, 2013-12-07
@rozhik

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

S
Soslan Aldatov, 2013-12-07
@supporteam

Remove Apache first:
After that, use this guide to install and configure Nginx and PHP-FPM.

F
fstpk, 2013-12-07
@fastpoke

chkconfig apache2 off && chkconfig apache2 --del
Instead of apache2 it could be httpd, no centos handy to check.

I
Ilya Evseev, 2013-12-07
@IlyaEvseev

yum remove httpd -- remove Apache package
yum install nginx -- download and install nginx package

E
evnuh, 2013-12-07
@evnuh

Author, documentation not interested? There is a little left, in HP.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question