Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Startup.perl - There has to be a better way

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Service Startup - I have Apache 1.3.28 setup as a service on Windows XP pro. It is setup to start but doesn't. I have to open the services window to start it. Anybody know how to fix this? Thanks

Service Startup - I'm running Windows XP pro, and when I restart it Apache 1.3.28 does not start It is in the services and setup to start but I have to open up the services window and start it each time. Anybody know how to fix this? Thanks

Help with Apache 2 startup - I just installed Apache 2 on my Windows XP computer. But when I start it up, I get the message (in 'console mode'): [Fri Mar 17 18:23:01 2006] [error] (OS 2)The system cannot find the file No installed service named Note the errors..

2.2.3 startup on Suse 10.0??? - Hello, Does ne1 have a to get Apache 2.2.3 to restart on Suse 10.0? What I have tried thus far: [attempt 1] mv cd ln -s ../httpd S12httpd reboot

startup script for apache with ssl - Hi there, I have just installed apache with openssl. The server works fine in ssl and As long as I start it with startssl Now I found that the startup script just starts it without ssl. Does anybody know how..
Next:  Apache: Problem with Tomcat server on windows Vista when used with..  
Author Message
Blaine & Alexis

External


Since: Oct 05, 2007
Posts: 1



(Msg. 1) Posted: Fri Oct 05, 2007 3:59 pm
Post subject: Startup.perl - There has to be a better way
Archived from groups: alt>apache>configuration (more info?)

Hi,

I'm running Apache 2 with mod perl, and every time a create a new
directory for perl software I have to add an entry into the
startup.perl file. The reason why is when I web to the new directory I
always get path not found in INC.

For Example
Webbing to www.testdomain.com has a base path of /www/domains/
testdomain. Therefor I put the base path into the startup.perl file.

If however I add another directory www.testdomain.com/newdir that has
the path /www/domains/testdomain/newdir, I must also add this path to
the startup.perl file.

It seems to me that apache/mod_perl does not have it's current path
"." as part of it's include list.

Is there a better way to do this?

Thanks,
Blaine

 >> Stay informed about: Startup.perl - There has to be a better way 
Back to top
Login to vote
Jim Hayter

External


Since: Feb 07, 2005
Posts: 81



(Msg. 2) Posted: Fri Oct 05, 2007 3:59 pm
Post subject: Re: Startup.perl - There has to be a better way [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Blaine & Alexis wrote:
> Hi,
>
> I'm running Apache 2 with mod perl, and every time a create a new
> directory for perl software I have to add an entry into the
> startup.perl file. The reason why is when I web to the new directory I
> always get path not found in INC.
>
> For Example
> Webbing to www.testdomain.com has a base path of /www/domains/
> testdomain. Therefor I put the base path into the startup.perl file.
>
> If however I add another directory www.testdomain.com/newdir that has
> the path /www/domains/testdomain/newdir, I must also add this path to
> the startup.perl file.
>
> It seems to me that apache/mod_perl does not have it's current path
> "." as part of it's include list.
>
> Is there a better way to do this?

A couple of ideas:

1) to do what you describe above, put this (untested) in startup.pl:
eval 'use lib qw(.)';
This will add . to @INC.

2) put your modules in one place and add that location to @INC. Use
ScriptAlias for scripts. There is no need for your scripts/modules to
live under the web root.

HTH,
Jim

 >> Stay informed about: Startup.perl - There has to be a better way 
Back to top
Login to vote
HansH

External


Since: Dec 08, 2006
Posts: 112



(Msg. 3) Posted: Sat Oct 06, 2007 2:30 am
Post subject: Re: Startup.perl - There has to be a better way [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Blaine & Alexis" <blaine.DeleteThis@worldweb.com> schreef in bericht
news:1191608760.051278.140140@k79g2000hse.googlegroups.com...
> I'm running Apache 2 with mod perl, and every time a create a new
> directory for perl software I have to add an entry into the
> startup.perl file. The reason why is when I web to the new directory I
> always get path not found in INC.
>
> For Example
> Webbing to www.testdomain.com has a base path of /www/domains/
> testdomain. Therefor I put the base path into the startup.perl file.
>
> If however I add another directory www.testdomain.com/newdir that has
> the path /www/domains/testdomain/newdir, I must also add this path to
> the startup.perl file.
>
> It seems to me that apache/mod_perl does not have it's current path
> "." as part of it's include list.
>
When using mod_perl the current path -rather the current working directory-
is set at start time of the apache2.
Traditional CGImode sets current working directory to the folder homing the
current script.

Good readings starts at
http://www.gossamer-threads.com/lists/modperl/announce/81511
http://perl.apache.org/docs/2.0/api/ModPerl/RegistryPrefork.html
http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__Reg...ry___C_



HansH
 >> Stay informed about: Startup.perl - There has to be a better way 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]