can not start apache

u4xlol

Verified User
Joined
Nov 12, 2009
Messages
59
hello

# service httpd start
Starting httpd: httpd: Syntax error on line 126 of /etc/httpd/conf/httpd.conf: Syntax error on line 17 of /etc/httpd/conf/extra/directadmin-vhosts.conf: Syntax error on line 16 of /usr/local/directadmin/data/users/headliner/httpd.conf: /usr/local/directadmin/data/users/headliner/httpd.conf:16: <VirtualHost> was not closed.


# httpd -v
Server version: Apache/2.2.21 (Unix)

PHP 5.2.17 + cgi
 
The error shouldnt be more clear...

Check line 16 of

/usr/local/directadmin/data/users/headliner/httpd.conf

Seems you have a not-closed <VirtualHost>

Regards
 
Hello,

Man, you should really contact danginx support, as it seems something went wrong with installation of the plugin.
 
hello
line 16 of /usr/local/directadmin/data/users/headliner/httpd.conf :

<VirtualHost X.X.X.X:80 >

i rebuild apache and php and rewrite_confs but This problem still exists !!
 
so prolly before <VirtualHost X.X.X.X:80 > there is not </VirtualHost> of the precedent one... or.. the one that start at line 16 isnt closed down there...

Regards
 
hello

What should I do?
<VirtualHost X.X.X.X:80 >
<VirtualHost X.X.X.X:8888 >
 
i rebuild apache and php and rewrite_confs but This problem still exists !!

remove danginx and do

Code:
cd /usr/local/directadmin/data/templates
cp virtual_host2*.conf custom
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
 
hello

i did uninstall danginx and your code but This problem still exists

service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 16 of /usr/local/directadmin/data/users/headliner/httpd.conf:
/usr/local/directadmin/data/users/headliner/httpd.conf:16: <VirtualHost> was not closed.
 
Make sure in /usr/local/directadmin/data/templates/custom you've got original files, so make sure that

Code:
cp virtual_host2*.conf custom

gave no error, or run it as

Code:
cd /usr/local/directadmin/data/templates
cp -f virtual_host2*.conf custom
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d8000

if it does not help (but first you should try it again), post content of

/usr/local/directadmin/data/templates/custom/virtual_host2.conf

then make sure /usr/local/directadmin/data/users/headliner/httpd.conf is writable
 
hello

thanks , The problem was solved
but why 6.5 MB commands sitting the the dtaskque
and why yum commands and rpm commands not working in your server

thanks
 
hello

danginx support told me:

Contact your directadmin supoort and ask why 6.5 MB commands sitting the the dtaskque
and why yum commands and rpm commands not working in your server
and fix that
 
I personally do not know anything about why and what exactly "yum commands and rpm commands" don't work on your server. If you need my answer you should hire me. As for dataskq, you should ask John, not me. I, as a independent system administrator, offer my help on these forums and paid support out of it.
 
danginx support told me:

Contact your directadmin supoort and ask why 6.5 MB commands sitting the the dtaskque
and why yum commands and rpm commands not working in your server
and fix that
This is not the place to contact your server administrator; it's not the place to contact DirectAdmin Support.

There are many of us (zEitEr, I, and others) who post here who also manage and support DirectAdmin servers.

Based on the problems they say you're having my guess is that it's outside the scope of DirectAdmin support, but you can certainly ask them if you'd like.

Or contact one of us (me by email or telephone) to work on your server to solve your problems.

Jeff
 
Back
Top