directadmin + apache 1.3 upgrade to 2.0 failed

freeman

Verified User
Joined
Sep 27, 2007
Messages
4
Location
Netherlands
After some trouble with my box yesterday i was kind of forced to install Apache/2.0.61. I thought everything was working fine until i altered some users domains. It changed (obviously) the user httpd.conf which caused Apache to fail. It generated an error concerning the users httpd.conf. After inspection this has happened:

new user httpd.conf:

ADDED: Port 80 (on top)

CHANGED:

SuexecUserGroup ***** *****

to

User ***** (in every virtualhost)
Group ***** (in every virtualhost)

My best guess is that directadmin f#ckes up these httpd.conf files due to a configuration error. I checked the directadmin.conf for apache_ver and it says 2.0.

Can anyone tell me how to fix this problem?
 
Try this:
Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d
 
Try this:
Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d
Thnx! now non of the sites work anymore. This is what happened:

[root@core conf]# echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
[root@core conf]# /usr/local/directadmin/dataskq d
In debug mode
Debug set to level 10
root priv set: uid:0 gid:0 euid:0 egid:0
pidfile written
staring queue
done queue

[root@core conf]# /sbin/service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 7 of /usr/local/directadmin/data/users/adank/httpd.conf:
Port was replaced with Listen in Apache 2.0

All user httpd.conf files are now altered the same way as the single user was when i changed his settings. Now apache is down.
 
Last edited:
Fixed it.

The problem was i didn't restart directadmin after i changed the directadmin config file to 2.0. Now the new config files work fine. I just receive the following warnings when starting apache:

[warn] NameVirtualHost **.***.**.**:443 has no VirtualHosts
[warn] NameVirtualHost **.***.**.**:80 has no VirtualHosts

I had this problem before with apache 1.3, i solved it by adding:

<VirtualHost **.***.**.**:80>
ServerName localhost
</VirtualHost>

for every ip in the /etc/httpd/conf/extra/httpd-vhosts.conf. But that doesn't work anymore appearently. Any suggestions???
 
Last edited:
Back
Top