After I did a routine Ubuntu software update, apache2 won't start with webwork.conf enabled. I had a similar issue 2 years ago and followed every step that was discussed to fix the issue but still no avail.
First, our webwork server is running on Ubuntu 16.04 and apache 2.4.18. Apache2 works without webwork.conf enabled. When I run "apache2tcl restart" with webwork.conf enabled, this is the error message I am getting.
--
webwork.apache2-config: webwork_server_admin_email for reporting bugs has been set to sunglee@usm.edu in site.conf
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 www-data
webwork.apache2-config: WeBWorK server groupID is wwdata
webwork.apache2-config: The webwork url on this site is http://math.usm.edu/webwork2
webwork.apache2-config: The webwork smtp server address is localhost
webwork.apache2-config: The webwork smtp server port is
webwork.apache2-config: The webwork smtp server protocol is 'not ssl'
webwork.apache2-config: webwork_server_admin_email for reporting bugs has been set to sunglee@usm.edu in site.conf
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 www-data
webwork.apache2-config: WeBWorK server groupID is wwdata
webwork.apache2-config: The webwork url on this site is http://math.usm.edu/webwork2
webwork.apache2-config: The webwork smtp server address is localhost
webwork.apache2-config: The webwork smtp server port is
webwork.apache2-config: The webwork smtp server protocol is 'not ssl'
AH00526: Syntax error on line 45 of /etc/apache2/conf-enabled/webwork.conf:
Can't locate Email/Address/XS.pm in @INC (you may need to install the Email::Address::XS module) (@INC contains: /opt/webwork/pg/lib /opt/webwork/webwork2/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl . /etc/apache2) at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SendMail.pm line 30.\nBEGIN failed--compilation aborted at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SendMail.pm line 30.\nCompilation failed in require at (eval 550) line 2.\nBEGIN failed--compilation aborted at /opt/webwork/webwork2/lib/WeBWorK.pm line 88.\nCompilation failed in require at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 37.\nBEGIN failed--compilation aborted at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 37.\n
Action 'restart' failed.
The Apache error log may have more information.
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 www-data
webwork.apache2-config: WeBWorK server groupID is wwdata
webwork.apache2-config: The webwork url on this site is http://math.usm.edu/webwork2
webwork.apache2-config: The webwork smtp server address is localhost
webwork.apache2-config: The webwork smtp server port is
webwork.apache2-config: The webwork smtp server protocol is 'not ssl'
webwork.apache2-config: webwork_server_admin_email for reporting bugs has been set to sunglee@usm.edu in site.conf
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 www-data
webwork.apache2-config: WeBWorK server groupID is wwdata
webwork.apache2-config: The webwork url on this site is http://math.usm.edu/webwork2
webwork.apache2-config: The webwork smtp server address is localhost
webwork.apache2-config: The webwork smtp server port is
webwork.apache2-config: The webwork smtp server protocol is 'not ssl'
AH00526: Syntax error on line 45 of /etc/apache2/conf-enabled/webwork.conf:
Can't locate Email/Address/XS.pm in @INC (you may need to install the Email::Address::XS module) (@INC contains: /opt/webwork/pg/lib /opt/webwork/webwork2/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl . /etc/apache2) at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SendMail.pm line 30.\nBEGIN failed--compilation aborted at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Instructor/SendMail.pm line 30.\nCompilation failed in require at (eval 550) line 2.\nBEGIN failed--compilation aborted at /opt/webwork/webwork2/lib/WeBWorK.pm line 88.\nCompilation failed in require at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 37.\nBEGIN failed--compilation aborted at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 37.\n
Action 'restart' failed.
The Apache error log may have more information.
--
Line 45 of webwork.conf is "PerlModule mod_perl2". When I run "a2enmod mod_perl", I get the message
"ERROR: Module mod_perl does not exist!"
but mod_perl does exist as seen in the attached server-info. Unless I missed something obvious, I don't notice anything wrong in the server-info.
I would very much appreciate any help on this issue.