BUG? (/etc/httpd/conf/extra/directadmin-vhosts.conf)

m4ri00sh

Verified User
Joined
May 20, 2007
Messages
206
It looks like that when I delete user thru DA it does not delete the entry for the user in the : /etc/httpd/conf/extra/directadmin-vhosts.conf
and APACHE stops... when I tried to start it manually I get this:

s1:~# /etc/init.d/httpd start
Starting httpd: httpd: Syntax error on line 155 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /etc/httpd/conf/extra/directadmin-vhosts.conf: Could not open configuration file /usr/local/directadmin/data/users/gen/httpd.conf: No such file or directory

Once I edited the file and delete it (the line pointing to not existing configuration file) manually my apache2.2 starts... and everything is fine....

I am using Debian... with Apache2.2 and installed that with help of custombuild...

any other questions? :)
 
Last edited:
Not a bug :) Do you have "/etc/httpd/conf/extra/directadmin-vhosts.conf" in /usr/local/directadmin/conf/directadmin.conf ? If yes - you probably need to email DirectAdmin support.
 
Not a bug :) Do you have "/etc/httpd/conf/extra/directadmin-vhosts.conf" in /usr/local/directadmin/conf/directadmin.conf ? If yes - you probably need to email DirectAdmin support.

No, I don't have the line in the conf file..... and .... ?? :)

Does it mean, I don't have to contact DA support :):D
 
Last edited:
If you don't have it - you need to add it :) (change /etc/httpd/conf/httpd.conf with it)
 
but how should I add it.... is there any variable like .... "vhosts"... so it looked like

vhosts=/etc/httpd/conf/extra/directadmin-vhosts.conf

hmmmmm?

and what do you mean by ....
(change /etc/httpd/conf/httpd.conf with it)
I have in my /etc/httpd/conf/httpd.conf line with....
Include conf/extra/directadmin-vhosts.conf

hmmmm?
 
Not a bug :) Do you have "/etc/httpd/conf/extra/directadmin-vhosts.conf" in /usr/local/directadmin/conf/directadmin.conf ? If yes - you probably need to email DirectAdmin support.

I DON'T have
Do you have "/etc/httpd/conf/extra/directadmin-vhosts.conf" in /usr/local/directadmin/conf/directadmin.conf


but I DO have:

Include conf/extra/directadmin-vhosts.conf in /etc/httpd/conf/httpd.conf

You got me confused :)
cause by having ....

apacheconf=/etc/httpd/conf/httpd.confin /usr/local/directadmin/conf/directadmin.conf
it is all tha same ....
 
Last edited:
Change:
Code:
[COLOR=Black]apacheconf=/etc/httpd/conf/httpd.conf[/COLOR]

To:
Code:
[COLOR=Black]apacheconf=[/COLOR]/etc/httpd/conf/extra/directadmin-vhosts.conf

In /usr/local/directadmin/conf/directadmin.conf
 
yeah, but then it will not read all OTHER .conf files at all.... wow



------------
EDITED:
OK, now I know how that works :)
 
Last edited:
I hope DA Support will show up soon.... that is kind of interesting.... what needs to be in the /usr/local/directadmin/conf/directadmin.conf.... and how it really reads/updates configs....
 
Last edited:
Hello,

If you're using custombuild, which by the fact that directadmin-vhosts.conf is mentioned, I will assume to be true, then ensure you've got a few things.


1) if you type the following, you should get the same output:
Code:
[root@server]# [b]/usr/local/directadmin/directadmin c | grep apacheconf[/b]
apacheconf=/etc/httpd/conf/extra/directadmin-vhosts.conf
[root@server]#
If you don't, then add:
apacheconf=/etc/httpd/conf/extra/directadmin-vhosts.conf
to the /usr/local/directadmin/conf/directadmin.conf file.
Save, and restart DA. Type the above command again to ensure you get the correct value. (sometimes a blank line has to be added to the bottom of the directadmin.conf if it's not finding it)
Do not go on until this step is satisfied and you get the correct output.

2) once that's all good and done, type the following to make sure you're using the correct main /etc/httpd/conf/httpd.conf file
Code:
grep directadmin-vhosts.conf /etc/httpd/conf/httpd.conf
If it's correct, you'll get:
Include /etc/httpd/conf/extra/directadmin-vhosts.conf
as output. If not, you'll get nothing in the output.
So, if you don't have the correct /etc/httpd/conf/httpd.conf file, simply type:
Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs
which will redo the works for you, including resetting the directadmin-vhosts.conf file, and restting the main httpd.conf file to be correct.

John
 
Back
Top