Initially, my website had an error and could not convert www to non-www.
I tried to fix nginx but could not reload the error: Nginx rule configuration error: /bin/sh: /www/server/nginx/sbin/nginx: Permission denied I have decentralized and enabled it successfully
but then the error mysql Starting MariaDB ERROR! Couldn't find MariaDB server (/www/server/mysql/bin/mysqld_safe) and I execute
chown -R mysql.mysql /www/server/mysql/bin
but still error why ??
-- Unit mysqld.service has failed.
-- The result is failed.
Apr 17 10:36:09 thoitiet systemd[1]: Unit mysqld.service entered failed state.
Apr 17 10:36:09 thoitiet systemd[1]: mysqld.service failed.
Apr 17 10:36:09 thoitiet polkitd[420]: Unregistered Authentication Agent for unix-process:3287:28934 (system bus name :1.38, object path /o
lines 2041-2074/2074 (END)
[root@thoitiet ~]# C
[root@thoitiet ~]# systemctl status mysqld.service
● mysqld.service - LSB: start and stop MariaDB
Loaded: loaded (/etc/rc.d/init.d/mysqld; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2024-04-17 10:36:09 UTC; 34s ago
Docs: man:systemd-sysv-generator(8)
Process: 3293 ExecStart=/etc/rc.d/init.d/mysqld start (code=exited, status=1/FAILURE)
Apr 17 10:36:08 thoitiet mysqld[3293]: does not exist or is not executable. Please cd to the mysql installation
Apr 17 10:36:08 thoitiet mysqld[3293]: directory and restart this script from there as follows:
Apr 17 10:36:08 thoitiet mysqld[3293]: ./bin/mysqld_safe&
Apr 17 10:36:08 thoitiet mysqld[3293]: See https://mariadb.com/kb/en/mysqld_safe for more information
Apr 17 10:36:09 thoitiet mysqld[3293]: /etc/rc.d/init.d/mysqld: line 263: kill: (3435) - No such process
Apr 17 10:36:09 thoitiet mysqld[3293]: ERROR!
Apr 17 10:36:09 thoitiet systemd[1]: mysqld.service: control process exited, code=exited status=1
Apr 17 10:36:09 thoitiet systemd[1]: Failed to start LSB: start and stop MariaDB.
Apr 17 10:36:09 thoitiet systemd[1]: Unit mysqld.service entered failed state.
Apr 17 10:36:09 thoitiet systemd[1]: mysqld.service failed.