Closed witolot closed 11 years ago
This means that something else is running on port 80. It might be NginX, in which case just do sudo pkill nginx
and try restarting NginX.
Let me know if this is the case, because I might take another look at the scripts that restart PHP and NginX.
Hi
Thanks for the quick response. Can two simultaneous nginx be running concurrently?
I ran sudo lsof -i:80 first and got the following:
wit@ubuntu:~# sudo lsof -i:80 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME nginx 4126 root 6u IPv6 61098 0t0 TCP :http (LISTEN) nginx 4126 root 7u IPv4 61099 0t0 TCP :http (LISTEN) nginx 4127 www-data 6u IPv6 61098 0t0 TCP :http (LISTEN) nginx 4127 www-data 7u IPv4 61099 0t0 TCP :http (LISTEN) nginx 4128 www-data 6u IPv6 61098 0t0 TCP :http (LISTEN) nginx 4128 www-data 7u IPv4 61099 0t0 TCP :http (LISTEN) nginx 4129 www-data 6u IPv6 61098 0t0 TCP :http (LISTEN) nginx 4129 www-data 7u IPv4 61099 0t0 TCP :http (LISTEN) nginx 4130 www-data 6u IPv6 61098 0t0 TCP :http (LISTEN) nginx 4130 www-data 7u IPv4 61099 0t0 TCP :http (LISTEN)
I then ran sudo pkill nginx and killed all nginx processes. sudo lsof -i:80 showed nothing. Then sudo service nginx start starts all processes again. IP still not reachable. Please advise.
Just realised that it's a server problem. Not the script's. Apparently running anything on a Chinese mainland based server requires a registration number. I can run commands and do setups, but nothing will show on IP address until red tape is taken care of. Thanks for the help. Your script runs perfectly on my Virtualbox, should be fine on production server too after getting the ICP license number.
Fresh LEMP install using the script on Ubuntu 12.04 LTS. Nothing shows up on VPS's static IP (though it should). After setting a domain to resolve on the VPS's static IP, example.com -> PHP page shows up. End of install log shows:
Setting up postfix-pcre (2.9.6-1~12.04.1) ... Adding pcre map entry to /etc/postfix/dynamicmaps.cf Processing triggers for libc-bin ... ldconfig deferred processing now taking place Gracefully shutting down php-fpm warning, no pid file found - php-fpm is not r$ Starting php-fpm [29-Mar-2013 18:16:53] NOTICE: PHP message: PHP Warning: PHP$ [29-Mar-2013 18:16:53] NOTICE: PHP message: PHP Warning: PHP Startup: Unable $ [29-Mar-2013 18:16:53] NOTICE: PHP message: PHP Warning: PHP Startup: Unable $ [29-Mar-2013 18:16:53] NOTICE: PHP message: PHP Warning: PHP Startup: Unable $ done