Tag Info

New answers tagged

1

If you want to run nginx and not apache2 you have two option either uninstall apache2 or stop apache2 To uninstall Apache2 sudo apt-get purge apache2* sudo apt-get autoremove sudo apt-get autoclean rm -rfv apache2* or you can simply stop apache2 service sudo service apache2 stop OR sudo service apache2ctl stop default nginx root folder is ...


0

Nginx depends on worker processes being able to shutdown gracefully. Apparently it can start new requests with the newly applied configuration. But it does not continue already started requests. To quote from http://nginx.org/en/docs/beginners_guide.html: Once the master process receives the signal to reload configuration, it checks the syntax validity ...


1

First, glen jackman was close: your script is using CR-LF (\r\n) line endings. For example, I recreated your script with CRLF line endings manually: $ cat foo.sh #!/bin/bash echo "Deleting: " $1 grep -lr $1 foo.txt | xargs echo echo "Done" $ file foo.sh foo.sh: Bourne-Again shell script, ASCII text executable, with CRLF line terminators $ sh foo.sh ...


0

sudo apt-get remove --purge nginx* will remove whatever is installed and is related to nginx, including configuration files. It will also list packages available in repositories which match the regex nginx* and are not installed.


0

Ok, so I followed the instructions in a forum (sorry, lost the url) for running apache2 WITH Nginx. I changed the apache listening ports from 80 to 81 in /etc/apache2/ports.conf and /etc/apache2/sites-enabled/000-default.conf Apache2 is now working, tested by typing localhost:81 into the browser! Woohoo!


1

Unless you specify the --purge option (or use the purge command), the configuration files are left untouched while uninstallation. Therefore all you need to do is: apt-get autoremove nginx Or, if you installed a specific variant (such as -core, -full, -extra, etc.): apt-get autoremove nginx-core


0

I guess you should use this ppa instead, which doesn't upgrade apache, but only upgrades php to 5.4: https://launchpad.net/~ondrej/+archive/ubuntu/php5-oldstable


0

sudo apt-get --purge remove nginx If that says that it not installed, try ps -ef |grep www-data And see if you see any of the workers present. If so, you could try to stop sudo service nginx stop If I had to guess, when you uninstalled the service didn't shut down the way it should have. You may need to install again sudo apt-get install ...



Top 50 recent answers are included