Web Hosting Talk







View Full Version : HELP: httpd start faild


host911
08-27-2002, 07:26 PM
Hi all,
my apache is just stoped working by it self and could not make it start again and I get this mesage when I do httpd start:


root@hannibal [~]# httpd start
[Tue Aug 27 19:24:12 2002] [warn] Loaded DSO /home/asp/module/linux2_optimized/apache_1.3.26/eapi/mod_casp2.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)
Syntax error on line 329 of /usr/local/apache/conf/httpd.conf:
ServerAlias only used in <VirtualHost>
/usr/sbin/httpd start: httpd could not be started

anyone knows how can I solve this problem?
Also how can I view a file by line so I can find out the line 329 what it is??

Thanks for your support

DigiCrime
08-27-2002, 07:32 PM
Syntax error on line 329 of /usr/local/apache/conf/httpd.conf

and it stopped on its own? weird.

host911
08-27-2002, 07:39 PM
yes, it happened 10 min after I added out a new account.

what I did now I commented out the line 329 and the httpd start worked well, now everything is working well.
I hope that is enough solution

Also another thing when I do the " apachectl configtest " i gets the following:

root@hannibal [~]# apachectl configtest
bash: apachectl: command not found

anyone knows why is not accepting this command?? it was working fine before.

bitserve
08-27-2002, 11:19 PM
You'll want to compile the DSO for mod_casp2 on your machine with your apxs. That might get rid of that warning message.

ServerAlias directives can only be inside of VirtualHost directives. You figured that out already.

To go to line 329, type:

vi httpd.conf
329G

More than likely apachectl isn't in your path. You'll want to type the full path to the command, or execute it from within the directory that the command resides.

./apachectl configtest

host911
08-28-2002, 12:12 AM
OK, I will recompile that module and I will see what will happen with me,
Thanks for your help.