
|
|
Debugging Apache children |
To start up Apache as a single child: /etc/init.d/httpd stop /usr/sbin/httpd -X This makes some debugging easier since you don't have to worry if you are always getting the same child. You can use the perl debugger against a server running this way. You need to add the below to a .conf file that Apache reads _BEFORE_ any other mod_perl directives (which in the new setup means in httpd.conf right before the Include conf/loncapa_apache.conf) PerlModule Apache::DB <<Perl>> Apache::DB->init; <</Perl>> <Location /> PerlFixupHandler Apache::DB <</Location>> You might want to surround this with a <IfDefine PERLDEBUG> <</IfDefine>> and then use /usr/sbin/httpd -X -DPERLDEBUG | |
|
In order to get the more-useful graphical debugger working with Apache, you'll need to do the following:
Once you do all this, you should get a graphical debugger to use whenever you load a page with a LON-CAPA handler, instead of the text-mode Perl debugger interface. Unfortunately, there are still some quirks in using ptkdb this way:
Despite the quirks, I still find it very, very useful. | |
| An alternative I've found for "xhost + localhost" is "xhost + local:" (include the colon), which allows all local network connections only. The practical differences are minimal, but it seems there may be some circumstances where this matters; I haven't been able to fully nail this down yet.
| |
| [Append to This Answer] |
| Next: |
|
| ||||||||||