Hello all,
I'm in the process of setting up a WW server and am hoping for your help on an installation issue I am having. I believe that apache is up and running, but when I visit the public IPv4 for the AWS, the connection times out.
I am using the instructions at https://webwork.maa.org/wiki/WeBWorK_2.15_Ubuntu_Server_20.04_LTS_Amazon_Machine_Image and am trying to start the server but something is preventing apache2 from serving up the pages. I think the apache2 server is running from the output of service apache2 status (included below). To my knowledge, inbound and outbound rules are set correctly: I'm allowing SSH through my home IP only, allow ports 8443 and 443 inbound, and allow ports 80 and 8080 outbound. This is all set within the AWS EC2 interface. (I have not adjusted iptables or any other firewall within Ubuntu.)
Notably, I have commented out the "ping" line within /etc/apache2/conf-enabled/webwork.conf (following the idea in post https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4842) because Ubuntu let me know no packets were sent back. I have also tried setting the apache version as 2.4.41 in site.conf and I have also picked out three instances of aws.apizer.org in localOverrides.conf and replaced them with the public IPv4 address of the Amazon AWS instance. I have also set my email and the timezone in a few places, and as far as I know, there are no other edits to the .conf files. What could the issue be? Besides these outputs, is there other information that would be helpful?
Output from apache2ctl restart:
root@server:/home/ubuntu# apache2ctl 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 www-data
webwork.apache2-config: WeBWorK server groupID is wwdata
webwork.apache2-config: The webwork url on this site is http://localhost/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'
WebworkSOAP::WSDL: webwork_directory set to /opt/webwork/webwork2 via $WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
WebworkSOAP::WSDL: rpc_url set to http://localhost/webwork2_rpc
WebworkWebservice: webwork_directory set to /opt/webwork/webwork2 via $WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
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://localhost/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'
WebworkSOAP::WSDL: webwork_directory set to /opt/webwork/webwork2 via $WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
WebworkSOAP::WSDL: rpc_url set to http://localhost/webwork2_rpc
WebworkWebservice: webwork_directory set to /opt/webwork/webwork2 via $WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
Output of /var/log/apache2/error.log after issuing apache2ctl restart (LogLevel is set to "trace1" most verbose setting)
[Mon Jan 18 12:25:22.631470 2021] [mpm_prefork:notice] [pid 834] AH00173: SIGHUP received. Attempting to restart
[Mon Jan 18 12:25:23.902654 2021] [watchdog:debug] [pid 834] mod_watchdog.c(452): AH010033: Watchdog: Running with WatchdogInterval 1000ms
[Mon Jan 18 12:25:23.902676 2021] [watchdog:debug] [pid 834] mod_watchdog.c(461): AH02974: Watchdog: found parent providers.
[Mon Jan 18 12:25:23.902681 2021] [watchdog:debug] [pid 834] mod_watchdog.c(507): AH02977: Watchdog: found child providers.
[Mon Jan 18 12:25:23.902685 2021] [watchdog:debug] [pid 834] mod_watchdog.c(515): AH02978: Watchdog: Looking for child (_default_).
[Mon Jan 18 12:25:23.902694 2021] [watchdog:debug] [pid 834] mod_watchdog.c(515): AH02978: Watchdog: Looking for child (_singleton_).
[Mon Jan 18 12:25:23.907511 2021] [mpm_prefork:notice] [pid 834] AH00163: Apache/2.4.41 (Ubuntu) mod_apreq2-20090110/2.8.0 mod_perl/2.0.11 Perl/v5.30.0 configured -- resuming normal operations
[Mon Jan 18 12:25:23.907522 2021] [mpm_prefork:info] [pid 834] AH00164: Server built: 2020-08-12T19:46:17
[Mon Jan 18 12:25:23.907532 2021] [core:notice] [pid 834] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jan 18 12:25:23.907537 2021] [core:debug] [pid 834] log.c(1568): AH02639: Using SO_REUSEPORT: yes (1)
[Mon Jan 18 12:25:23.907541 2021] [mpm_prefork:debug] [pid 834] prefork.c(914): AH00165: Accept mutex: none (default: sysvsem)
[Mon Jan 18 12:25:23.911307 2021] [watchdog:debug] [pid 1003] mod_watchdog.c(566): AH02980: Watchdog: nothing configured?
[Mon Jan 18 12:25:23.911685 2021] [watchdog:debug] [pid 1004] mod_watchdog.c(566): AH02980: Watchdog: nothing configured?
[Mon Jan 18 12:25:23.912733 2021] [watchdog:debug] [pid 1005] mod_watchdog.c(566): AH02980: Watchdog: nothing configured?
[Mon Jan 18 12:25:23.913512 2021] [watchdog:debug] [pid 1006] mod_watchdog.c(566): AH02980: Watchdog: nothing configured?
[Mon Jan 18 12:25:23.913981 2021] [watchdog:debug] [pid 1007] mod_watchdog.c(566): AH02980: Watchdog: nothing configured?
Check Apache 2 status:
root@server:/home/ubuntu# service apache2 status
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-01-18 12:11:36 PST; 18min ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 818 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 834 (/usr/sbin/apach)
Tasks: 6 (limit: 2368)
Memory: 152.3M
CGroup: /system.slice/apache2.service
├─ 834 /usr/sbin/apache2 -k start
├─1003 /usr/sbin/apache2 -k start
├─1004 /usr/sbin/apache2 -k start
├─1005 /usr/sbin/apache2 -k start
├─1006 /usr/sbin/apache2 -k start
└─1007 /usr/sbin/apache2 -k start
Jan 18 12:11:36 ip-172-31-34-46 apachectl[832]: webwork.apache2-config: WeBWorK server userID is www-data
Jan 18 12:11:36 ip-172-31-34-46 apachectl[832]: webwork.apache2-config: WeBWorK server groupID is wwdata
Jan 18 12:11:36 ip-172-31-34-46 apachectl[832]: webwork.apache2-config: The webwork url on this site is http://localhost/webwork2
Jan 18 12:11:36 ip-172-31-34-46 apachectl[832]: webwork.apache2-config: The webwork smtp server address is localhost
Jan 18 12:11:36 ip-172-31-34-46 apachectl[832]: webwork.apache2-config: The webwork smtp server port is
Jan 18 12:11:36 ip-172-31-34-46 apachectl[832]: webwork.apache2-config: The webwork smtp server protocol is 'not ssl'
Jan 18 12:11:36 ip-172-31-34-46 apachectl[832]: WebworkSOAP::WSDL: webwork_directory set to /opt/webwork/webwork2 via $WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
Jan 18 12:11:36 ip-172-31-34-46 apachectl[832]: WebworkSOAP::WSDL: rpc_url set to http://localhost/webwork2_rpc
Jan 18 12:11:36 ip-172-31-34-46 apachectl[832]: WebworkWebservice: webwork_directory set to /opt/webwork/webwork2 via $WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
Jan 18 12:11:36 ip-172-31-34-46 systemd[1]: Started The Apache HTTP Server.
It looks like Apache has indeed started..
Thanks in advance!