Installation Fail CenOS 7

I’m getting following Error when I try to install the easy way on my CentOS.
I had to remove mariadb and stop apache httd first, before I can install.

sudo bash --setup-production
Installing for centos 7 amd64
In case you encounter an error, you can post on

Adding centos mariadb repo
Installing packages for centos. This might take time...
Installing wkhtmltopdf
Configuring CentOS services
Starting services
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'

Hard to say from error description but I had issues thinking I had removed Maria DB but in fact bits remained from previous install. Try this:

If any of the yum remove commands return no file found no problem it just means it didn’t exsist.

sudo systemctl stop mariadb
sudo yum remove mariadb-server mariadb mariadb-libs
sudo yum remove mariadb-common mariadb-compat
sudo yum remove mysql-libs mysql-devel
sudo rm /etc/yum.repos.d/MariaDB.repo
And then run one or both of these commands depending on what install you have
sudo rm /etc/my.cnf
sudo rm /etc/my.cnf.d

sudo yum clean all

Then to see if all your db parts have been deleted
yum list installed | grep MariaDB

Then run frappe installer again…

You may have to do something similar with wkhtmltopdf.

1 Like

Thank you for your answer. I tried this earlier but it didn’t work for me.

I had the problem that the server I used had plesk with everything already installed. So I just did a clean install and ran the script.

Did you get frappe to install in the end?
I have only installed on bare metal. I used minimal Centos 7 sever and then added EPEL.
sudo yum install epel-release
Remove MariaDB.
sudo systemctl reboot.
then run frappe easy install.
If you have a failed previous install like you had. Delete frappe user and all frappe files before trying again. I think the frappe easy installer installs MariaDB 10 (Sorry the last time I did this was about 8 months ago ) if not once frappe is up and running sudo yum update will update it for you. Frappe runs fine newer version.

I found reading:
helped me see what was going on in the install process.