NginX still running when uninstalled it - nginx

I have tried to uninstall NGinX from my Ubuntu using following command:
sudo apt-get remove nginx-core nginx-full nginx-light nginx-extras nginx-common
I have used below command as well
sudo apt-get remove --purge nginx*
And still see below screen when I check NginX processes running.
What is happening??

Try to run sudo killall nginx.

Try to clear the web browser cache. It works for me.

Related

mysql: unrecognized service

I followed the instruction here to install mariadb on WSL after following the steps. and I run this
sudo service mysql start
I got
mysql: unrecognized service
Any idea how to solve this?
It's just a simple problem as you see but it takes me 24 hours to diagnose the problem.
Solution:
I uninstall mariadb with this command
sudo apt-get remove --auto-remove mariadb-server
and install sudo apt install mysql-server instead but it leads to a more problems
Successfully install mysql but can't start
dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
so by removing mariadb's deb sources and purging mysql-common and then reinstalling it.
do:
sudo apt edit-sources
and look for anything containing mariadb like: deb [arch=amd64,arm64,ppc64el] http://ftp.nluug.nl/db/mariadb/repo/10.3/ubuntu bionic main
comment it out by putting a # in front of it. then run
sudo apt update
sudo apt purge mysql-common
sudo apt install mysql-common
after that you can installed mysql-server properly via sudo apt install mysql-server, then do:
sudo apt purge mysql-server mysql-server-5.7
sudo apt purge mysql-server mysql-client mysql-common mysql-server-core-5.7 mysql-client-core-5.7
sudo rm -rfv /etc/mysql /var/lib/mysql
sudo apt autoremove
sudo apt autoclean
Finally:
sudo apt update
sudo apt install mysql-server mysql-client --fix-broken --fix-missing
References:
https://askubuntu.com/questions/980314/cannot-install-mysql-server-in-ubuntu16-0-4
https://askubuntu.com/questions/763534/cannot-reinstall-mysql-server-after-its-purge
Which Linux distribution are you using on your WSL?
First, try the following:
systemctl {start|stop|restart|status} mysql
OR
service mysql {start|stop|restart|status}
to manage the MySQL service.
The reasons can be the following:
Wrong service name:
On some Linux distributions, the service is named as mysqld instead of mysql.
To check: Run chkconfig --list on your WSL and identify the correct service name.
File permission issues:
Please ensure that the files in /var/lib/mysql have 770 permissions and ownership set to mysql user.
To fix:
chmod -R 770 /var/lib/mysql
chgrp -R mysql /var/lib/mysql
In addition to that, ensure that the /etc/rc.d/init.d/mysqld script has executable permissions to modify mysqld.
To fix:
chmod 755 /etc/rc.d/init.d/mysqld
Missing/Corrupted MySQL server package:
Reinstall MySQL!

NGINX failed after installing "nginx-extras"

Installed through:
apt-get install nginx-extras
After this, I tried do "service nginx restart" and "nginx -t" gets
no port in upstream "php5-fpm-sock" in /etc/nginx/sites-enabled/[file]:84
Then I uninstalled nginx-extras
apt-get remove nginx-extras
But problem has not solved, it seems during installation some config was changed.
Question is what config has changed and how to fix?
Nginx 1.13.12 on Debian 8.
During instalation nginx-extras, it will ask smth about use current version of configs. Answer N.
try and remove all nginx installed packages and install nginx-full

opencpu cloud server installation guide on ubuntu 16.04

Would anyone know or like to share their note on installing opencpu cloud server on ubuntu 16.04?
I thought it is easy, but we saw many error here and there when following the instructions. I am new to opencpu. And, I don't have much experience on apache and nignx.
Here is the long story:
I created a new and clean ubuntu 16.04 server from microsoft azure vm, and installed opencpu cloud server following:
# Requires Ubuntu 14.04 (Trusty) or 16.04 (Xenial)
sudo add-apt-repository -y ppa:opencpu/opencpu-1.6
sudo apt-get update
sudo apt-get upgrade
# Installs OpenCPU server
sudo apt-get install -y opencpu
The server reported insserv error when running opencpu init script
update-rc.d: error: insserv rejected the script header dpkg
We then did some goolge and fix around, we got apache2 running, but when called:
curl http://localhost/ocpu/info
received 404 error.
FYI, the single user server runs fine.
The solution we found is that opencpu need mod_R to be turned on from apache2:
sudo a2enmod R
You need first to change to dir:
/etc/apache2/mods-available
And, make sure R.load file exists.
After running a2enmod command, should see a link to R.load (R module) in
/etc/apache2/mods-enable
Thank you y g for your question and response .. I had the same problem i try what you have mentioned in your comment but
curl http://localhost/cpu/info
takes along time without no response.
Thank you.
I used opencpu 1.5 works without bugs on ubuntu 16.04
sudo add-apt-repository -y ppa:opencpu/opencpu-1.5
sudo apt-get update
sudo apt-get upgrade
Install R and then install opencpu
sudo apt-get install r-base r-base-dev
sudo apt-get install -y opencpu
Also you should probably install Rstudio for IDE access
sudo apt-get install rstudio-server
To login to R you'll need to make a new user - follow the prompts
sudo adduser myname
Now just to make sure its all working
sudo service opencpu restart
sudo service rstudio-server restart
And try something like to check if its working
curl -L -v localhost/ocpu/library/
which should return a list of packages now installed on Ubuntu like this
Final Screenshot

Install of 'R' unstable on Ubuntu

I tried to install R on Ubuntu (14.04) with this command:
sudo apt-get install r-base
The network connection went down during the download / install so I had to end the download (ctrl-c). I retried the same command to restart and it is a mess. There are indications of all kinds of dependency problems. I researched and tried 'sudo apt-get remove r-base' (along with autoremove) and that does not allow me to try to reinstall. In fact, I have tried all kinds of ways to remove but nothing. How can I rectify this? Thank you!

Nginx update on ubuntu fails

I am not nginx expert and having problems in configuring it.
Examples I found on web are slightly different so I wanted to update nginx 1.05 to 1.4.1 to see if it helps.
I have found instructions to install nginx from PPA as
apt-get install python-software-properties
add-apt-repository ppa:nginx/stable
apt-get update
apt-get install nginx
It seems as is it has installed but nginx -v is still telling me I have 1.0.5
What I missed?
Using ubuntu 11.10
Thanks
NGINX maintains is own apt repository which means you don't need to use the PPA.
Firstly remove the added ppa:
sudo add-apt-repository --remove ppa:nginx/stable
Then, if you're not running anything critical through nginx I would suggest running apt-get remove --purge nginx to completely remove nginx.
To use NGINX's repository add the following to `/etc/apt/sources.list.d/nginx.list':
deb http://nginx.org/packages/ubuntu/ oneiric nginx
deb-src http://nginx.org/packages/ubuntu/ oneiric nginx
Then run apt-get update. Then reinstall using apt-get install nginx.
Hope that works.

Resources