(Jul-06-2017, 03:08 AM)Skaperen Wrote: i am playing around with mod-wsgi in apache. it seems to be working ok. a difficulty is when my code has an error. there are about 3 different places i need to look at to see where the right messages how up. the web page itself doesn't display anything but that there is a "system error". i am thinking through how to get the programming error messages into place that makes it easier for the developers to find.Why would you be looking in 3 different places? If you have any traceback whatsoever in your code that causes an internal server error. All you need to do is tail the apache error log and you will see the traceback pop up when you visit the page that causes the 500 error every time you refresh the page. It depends on where you setup apache error logs to be, etc. for the exact location. But the command i give to view errors in ubuntu doing CGI/WSGI is
sudo tail -f /var/log/apache2/error.logand i usually have this up in a tmux session split between two terminals, one for errors, and one for Vim for coding all split to half screen for a browser on the other side to see what the actual appearance looks like.
The rest i dont know and will let others comment about.
Recommended Tutorials: