Installation

Apache won't start

Apache won't start

by Benjamin Hutz -
Number of replies: 3
I've been trying to make a new install of webwork on a RHEL6 machine with lots of difficulty. Currently, when you add the link to webwork.conf in /etc/httpd/conf.d apache no longer starts. 'apachectl restart' gives the error:
apachectl: Configuration syntax error, will not run "restart":
webwork.apache2-config: WeBWorK server is starting
webwork.apache2-config: WeBWorK root directory set to /opt/webwork/webwork2 in webwork2/conf/webwork.apache2-config
webwork.apache2-config: The following locations and urls are set in webwork2/conf/site.conf
webwork.apache2-config: PG root directory set to /opt/webwork/pg
webwork.apache2-config: WeBWorK server userID is apache
webwork.apache2-config: WeBWorK server groupID is apache
webwork.apache2-config: The webwork url on this site is http://*removed*
Localize.pm: Full path for the localization directory set to |/opt/webwork/webwork2/lib/WeBWorK/Localize|
Syntax error on line 8 of /etc/httpd/conf.d/webwork.conf:
Not enough arguments for values at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm line 429, near "values>="\nCompilation failed in require at (eval 689) line 3.\nBEGIN failed--compilation aborted at /opt/webwork/webwork2/lib/WeBWorK.pm line 85.\nCompilation failed in require at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 35.\nBEGIN failed--compilation aborted at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 35.\n\t(in cleanup) Not enough arguments for values at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm line 429, near "values>="\nCompilation failed in require at (eval 689) line 3.\nBEGIN failed--compilation aborted at /opt/webwork/webwork2/lib/WeBWorK.pm line 85.\nCompilation failed in require at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 35.\nBEGIN failed--compilation aborted at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 35.\nCompilation failed in require at /etc/httpd/conf.d/webwork.conf line 45.\n


where everything after the first line is also the output of apachectl configtest. I can't seem to even begin to figure out what the actual issue is. Has anyone seen this before and can make some suggestions?

I tried all the permission checking suggestions in similar threads.

Thanks,
Ben
In reply to Benjamin Hutz

Re: Apache won't start

by Michael Gage -

I would suggest there might be something funny at line 429 of the file WeBWorK/ContentGenerator/Instructor/SetMaker.pm. 


You might look to see what is there. Perhaps a corrupted file?


Take care,


Mike

In reply to Michael Gage

Re: Apache won't start

by Benjamin Hutz -
I had a similar thought and actually looked at the file compared to a working version of webwork and didn't *see* anything different. With your suggestion I went one step farther. The file size was different, so I replaced the file with the one from the working webwork and it seems to be starting now. I'll finish the install script and see if I can get everything working.