[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#253203: apache will not start due to syntax error

On Mon, 7 Jun 2004, William R. McDonough wrote:

> Package:  apache
> Version:  1.3.31-1
> Sometime in the last 24 hours, probably after an upgrade... not sure...
> Apache died and will not restart.
> The error given is not enough information for me to find which file apache
> is complaining about:
> [root@janitor: ~]$ apachectl start
> Bareword found where operator expected at /dev/null line 1, near "/usr/sbin"
>         (Missing operator before bin?)
> Number found where operator expected at /dev/null line 1, near "line 68"
>         (Do you need to predeclare line?)
> syntax error at /dev/null line 1, near "/usr/sbin"
> Execution of /dev/null aborted due to compilation errors.
> parse: Success
> /usr/sbin/apachectl start: httpd could not be started
> I'm looking for help to findout which file Apache is complaining about so
> I can fix the syntax.

Uhao... never seen an error like this. I guess i will need your help to
track this problem down.

Please run the following commands for me:

/etc/init.d/apache stop

to be sure nothing is running.

apachectl configtest

that will check if there are obviuos errors in the config files
and repeat the same test executing:

apache -t

If there are errors in the config file please indicate which ones
otherwise you will see a "Sintax OK", but remember that it does not mean
that the config is 100% valid, only the sintax.

try to start apache again and keep an eye on /var/log/error.log.

Try first with /etc/init.d/apache start (and see if it starts) stop it
again and try apachectl start.


PS I would really appreciate if you can provide me info back asap.

<user> fajita: step one
<fajita> Whatever the problem, step one is always to look in the error log.
<user> fajita: step two
<fajita> When in danger or in doubt, step two is to scream and shout.

Reply to: