Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mod-wsgi in apache
#2
(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.log
and 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:
Reply


Messages In This Thread
mod-wsgi in apache - by Skaperen - Jul-06-2017, 03:08 AM
RE: mod-wsgi in apache - by metulburr - Jul-06-2017, 05:45 AM
RE: mod-wsgi in apache - by Skaperen - Jul-09-2017, 06:43 AM
RE: mod-wsgi in apache - by metulburr - Jul-09-2017, 09:32 AM
RE: mod-wsgi in apache - by Skaperen - Jul-10-2017, 01:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  mod-wsgi Skaperen 2 3,884 Jun-06-2017, 05:12 AM
Last Post: Skaperen
  WSGI vs CGI Skaperen 9 12,324 Jun-01-2017, 05:39 AM
Last Post: Skaperen
  WSGI working examples Skaperen 1 3,529 May-29-2017, 10:45 AM
Last Post: snippsat
  trying to figure out WSGI Skaperen 10 7,982 Apr-30-2017, 10:00 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020