Restarting Apache Web Server
Unable to open log file “/usr/local/apache/logs/error_log” - No such file or directory at /usr/local/cpanel/Cpanel/HttpUtils/ApRestart.pm line 300.
and here is the output of these code
ls -al /usr/local/apache
ls -al /usr/local/apache/logs
[[email protected] ~]# ls -al /usr/local/apache
total 16
drwxr-xr-x 4 root root 4096 Sep 26 2020 .
drwxr-xr-x. 18 root root 4096 Jul 1 2021 ..
lrwxrwxrwx 1 root root 28 Sep 26 2020 access_log -> /etc/apache2/logs/access_log
drwxr-xr-x 2 root root 4096 Sep 26 2020 bin
drwxr-xr-x 4 root root 4096 Jan 1 08:46 conf
lrwxrwxrwx 1 root root 25 Sep 26 2020 domlogs -> /etc/apache2/logs/domlogs
lrwxrwxrwx 1 root root 27 Sep 26 2020 error_log -> /etc/apache2/logs/error_log
lrwxrwxrwx 1 root root 13 Sep 26 2020 htdocs -> /var/www/html
lrwxrwxrwx 1 root root 17 Sep 26 2020 logs -> /etc/apache2/logs
lrwxrwxrwx 1 root root 20 Sep 26 2020 modules -> /etc/apache2/modules
[[email protected] ~]# ls -al /usr/local/apache/logs
lrwxrwxrwx 1 root root 17 Sep 26 2020 /usr/local/apache/logs -> /etc/apache2/logs
Unable to open log file “/usr/local/apache/logs/error_log” - No such file or directory at /usr/local/cpanel/Cpanel/HttpUtils/ApRestart.pm line 300.
and here is the output of these code
ls -al /usr/local/apache
ls -al /usr/local/apache/logs
[[email protected] ~]# ls -al /usr/local/apache
total 16
drwxr-xr-x 4 root root 4096 Sep 26 2020 .
drwxr-xr-x. 18 root root 4096 Jul 1 2021 ..
lrwxrwxrwx 1 root root 28 Sep 26 2020 access_log -> /etc/apache2/logs/access_log
drwxr-xr-x 2 root root 4096 Sep 26 2020 bin
drwxr-xr-x 4 root root 4096 Jan 1 08:46 conf
lrwxrwxrwx 1 root root 25 Sep 26 2020 domlogs -> /etc/apache2/logs/domlogs
lrwxrwxrwx 1 root root 27 Sep 26 2020 error_log -> /etc/apache2/logs/error_log
lrwxrwxrwx 1 root root 13 Sep 26 2020 htdocs -> /var/www/html
lrwxrwxrwx 1 root root 17 Sep 26 2020 logs -> /etc/apache2/logs
lrwxrwxrwx 1 root root 20 Sep 26 2020 modules -> /etc/apache2/modules
[[email protected] ~]# ls -al /usr/local/apache/logs
lrwxrwxrwx 1 root root 17 Sep 26 2020 /usr/local/apache/logs -> /etc/apache2/logs