i am running a vps with apache.
just installed nginx. got the address already in use error at port 80 because apache is using it. I am new to linux/apache stuff so is it possible to change the port of nginx and how ? if yes will it work as i want it to serve static files automaticaly or should i get my hosting company to do it instead since i don’t know much about these.
and yes i used this tutorial to install it http://library.linode.com/web-servers/nginx/installation/centos-5
Help Appreciated 🙂
Thanks in advance
Look either into
nginx.conffilesites-enabled(usually under thenginxdirectory)and search the
serverpart,listenhere you can change the port for 81 for instance instead of 80.
Notes:
server { listen }part within yournginx.confdirectly/etc/nginx(nginx.conf) andsites-enabledis below that directory.service apache stoporservice httpd stopor/etc/init.d/apache stop(or httpd) should work to stop the process, or trykillall httpdorkillall apache(or apache2) to stop Apache.