LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache2/mod_perl 2.0/Mason problem (https://www.linuxquestions.org/questions/linux-software-2/apache2-mod_perl-2-0-mason-problem-351196/)

lowpro2k3 08-08-2005 11:31 AM

Apache2/mod_perl 2.0/Mason problem
 
I'm having a problem with installing Mason on my work's Apache2/mod_perl server. Basically someone hacked our servers badly a while ago and did a rm -rf /usr. Luckily we had backups, but I wasn't the original person who installed Apache/mod_perl and decided to code in it. So I'm reinstalling the whole setup from scratch.

Apache is working, and I compiled mod_perl as a shared object. mod_perl seems to be working because I have tried a few of the test examples from their website, and they all run fine. Also when I start and stop Apache it never complains about the line in httpd.conf which does the module loading:

Code:

LoadModule perl_module modules/mod_perl.so
Again, that works fine so I truely believe that mod_perl is setup properly. So I'm moving on to the final piece of the puzzle, Mason. All of our site code is written in Mason and my boss is getting noticeably frustrated that our webpage is still offline (even though he wouldn't spring a penny for security, thats a different story).

Let me explain where I screwed up first, this might provide some clues. I accidently installed Mason a while ago, after installing Apache. I installed it before mod_perl. I went backwards today and installed mod_perl, tested it and it didn't work (Mason, mod_perl worked). I thought reinstalling Mason might be a good idea, and I did that. It did seem to run an uninstaller script before re-installing itself. I don't think any of this is a huge issue, but I just wanted to point it out in case it is.

Basically the second I add this line:

Code:

PerlModule HTML::Mason::ApacheHandler
The server will not start and stop properly. More specifically it takes forever to shutdown once I make the changes (if it was running). When I try and start the server, it seems to work but it actually doesn't create a PID file and doesn't actually start (nmap and ps -aux verify that the servers not even up). When I request webpages in this state I get a browser popup window stating "The Document Contains no Data".

I'm really stuck here, I've set up this type of system before without problems, but its giving me a hard time now. Any clues would be very appreciated.

- lowpro2k3


All times are GMT -5. The time now is 04:55 PM.