Create of new user/domain will crash HTTPD URGENT HELP

Reikor

Verified User
Joined
Aug 27, 2009
Messages
35
I have this Directadin working for many many years without trouble, but today if i move a domain or create httpd will shutdown.
When i run service httpd restart i get something like this:

[root@ns1 users]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: Syntax error on line 12 of /usr/local/directadmin/data/users/kkk/httpd.conf:
Port was replaced with Listen in Apache 2.0

[root@ns1 users]#

And the httpd.conf have THIS:
[root@ns1 kkk]# cat httpd.conf
# Auto generated apache config file by DirectAdmin version 1.42.1
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to his/her website

# For global config changes that affect all Users, see this guide:
# http://help.directadmin.com/item.php?id=2
# For local config changes that only affect one User, see this guide:
# http://help.directadmin.com/item.php?id=3

# Frontpage requires these parameters in every httpd.conf file or else
# it won't work.
Port 80
ServerRoot /etc/httpd



<VirtualHost *myip*:80 >


ServerName www.kkk.com
ServerAlias www.kkk.com kkk.com
ServerAdmin [email protected]
DocumentRoot /home/kkk/domains/kkk.com/public_html
ScriptAlias /cgi-bin/ /home/kkk/domains/kkk.com/public_html/cgi-bin/

UseCanonicalName OFF

User kkk
Group kkk
CustomLog /var/log/httpd/domains/kkk.com.bytes bytes
CustomLog /var/log/httpd/domains/kkk.com.log combined
ErrorLog /var/log/httpd/domains/kkk.com.error.log



<Directory /home/kkk/domains/kkk.com/public_html>
Options +Includes -Indexes

php_admin_flag safe_mode OFF


php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'


php_admin_value open_basedir /home/kkk/:/tmp:/var/tmp:/usr/local/lib/php/


</Directory>



</VirtualHost>
[root@ns1 kkk]#

Clearly ther eis 3 things wrong.
The port 80, the user and the group that cant be there.

If i delete by hand those 3 things, it start working perfectly again.
Maybe this is something wrong that came with the new version or i dont know.

Wher ei can fix this?

Thanks.
 
Replace

Code:
Port 80

with

Code:
Listen 0.0.0.0:80


But you'd better run

Code:
cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs

It should solve the issue.
 
thanks, it seems that solve the problem.

For all, remember to save the conf files before doing this if you have something extra working that you customize.

Thanks, for the help
 
Anybody can help me? time to time, this is happening again on my server and now is not getting fixed with the last commands.

cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs

this is not working anymore, can someone help me?
 
Can you show us the standard apache conf files used with the builds? They are located in the following directories:
/usr/local/directadmin/custombuild/configure/ap2/conf
/usr/local/directadmin/custombuild/custom/ap2/conf
 
Back
Top