httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nair, Rajeev K" <raj...@hp.com>
Subject RE: [users@httpd] executing php in Apache
Date Fri, 27 Feb 2004 08:32:55 GMT
Thnx .it was indeed a very useful link
rajeev

-----Original Message-----
From: Somraj Bhattacharyya [mailto:Somraj.Bhattacharyya@ushacomm.co.in] 
Sent: Friday, February 27, 2004 11:44 AM
To: 'users@httpd.apache.org'
Subject: RE: [users@httpd] executing php in Apache


http://www10.brinkster.com/ssruprai/comphp.asp#php

guys access the above site. I found this very useful for installing PHP on Apache 2.

Cheers !!

-----Original Message-----
From: Chuck Ouellette [mailto:chuck@wncg.net]
Sent: Wednesday, February 25, 2004 11:04 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] executing php in Apache


Thanks Boyle that makes sense. 

-----Original Message-----
From: Boyle Owen [mailto:Owen.Boyle@swx.com] 
Sent: Wednesday, February 25, 2004 12:14 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] executing php in Apache

> -----Original Message-----
> From: Chuck Ouellette [mailto:chuck@wncg.net]
> 
> While on the subject, what does mod_perl do? I have been running Perl 
> 5.8 with many CGI scripts written in perl and have been working just 
> fine without me compiling in mod_perl or using it as a DSO. Can anyone 
> tell me the benefits/gotcha's to mod_perl and the real purpose of it?

When apache executes a "standard" CGI in perl, it first encounters the shebang line (#!/usr/bin/perl).
This causes it to load an instance of the perl interpreter into the shell that's forked to
run the CGI. Then it runs the CGI. Then the shell exits. The next time that CGI is hit, apache
rumbles through the same rigmarole again.

That's obviously a bit inefficient. mod_perl allows you to load an instance of perl into httpd
at runtime and for it to persist for the life of that daemon. So any perl code is executed
by the in-memory interpreter. Thats a lot faster and also allows you to take advantage of
persistence of data. At the risk of getting a bollocking, you might like to look at http://perl.apache.org
for more details...

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> 
> Thanks,
> Chuck
> 
> 
> -----Original Message-----
> From: Charlie Smith [mailto:SmithCW@ldschurch.org]
> Sent: Wednesday, February 25, 2004 11:30 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] executing php in Apache
> 
> Used to be that the www.php.net page had a disclaimer that it does not 
> run with Apache 2.0
> 
> Yup, it's still there at 
> http://www.php.net/manual/en/install.apache2.php
> 
> 
> It says:
> Warning
> Do not use Apache 2.0 and PHP in a production environment neither on
> Unix nor
> on Windows. 
>  
> Even though this indicates you shouldn't run this way, I believe there 
> are
> those that are.   
> Here's a reference on building mod_php and mod_perl for apache 1.3 - 
> would probably work for apache 2?:
> http://perl.apache.org/docs/1.0/guide/install.html#mod_perl_an
d_mod_php 

You might also try using the DSO approach and apply the section "Build mod_perl
as a DSO outside the Apache Source Tree via APXS" to mod_php.   

BTW: The php install is part of the standard installation procedure. You install php from
the standard install as part of the apache build.


>>> Somraj.Bhattacharyya wrote 2/25/2004 5:27:14 AM >>>
Hi 

Can anyone guide me on how to setup Apache 2 to support php files execution ?

Thanks in advance



Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen Bezug zur Börsen-
bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a private and personal nature.
It is not related to the exchange or business activities of the SWX Group. Le présent e-mail
est un message privé et personnel, sans rapport avec l'activité boursière du Groupe SWX.

This message is for the named person's use only. It may contain confidential, proprietary
or legally privileged information. No confidentiality or privilege is waived or lost by any
mistransmission. If you receive this message in error, please notify the sender urgently and
then immediately delete the message and any copies of it from your system. Please also immediately
destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail communications through their
networks. Any views expressed in this message are those of the individual sender, except where
the message states otherwise and the sender is authorised to state them to be the views of
the sender's company. 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html>
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



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html>
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

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html>
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


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message