apache and MySQL went down cant restart help

1 post / 0 new
#1 Fri, 01/19/2018 - 02:53
oxonweb

apache and MySQL went down cant restart help

Hi all if some one could give advice it would be great.

running on Dedi server CPUIntel(R) Core(TM) i5-3570S CPU @ 3.10GHz Number :4Cache :6144 KBSpeed :3424 MHz RAM2 x 8192 MB CentOS Linux 7.4.1708

Basically all was fine last night but i had no space left on root folder so cleaned old files like old kernels and .giz files. In order to auto update a couple of files as normal.

now i see that the Apche and MySQL db is down and wont restart.

the errors i get are

# apachectl configtest
(2)No such file or directory: AH02291: Cannot access directory '/etc/httpd/logs/' for main error log
(2)No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/httpd/conf/httpd.conf:771
(2)No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/httpd/conf/httpd.conf:692
(2)No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/httpd/conf/httpd.conf:599
(2)No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/httpd/conf/httpd.conf:507
(2)No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/httpd/conf/httpd.conf:432
(2)No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/httpd/conf/httpd.conf:361
(2)No such file or directory: AH02291: Cannot access directory '/etc/httpd/logs/' for error log of vhost defined at /etc/httpd/conf.d/ssl.conf:56
AH00014: Configuration check failed

the file     '/etc/httpd/logs/'  is there so very odd??

also the Mysql is showing errors.

Failed to start database :
Redirecting to /bin/systemctl start mariadb.service
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.

and MySQL is not running on your system - database list could not be retrieved.

The full MySQL error message was : DBI connect failed : Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

hope that helps

I do still have webmin and SSH login if helps

thanks