You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Richard <ap...@myfrh.com> on 2002/12/28 18:29:08 UTC
Apache::Session::MySQL
Is this the correct list for help with Apache::Session::MySQL?
Thanks,
Richard.
Re: Apache::Session::MySQL
Posted by Richard <ap...@myfrh.com>.
Great, thank you guys!
I am trying to first fix my Apache::Session problem before I open
a whole new bag of candy :o)
Thank you very much for your input, I am grateful!
Richard.
----- Original Message -----
From: "Perrin Harkins" <pe...@elem.com>
To: <ap...@myfrh.com>
Cc: <mo...@perl.apache.org>
Sent: Saturday, December 28, 2002 2:32 PM
Subject: Re: Apache::Session::MySQL
> > So by user nobody, you mean in the httpd.conf file in the <virtualhost
> > tags the user and group?
> >
> > I have it set to user username and group username for each account,
> > since all of our boxes use SuExec.
>
> Okay, that may be an issue because SuExec does not work with mod_perl.
> Each apache daemon can only run mod_perl processes as a single user, but
> that user can be any user you choose. You would never set them to run as
> root, because that would be a security problem.
> > So mod_perl is safe.... Ok. one other question. If I do upgrade to
> > Mod_Perl, can I still run regular Perl scripts
>
> Yes, and you should still be able to run them with SuExec. As George
> said, there is quite a bit documentation on the perl.apache.org site that
> may help you.
> - Perrin
>
>
>
>
Re: Apache::Session::MySQL
Posted by Perrin Harkins <pe...@elem.com>.
> So by user nobody, you mean in the httpd.conf file in the <virtualhost
> tags the user and group?
>
> I have it set to user username and group username for each account,
> since all of our boxes use SuExec.
Okay, that may be an issue because SuExec does not work with mod_perl.
Each apache daemon can only run mod_perl processes as a single user, but
that user can be any user you choose. You would never set them to run as
root, because that would be a security problem.
> So mod_perl is safe.... Ok. one other question. If I do upgrade to
> Mod_Perl, can I still run regular Perl scripts
Yes, and you should still be able to run them with SuExec. As George
said, there is quite a bit documentation on the perl.apache.org site that
may help you.
- Perrin
Re: Apache::Session::MySQL
Posted by George Valpak <gv...@yahoo.com>.
At 01:25 PM 12/28/2002 -0600, Richard wrote:
>So mod_perl is safe.... Ok. one other question. If I do upgrade to Mod_Perl,
>can I still run regular Perl scripts, without using Mod_Perl, or do I have
>to use one or the other, only.
Richard,
Yes,you can still run regular cgi, as with MP you have to explicitly tell (via directives in httpd.conf) which files to process using MP handlers.
My guess is if you are going to convert cgi scripts to run under MP, you are going to be iinterested in Apache::Registry.
There is probably a ton of good info on apache.org and elsewhere about how to do this exactly.
GV
Re: Apache::Session::MySQL
Posted by Richard <ap...@myfrh.com>.
So by user nobody, you mean in the httpd.conf file in the <virtualhost tags
the user and group?
I have it set to user username and group username for each account, since
all of our boxes use SuExec.
So mod_perl is safe.... Ok. one other question. If I do upgrade to Mod_Perl,
can I still run regular Perl scripts, without using Mod_Perl, or do I have
to use one or the other, only.
Thank you,
Richard.
PS> I just replied to the PerlMonks reply you did. Thank you.
----- Original Message -----
From: <pe...@elem.com>
To: <ap...@myfrh.com>
Cc: <mo...@perl.apache.org>
Sent: Saturday, December 28, 2002 12:08 PM
Subject: Re: Apache::Session::MySQL
> > Ah. ok. I don't use Mod_Perl, I hear it is a big security risk, since
> > it runs as root. Is this true?
>
> It's not true. The parent process runs as root in order to open port 80,
> but that's the same for CGI as well. The child processes that actually
> handle requests runs as whatever user you specify in httpd.conf (typically
> "nobody").
> > I love how much faster it is, it's not
> > that much faster, but enough to make me upgrade all my boxes if it is
> > not a security risk.
>
> If you have clean code (use strict and -w) that will run under mod_perl,
> you should definitely take advantage of the speed increase. Depending on
> what you're doing, it can make a really huge difference in performance.
> I do recommend that you fix your current Apache::Session problem first,
> before thinking about converting to mod_perl.
> - Perrin
>
>
>
>
>
Re: Apache::Session::MySQL
Posted by pe...@elem.com.
> Ah. ok. I don't use Mod_Perl, I hear it is a big security risk, since
> it runs as root. Is this true?
It's not true. The parent process runs as root in order to open port 80,
but that's the same for CGI as well. The child processes that actually
handle requests runs as whatever user you specify in httpd.conf (typically
"nobody").
> I love how much faster it is, it's not
> that much faster, but enough to make me upgrade all my boxes if it is
> not a security risk.
If you have clean code (use strict and -w) that will run under mod_perl,
you should definitely take advantage of the speed increase. Depending on
what you're doing, it can make a really huge difference in performance.
I do recommend that you fix your current Apache::Session problem first,
before thinking about converting to mod_perl.
- Perrin
Re: Apache::Session::MySQL
Posted by Richard <ap...@myfrh.com>.
Ah. ok. I don't use Mod_Perl, I hear it is a big security risk, since it
runs as root. Is this true? I love how much faster it is, it's not that much
faster, but enough to make me upgrade all my boxes if it is not a security
risk.
What do you think?
Thanks,
Richard.
(I'll go see your reply in a min. Thank you!)
----- Original Message -----
From: <pe...@elem.com>
To: <ap...@myfrh.com>
Cc: <mo...@perl.apache.org>
Sent: Saturday, December 28, 2002 11:49 AM
Subject: Re: Apache::Session::MySQL
> > Is this the correct list for help with Apache::Session::MySQL?
>
> This is a good list for it if you are using mod_perl. If you're using
> CGI, try one of the CGI resources instead, or stick with perlmonks.org. I
> just replied to your post there a few minutes ago.
> - Perrin
>
>
>
>
>
Re: Apache::Session::MySQL
Posted by pe...@elem.com.
> Is this the correct list for help with Apache::Session::MySQL?
This is a good list for it if you are using mod_perl. If you're using
CGI, try one of the CGI resources instead, or stick with perlmonks.org. I
just replied to your post there a few minutes ago.
- Perrin