WeBWorK Main Forum

Problem with images and MathJax on WW2.16 on VM

Problem with images and MathJax on WW2.16 on VM

by Stephen Corwin -
Number of replies: 4

Hi--

I've installed WW2.16 in VirtualBox on my Windows 10 machine using the Ubuntu20.04 appliance and following the instructions for that combination.  I can view WW pages, use Course Administration, etc., but problems in the Demo set in myTestCourse do not show images, and MathJax does not work.  In fact, the FF dev panel says that http://127.0.0.1/webwork2_files/mathjax/es5/tex-chtml.js is not found (404 error).  It is present and world-readable; I have checked.

I modified site.conf, localOverrides.conf, and the NAT settings in VirtualBox per the instructions for port forwarding.  When I browse to localhost:8080/webwork2_files on my host machine, I get the "WeBWorK Placeholder Page" that I should get.  What have I done wrong or failed to do?

Thanks in advance,

Steve

In reply to Stephen Corwin

Re: Problem with images and MathJax on WW2.16 on VM

by Andras Balogh -
Do you the tex-chtml.js and other files in the directory /opt/webwork/webwork2/htdocs/node_modules/mathjax/es5/ ?
In reply to Andras Balogh

Re: Problem with images and MathJax on WW2.16 on VM

by Stephen Corwin -

Yes, tex-chtml.js and its cousins are both there and in /opt/webwork/webwork2/htdocs/mathjax/es5.

In reply to Stephen Corwin

Re: Problem with images and MathJax on WW2.16 on VM

by Arnold Pizer -

Both images and MathJax are served through lighttpd so you should check that it is running and most importantly has been set up correctly.

To see if it is running, look at (copied from instructions): 

From a browser[edit]

Assuming your WeBWorK server is set up as above with ip address 192.168.76.128, from a web browser running on your host machine connect to http://192.168.76.128 and you should see the Apache2 Ubuntu Default Page. Lighttpd is also running (it is only used for internal WeBWorK calls) and you can test it by connecting to http://192.168.76.128:8080 and again you should see the Apache2 Ubuntu Default Page (but now you will not see a graphic for the Ubuntu Logo). To test WeBWorK, connect to http://192.168.76.128/webwork2/ and you will be redirected to https://192.168.76.128/webwork2/ (of course you could use https initially). You will probably get a warning that the site is not safe or private (because we are using self-signed certificates) so chose to continue. After a few seconds you should see the WeBWorK Welcome page.

Note that even through you can view some WeBWorK pages at this point, WeBWorK will not work properly until you go through the WeBWorK configuration above. At this point you should just continue reading here about connecting from a terminal emulator.

Assuming this is working (it should be), double check your localOverrides.conf file and especially look at places in your current localOverrides.conf file and it's backups where 8080 appears.



In reply to Arnold Pizer

Re: Problem with images and MathJax on WW2.16 on VM

by Stephen Corwin -

Thanks for considering this.  I misunderstood the instructions and replaced 192.168.138.132:8080 by 127.0.0.1 rather than 127.0.0.1:8080.  Once I added the port back in, all was groovy.