Default program for CGI
am 14.02.2010 13:28:54 von Maciej Piechotka
--=-Ro1MnNraW5F3n3xbOGMJ
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Is it possible to specify a handler for files in CGI?
I.e. have:
SomeDirectiveCGI .pl /usr/bin/perl
I'd like to install a PHP script on server where PHP is available only
through SuExec due to security reasons. And adding such option
to .htaccess would be much simpler to maintain then adding to each file
(especially that I don't know how does it react with php include):
#!/path/to/php
I haven't found anything similar in documentation but before submitting
bug I prefer to ask here.
Regards
--=-Ro1MnNraW5F3n3xbOGMJ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iEYEABECAAYFAkt37IYACgkQNtHxai7FolxbhQCgubVqHQ1J6avrWTWfj25I qqR9
aHUAn1cxXwBnIcDcfAD5upYqcS5GIGeH
=APM8
-----END PGP SIGNATURE-----
--=-Ro1MnNraW5F3n3xbOGMJ--
Re: Default program for CGI
am 14.02.2010 13:46:55 von Nilesh Govindrajan
On 02/14/2010 05:58 PM, Maciej Piechotka wrote:
> Is it possible to specify a handler for files in CGI?
> I.e. have:
>
> SomeDirectiveCGI .pl /usr/bin/perl
>
> I'd like to install a PHP script on server where PHP is available only
> through SuExec due to security reasons. And adding such option
> to .htaccess would be much simpler to maintain then adding to each file
> (especially that I don't know how does it react with php include):
> #!/path/to/php
>
> I haven't found anything similar in documentation but before submitting
> bug I prefer to ask here.
>
> Regards
>
You may want to check out this article-
http://www.itech7.com/Linux/Apache2-PHP-FastCGI-SuExec
After a lot of struggling I was able to do this. Also its better to use
FastCGI over standard CGI for performance reasons.
--
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Default program for CGI
am 14.02.2010 14:50:42 von Eric Covener
On Sun, Feb 14, 2010 at 7:28 AM, Maciej Piechotka wrote:
> Is it possible to specify a handler for files in CGI?
> I.e. have:
>
> SomeDirectiveCGI .pl /usr/bin/perl
You can use Action
--
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Default program for CGI
am 15.02.2010 10:24:08 von Maciej Piechotka
--=-ANPKtwEsKL0qh1Az0LKz
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Sun, 2010-02-14 at 08:50 -0500, Eric Covener wrote:
> On Sun, Feb 14, 2010 at 7:28 AM, Maciej Piechotka =
wrote:
> > Is it possible to specify a handler for files in CGI?
> > I.e. have:
> >
> > SomeDirectiveCGI .pl /usr/bin/perl
>=20
> You can use Action
>=20
I cannot - it is either not installed or blocked. I will talk today to
figure out which.
Regards
--=-ANPKtwEsKL0qh1Az0LKz
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iEYEABECAAYFAkt5ErcACgkQNtHxai7FolzdBwCeKL3qr4jeY7IZSroxhSVf 63Nm
j60AoIIlqjLAUA96TTYP/a6y7fwP7UFx
=IgU9
-----END PGP SIGNATURE-----
--=-ANPKtwEsKL0qh1Az0LKz--
Re: Re: Default program for CGI
am 15.02.2010 11:12:52 von Nilesh Govindrajan
On 02/15/2010 02:54 PM, Maciej Piechotka wrote:
> On Sun, 2010-02-14 at 08:50 -0500, Eric Covener wrote:
>> On Sun, Feb 14, 2010 at 7:28 AM, Maciej Piechotka wrote:
>>> Is it possible to specify a handler for files in CGI?
>>> I.e. have:
>>>
>>> SomeDirectiveCGI .pl /usr/bin/perl
>>
>> You can use Action
>>
>
> I cannot - it is either not installed or blocked. I will talk today to
> figure out which.
>
> Regards
Are you trying to configure it in .htaccess ? If so, it won't work.
--
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Re: Default program for CGI
am 15.02.2010 12:16:04 von Maciej Piechotka
--=-rSF9kbmUgpi1MY/wZYWB
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Mon, 2010-02-15 at 15:42 +0530, Nilesh Govindarajan wrote:
> On 02/15/2010 02:54 PM, Maciej Piechotka wrote:
> > On Sun, 2010-02-14 at 08:50 -0500, Eric Covener wrote:
> >> On Sun, Feb 14, 2010 at 7:28 AM, Maciej Piechotka
m> wrote:
> >>> Is it possible to specify a handler for files in CGI?
> >>> I.e. have:
> >>>
> >>> SomeDirectiveCGI .pl /usr/bin/perl
> >>
> >> You can use Action
> >>
> >
> > I cannot - it is either not installed or blocked. I will talk today to
> > figure out which.
> >
> > Regards
>=20
> Are you trying to configure it in .htaccess ? If so, it won't work.
>=20
Yes. I have page in userdir.
I can ask however admin to change global configuration as long as it
will be in SuExec.
Regards
--=-rSF9kbmUgpi1MY/wZYWB
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iEYEABECAAYFAkt5LPMACgkQNtHxai7Folzc1ACghfysktcbAvSIiQW3/Qm7 5Moh
304AnRDnatIXolGXLRcoMRRTC+fSqQLQ
=N2x2
-----END PGP SIGNATURE-----
--=-rSF9kbmUgpi1MY/wZYWB--
Re: Re: Default program for CGI
am 15.02.2010 14:59:12 von Maciej Piechotka
--=-2yIV3EaBGnGBywSP1m2/
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Mon, 2010-02-15 at 15:42 +0530, Nilesh Govindarajan wrote:
> On 02/15/2010 02:54 PM, Maciej Piechotka wrote:
> > On Sun, 2010-02-14 at 08:50 -0500, Eric Covener wrote:
> >> On Sun, Feb 14, 2010 at 7:28 AM, Maciej Piechotka
m> wrote:
> >>> Is it possible to specify a handler for files in CGI?
> >>> I.e. have:
> >>>
> >>> SomeDirectiveCGI .pl /usr/bin/perl
> >>
> >> You can use Action
> >>
> >
> > I cannot - it is either not installed or blocked. I will talk today to
> > figure out which.
> >
> > Regards
>=20
> Are you trying to configure it in .htaccess ? If so, it won't work.
>=20
After enabling mod_actions it seems to work.
Thanks everyone
--=-2yIV3EaBGnGBywSP1m2/
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iEYEABECAAYFAkt5Uy4ACgkQNtHxai7Folz1tgCgsX/bW7pL5YbyKFbIr1/H HQUs
FJgAmwTdg0zB0X7kodLtD7Zr0g224ZcN
=O6Vf
-----END PGP SIGNATURE-----
--=-2yIV3EaBGnGBywSP1m2/--