Apache error building apache_nginx

ricardo777

Verified User
Joined
Mar 29, 2012
Messages
90
Location
Netherlands
Hello,

When I change NGINX to Apache_NGINX I get this error:

/sbin/service httpd restart
Stopping httpd: [FAILED]
Starting httpd: (2)No such file or directory: AH02291: Cannot access directory '/var/log/httpd/domains/' for error log of vhost defined at /usr/local/directadmin/data/users//httpd.conf:17
(2)No such file or directory: AH02291: Cannot access directory '/var/log/httpd/domains/' for error log of vhost defined at /usr/local/directadmin/data/users//httpd.conf:20
(2)No such file or directory: AH02291: Cannot access directory '/var/log/httpd/domains/' for error log of vhost defined at /usr/local/directadmin/data/users//httpd.conf:17
(2)No such file or directory: AH02291: Cannot access directory '/var/log/httpd/domains/' for error log of vhost defined at /usr/local/directadmin/data/users//httpd.conf:42
(2)No such file or directory: AH02291: Cannot access directory '/var/log/httpd/domains/' for error log of vhost defined at /usr/local/directadmin/data/users//httpd.conf:20
(2)No such file or directory: AH02291: Cannot access directory '/var/log/httpd/domains/' for error log of vhost defined at /usr/local/directadmin/data/users//httpd.conf:42
(2)No such file or directory: AH02291: Cannot access directory '/var/log/httpd/domains/' for error log of vhost defined at /usr/local/directadmin/data/users//httpd.conf:20
(2)No such file or directory: AH02291: Cannot access directory '/var/log/httpd/domains/' for error log of vhost defined at /usr/local/directadmin/data/users//httpd.conf:17
(2)No such file or directory: AH02291: Cannot access directory '/var/log/httpd/domains/' for error log of vhost defined at /usr/local/directadmin/data/users//httpd.conf:17
(2)No such file or directory: AH02291: Cannot access directory '/var/log/httpd/domains/' for error log of vhost defined at /usr/local/directadmin/data/users//httpd.conf:42
(2)No such file or directory: AH02291: Cannot access directory '/var/log/httpd/domains/' for error log of vhost defined at /usr/local/directadmin/data/users//httpd.conf:20
AH00014: Configuration check failed

I have tried rebuilding and rewrite_conf without any success. Also rebuilding httpd.conf does not work.
 
Hello,

Was it you who removed USERNAME from the lines: /usr/local/directadmin/data/users//httpd.conf?
If not, then I guess something is wrong with your installation.
 
It seems you're missing /var/log/httpd/domains directory, please try the following and see if it solves your problem:
Code:
mkdir -p /var/log/httpd/domains
 
Hello,

Was it you who removed USERNAME from the lines: /usr/local/directadmin/data/users//httpd.conf?
If not, then I guess something is wrong with your installation.

Yes I removed it, sorry for not saying it in the post.

It seems you're missing /var/log/httpd/domains directory, please try the following and see if it solves your problem:
Code:
mkdir -p /var/log/httpd/domains

Thank you (again) this worked. Stupid that I wasn't thinking about this.

Couldn't find anything about this on DA forum nor Google so this is maybe handy for someone that have the same issue.
 
To come back to this issue, the only thing I can think is that I ran Executing /usr/local/directadmin/plugins/custombuild/admin/build remove_apache

What command does this trigger does this remove the /var/log/httpd/domains folder?

If yes then there is something wrong in the apache creating or the removal of the folder.
 
Back
Top