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.
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.