LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 08-08-2005, 12:31 PM   #1
lowpro2k3
Member
 
Registered: Oct 2003
Location: Canada
Distribution: Slackware
Posts: 340

Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2, mod_perl2, HTML::Mason not finding Apache::Request2-2 Silent1 Linux - Software 3 04-30-2005 05:52 PM
GD with apache2 problem rincewind Linux - Software 1 08-31-2004 08:57 PM
how to uninstall apache2 which is installed by emerge apache2 flybirdlong Linux - Software 1 07-17-2004 12:46 PM
old apache2 problem oleunam Linux - General 2 10-22-2003 09:23 PM
mason firewallrules crashmeister Linux - Security 0 04-01-2002 07:42 AM


All times are GMT -5. The time now is 10:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration