PerlTransHandler "sub { tie *STDOUT, 'Apache' unless tied *STDOUT; }"
[robg adds: I haven't tested this one...]
|
|
|
The Apache build that comes with Panther does include mod_perl, but for some reason the output of the standard Perl print() routine is not redirected to the web browser as it should be. You can always build your own Apache to solve the problem, but this solution is easier. Just add the following line to your /etc/httpd/httpd.conf file:
[robg adds: I haven't tested this one...]
•
[11,152 views]
Hint Options
Correction
After submitting this hint, I found that using this as a PerlTransHandler can interfere with static file retrieval. Changing it to a PerlHeaderParserHandler still solves the original mod_perl problem without causing any others (as far as I can tell).
10.3: Fix mod_perl print() output
I tried both suggestions, and both times Personal Web Sharing refused to start. After commenting-out the line, everything works as usual...
10.3: Fix mod_perl print() output
mod_perl is'nt activated by default. If you plan to use mod_perl enable in in http.conf (remove the #):
10.3: Fix mod_perl print() output
I came across a broken mod_perl in the distributed versions of both 10.3 & 10.3 Server. I really needed mod_perl to run a calendar program that otherwise is terribly slow in plain cgi. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.25 seconds |
|