Sponsored Content
Full Discussion: Apache22 not starting
Top Forums UNIX for Advanced & Expert Users Apache22 not starting Post 302094403 by Corona688 on Friday 27th of October 2006 10:51:27 AM
Old 10-27-2006
In searching for your problem, I've found this construct a lot:
Code:
<IfDefine !APACHE2>
        PerlHandler Apache::Status
</IfDefine>
<IfDefine APACHE2>
        PerlResponseHandler Apache::Status
</IfDefine>

So maybye try PerlResponseHandler instead of PerlHandler.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Starting up

:confused: I have put together an old machine with a 386DX CPU (40MHz) with 8Mb of RAM and a 160Mb hard disk. One guy told me that its still suitable for UNIX. Can enyone give me some hints on how to start? (1 Reply)
Discussion started by: msm
1 Replies

2. UNIX for Dummies Questions & Answers

Starting X?

I just installed FreeBSD 4.5 and I want to find out how I can start and run X? When I boot I get taken to the command line. Xconfigurator doesn't want to work. (2 Replies)
Discussion started by: AMDPwred
2 Replies

3. OS X (Apple)

process starting

Hello everybody! I got a question on process starting. I installed e.g. squid on my Mac and all is working well, but i wanted to figure out what process or script is starting squid on booting the machine. I searched for a while but i could not find where i can change these configuration. ... (2 Replies)
Discussion started by: count_zero
2 Replies

4. SuSE

starting SWAT

everytime I try to start SWAT using : www.localhost:901, it takes me to goggle the search engine. IM still new in the linux world and Im a bit confussed now. any help would be great. Im currently running redhat linux fedora. (5 Replies)
Discussion started by: keliy1
5 Replies

5. Linux

starting mozilla

every time I launch mozilla Im getiing this this error: Details: failed to execute child process "/root/mozilla" no such file or directory. (2 Replies)
Discussion started by: keliy1
2 Replies

6. Shell Programming and Scripting

Starting over

I am re-learning UNIX and want to download Unix to my lab for studying on the road. Any suggestions? Got several books, but need to run scripts :rolleyes: (2 Replies)
Discussion started by: DudeMan
2 Replies

7. UNIX for Advanced & Expert Users

Mod_Perl and Apache22

I am running FreeBsd 6.1 and I installed mod_perl2 using ports but it still isn't loading into apache. What do I have to do to get mod_perl to load in apache??????????? (1 Reply)
Discussion started by: rbizzell
1 Replies

8. Shell Programming and Scripting

Starting script without ./ name or sh name

Hi, i want to start my script only by the name of it. $ scriptName normaly i have to use ./scriptName oder sh scriptName is there a way to do that in bash or sh ? (13 Replies)
Discussion started by: Turrican
13 Replies

9. UNIX for Dummies Questions & Answers

starting programmer

Hi to all, I'm started to write some very simple loops in bash an i'm getting this error -bash: (the example is just to show when the error appeared) the code was x=o while do echo "hello" x++ done (5 Replies)
Discussion started by: gogodash
5 Replies

10. UNIX for Dummies Questions & Answers

How to grep a line not starting with # from a file (there are two lines starting with # and normal)?

e.g. File name: File.txt cat File.txt Result: #INBOUND_QUEUE=FAQ1 INBOUND_QUEUE=FAQ2 I want to get the value for one which is not commented out. Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies
Catalyst::Manual::Deployment::Apache::mod_perl(3pm)	User Contributed Perl Documentation    Catalyst::Manual::Deployment::Apache::mod_perl(3pm)

NAME
Catalyst::Manual::Deployment::Apache::mod_perl - Deploying Catalyst with mod_perl mod_perl Deployment The recommended method of deploying Catalyst applications is FastCGI. In many cases, mod_perl is not the best solution, but we'll list some pros and cons so you can decide for yourself. Pros Speed mod_perl is fast, and your entire app will be loaded in memory within each Apache process. Shared memory for multiple apps If you need to run several Catalyst apps on the same server, mod_perl will share the memory for common modules. Cons Memory usage Since your application is fully loaded in memory, every Apache process will be rather large. This means a large Apache process will be tied up while serving static files, large files, or dealing with slow clients. For this reason, it is best to run a two-tiered web architecture with a lightweight frontend server passing dynamic requests to a large backend mod_perl server. Reloading Any changes made to the code of your app require a full restart of Apache. Catalyst does not support Apache::Reload or StatINC. This is another good reason to run a frontend web server where you can set up an "ErrorDocument 502" page to report that your app is down for maintenance. Cannot run multiple versions of the same app It is not possible to run two different versions of the same application in the same Apache instance because the namespaces will collide. Cannot run different versions of libraries If you have two different applications which run on the same machine, and each application needs a different versions of a library, the only way to do this is to have per-vhost perl interpreters (with different library paths). This is entirely possible, but nullifies all the memory sharing benefits that you get from having multiple applications sharing the same interpreter. Setup Now that we have that out of the way, let's talk about setting up mod_perl to run a Catalyst app. 2. Install Apache with mod_perl Both Apache 1.3 and Apache 2 are supported, although Apache 2 is highly recommended. With Apache 2, make sure you are using the prefork MPM and not the worker MPM. The reason for this is that many Perl modules are not thread-safe and may have problems running within the threaded worker environment. Catalyst is thread-safe however, so if you know what you're doing, you may be able to run using worker. In Debian, the following commands should get you going. apt-get install apache2-mpm-prefork apt-get install libapache2-mod-perl2 3. Configure your application Every Catalyst application will automagically become a mod_perl handler when run within mod_perl. This makes the configuration extremely easy. Here is a basic Apache 2 configuration. PerlSwitches -I/var/www/MyApp/lib PerlModule MyApp <Location /> SetHandler modperl PerlResponseHandler MyApp </Location> The most important line here is "PerlModule MyApp". This causes mod_perl to preload your entire application into shared memory, including all of your controller, model, and view classes and configuration. If you have -Debug mode enabled, you will see the startup output scroll by when you first start Apache. Also, there have been reports that the block above should instead be (but this has not been confirmed): <Perl> use lib '/var/www/MyApp/lib'; use MyApp; </Perl> <Location /> SetHandler modperl PerlResponseHandler MyApp </Location> For an example Apache 1.3 configuration, please see the documentation for Catalyst::Engine::Apache::MP13. Test It That's it, your app is now a full-fledged mod_perl application! Try it out by going to http://your.server.com/. Other Options Non-root location You may not always want to run your app at the root of your server or virtual host. In this case, it's a simple change to run at any non- root location of your choice. <Location /myapp> SetHandler modperl PerlResponseHandler MyApp </Location> When running this way, it is best to make use of the "uri_for" method in Catalyst for constructing correct links. Static file handling Static files can be served directly by Apache for a performance boost. DocumentRoot /var/www/MyApp/root <Location /static> SetHandler default-handler </Location> This will let all files within root/static be handled directly by Apache. In a two-tiered setup, the frontend server should handle static files. The configuration to do this on the frontend will vary. Note the path of the application needs to be stated explicitly in the web server configuration for this recipes. AUTHORS
Catalyst Contributors, see Catalyst.pm COPYRIGHT
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-01-20 Catalyst::Manual::Deployment::Apache::mod_perl(3pm)
All times are GMT -4. The time now is 04:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy