Hi Danny,
I am working with Hieu Nguyen to install WeBWorK. While going through the webwork installer, I encounter the following errors in starting the apache server
To start the apache server, I type in "apachectl start" and the server fails to start:
[root@webwork03 bin]# apachectl start
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
The error reported using journalctl -xe:
Aug 09 14:11:45 webwork03.rowan.edu httpd[304]: AH00526: Syntax error on line 12 of /etc/httpd/conf.d/webwork.conf:
Aug 09 14:11:45 webwork03.rowan.edu httpd[304]: Can't locate Email/Sender/Simple.pm in @INC (@INC contains: /opt/webwork/pg/lib /opt/webwork/webwork2/lib /us
Aug 09 14:11:45 webwork03.rowan.edu httpd[304]: webwork.apache2-config: WeBWorK server is starting
Aug 09 14:11:45 webwork03.rowan.edu httpd[304]: webwork.apache2-config: WeBWorK root directory set to /opt/webwork/webwork2 in webwork2/conf/webwork.apache2
Aug 09 14:11:45 webwork03.rowan.edu httpd[304]: webwork.apache2-config: The following locations and urls are set in webwork2/conf/site.conf
Aug 09 14:11:45 webwork03.rowan.edu httpd[304]: webwork.apache2-config: PG root directory set to /opt/webwork/pg
Aug 09 14:11:45 webwork03.rowan.edu httpd[304]: webwork.apache2-config: WeBWorK server userID is www-data
Aug 09 14:11:45 webwork03.rowan.edu httpd[304]: webwork.apache2-config: WeBWorK server groupID is wwdata
Aug 09 14:11:45 webwork03.rowan.edu httpd[304]: webwork.apache2-config: The webwork url on this site is http://webwork03.rowan.edu/webwork2
Aug 09 14:11:45 webwork03.rowan.edu httpd[304]: webwork.apache2-config: The webwork smtp server address is localhost
Aug 09 14:11:45 webwork03.rowan.edu httpd[304]: webwork.apache2-config: The webwork smtp server port is
Aug 09 14:11:45 webwork03.rowan.edu httpd[304]: webwork.apache2-config: The webwork smtp server protocol is 'not ssl'
Aug 09 14:11:45 webwork03.rowan.edu systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Aug 09 14:11:45 webwork03.rowan.edu kill[306]: kill: cannot find process ""
Aug 09 14:11:45 webwork03.rowan.edu systemd[1]: httpd.service: control process exited, code=exited status=1
Aug 09 14:11:45 webwork03.rowan.edu systemd[1]: Failed to start The Apache HTTP Server.
I have already ran the file check_modules.pl and it says that all the required modules are found and loaded and the only thing that seems off are the following few lines:
Iterator::Util found and loaded
Prototype mismatch: sub main::from_json: none vs ($@) at (eval 519) line 2.
Prototype mismatch: sub main::to_json: none vs ($@) at (eval 519) line 2.
JSON found and loaded
To me, it seems that the modules installed using yum have been working fine, however, the ones installed using cpan have not. For example, yum does not have a perl-Email-Sender package available, so I installed it by typing the command:
cpan install Email::Sender::Simple.
However, the directory where these files are downloaded (/root/.cpan/build) is not included in @INC. My attempt to fix this problem was to modify the webwork.conf file at line 12 to include all the missing directories (by using: use lib "/root/.cpan/build/path/to/missingCpanDirectory";)
use lib "/root/.cpan/build/Email-Simple-2.213-0/lib"; to fix the Email::Sender::Simple issue for example.
While, this fixes this specific issue, we eventually encounter more errors that don't seem to be fixed by including more of these packages in webwork.conf. The output of journalctl -xe (after including some of these missing packages is):
-- Unit httpd.service has begun starting up.
Aug 09 15:10:34 webwork03.rowan.edu httpd[1595]: webwork.apache2-config: WeBWorK server is starting
Aug 09 15:10:34 webwork03.rowan.edu httpd[1595]: webwork.apache2-config: WeBWorK root directory set to /opt/webwork/webwork2 in webwork2/conf/webwork.apache2-config
Aug 09 15:10:34 webwork03.rowan.edu httpd[1595]: webwork.apache2-config: The following locations and urls are set in webwork2/conf/site.conf
Aug 09 15:10:34 webwork03.rowan.edu httpd[1595]: webwork.apache2-config: PG root directory set to /opt/webwork/pg
Aug 09 15:10:34 webwork03.rowan.edu httpd[1595]: webwork.apache2-config: WeBWorK server userID is www-data
Aug 09 15:10:34 webwork03.rowan.edu httpd[1595]: webwork.apache2-config: WeBWorK server groupID is wwdata
Aug 09 15:10:34 webwork03.rowan.edu httpd[1595]: webwork.apache2-config: The webwork url on this site is http://webwork03.rowan.edu/webwork2
Aug 09 15:10:34 webwork03.rowan.edu httpd[1595]: webwork.apache2-config: The webwork smtp server address is localhost
Aug 09 15:10:34 webwork03.rowan.edu httpd[1595]: webwork.apache2-config: The webwork smtp server port is
Aug 09 15:10:34 webwork03.rowan.edu httpd[1595]: webwork.apache2-config: The webwork smtp server protocol is 'not ssl'
Aug 09 15:10:34 webwork03.rowan.edu httpd[1595]: WebworkSOAP::WSDL: webwork_directory set to /opt/webwork/webwork2 via $WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
Aug 09 15:10:34 webwork03.rowan.edu httpd[1595]: WebworkSOAP::WSDL: rpc_url set to http://webwork03.rowan.edu/webwork2_rpc
Aug 09 15:10:34 webwork03.rowan.edu httpd[1595]: WebworkWebservice: webwork_directory set to /opt/webwork/webwork2 via $WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
Aug 09 15:10:34 webwork03.rowan.edu httpd[1595]: httpd (pid 16585) already running
Aug 09 15:10:34 webwork03.rowan.edu kill[1597]: kill: cannot find process ""
Aug 09 15:10:34 webwork03.rowan.edu systemd[1]: httpd.service: control process exited, code=exited status=1
Aug 09 15:10:34 webwork03.rowan.edu systemd[1]: Failed to start The Apache HTTP Server.
Here we don't even encounter where the error occurs, and I think it would be silly if our problem was solved by including more than 100 of these modules in the webwork.conf file. I am lost as to how to fix this problem and any help would be appreciated.