WeBWorK Problems

Webwork 2.12 installed on RHEL7.3 - No webpage

Webwork 2.12 installed on RHEL7.3 - No webpage

by Frank Cavadi -
Number of replies: 4
I was able to get WeBWorK 2.12 installed in RHEL7.3 vm.
SSl Certs were created

Config edits made to apache's httpd.conf and ssl.conf
(having installed mod_ssl pkg)

However, the site comes up with just the RHEL test Page.
There is nothing in /var/www/html folder

I set the following on both httpd.conf and ssl.conf:

#DocumentRoot "/var/www/html"
DocumentRoot "/opt/webwork/webwork2"

In httpd.conf we changed User & Group from apache to the
webwork admin account & group.

"apachectl configtest" works fine.

Why can I not get url to show webwork main page?

I used: (both just display RHEL Test page)
http://server.domain.com/webwork2
https://server.dpmain.com/webwork2
In reply to Frank Cavadi

Re: Webwork 2.12 installed on RHEL7.3 - No webpage

by Michael Gage -
I don't think you are loading webwork2/conf/webwork.apache24-config (copied from webwork.apache24-config.dist)

You need to load that from httpd.conf -- the method for doing this depends on
your apache set up. It might be an Include command in httpd.conf, or you may
put an alias of webwork.apache24-config.dist in a subfolder of the apache directory in order to have it included.

That will define the directory location pointed to by your https://myserver.edu/webwork2 url.

in the section on "Configuring Apache".

Take care,

Mike

In reply to Michael Gage

Re: Webwork 2.12 installed on RHEL7.3 - No webpage

by Frank Cavadi -
The following icludes are in /etc/httpd/conf/httpd.conf fiel:

# cat httpd.conf | grep Include
Include conf.modules.d/*.conf
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# (You will also need to add "Includes" to the "Options" directive.)
IncludeOptional conf.d/*.conf

In /etc/httpd/conf.d, there is:

webwork.conf -> /opt/webwork/webwork2/conf/webwork.apache2.4-config

However, when I run "apachectl configtest", I does not seem to reference apache2.4, but rathe apache2:

# apachectl configtest

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://webwork.uncg.edu/webwork2
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://webwork.uncg.edu/webwork2_rpc
WebworkWebservice: webwork_directory set to /opt/webwork/webwork2 via $WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config









In reply to Frank Cavadi

Re: Webwork 2.12 installed on RHEL7.3 - No webpage

by Michael Gage -
That looks correct. The apache2.4-config file doesn't update the message to
webwork.apache2.4-config. That's a bug, but a minor one.

You should be able to access your courses at

http://webwork.uncg.edu/webwork2

I can't access it right at the moment but that's almost certainly because your server is turned off.

Have you set up your admin course yet? You'll need that in order to add other courses.


In reply to Michael Gage

Re: Webwork 2.12 installed on RHEL7.3 - No webpage

by Frank Cavadi -
Turns out I had to fix something in /etc/httpd/conf/httpd.conf file
as well as correct some file permissions.

Webpage is working now.