Re: Apache 2 / PHP Installation

2004-05-15 Thread Kevin D. Kinsey, DaleCo, S.P.
Bruce Hunter wrote:
Hi all,
I installed Apache 2 from the ports collection. Does apache2 come with 
php support? Probably not, but not sure. I want to install php on the 
system. I'm not sure what port I need to install?? All the pre recks.. 
are for 1.* versions of Apache. What's the deal?

Thanks so much,
Bruce

The deal is, Apache2 and PHP are basically a no no.  From
   http://www.php.net/manual/en/install.apache2.php:
Warning   

Do not use Apache 2.0 and PHP in a production environment
neither on Unix nor on Windows.
That same page goes on to give other instructions, which I must
presume are for non-production environments.  Perhaps you
can gain additional insight there.
Kevin Kinsey
DaleCo, S.P.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Apache 2 / PHP Installation

2004-05-15 Thread JJB
Kevin
I went to the link you posted and referenced.
My reading of what is written is the warning is about using the
older versions of php on apache2. I do not take what is written as
meaning that the current versions of php is not compatible or is an
security risk, or in some way will cause problems if used on
apache2. I think the word production is being misused in the
warning statement.  To some degree, an warning about using apache2
in production can also be said, but many users do use apache2 in
production.

So to answer the Bruces question. Apache2 does not install with php
support included. You have to install the FBSD port or package of
php4 or mod_php4.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Kevin D.
Kinsey, DaleCo, S.P.
Sent: Saturday, May 15, 2004 2:02 PM
To: Bruce Hunter
Cc: [EMAIL PROTECTED]
Subject: Re: Apache 2 / PHP Installation

Bruce Hunter wrote:

 Hi all,
 I installed Apache 2 from the ports collection. Does apache2 come
with
 php support? Probably not, but not sure. I want to install php on
the
 system. I'm not sure what port I need to install?? All the pre
recks..
 are for 1.* versions of Apache. What's the deal?

 Thanks so much,
 Bruce


The deal is, Apache2 and PHP are basically a no no.  From
http://www.php.net/manual/en/install.apache2.php:

Warning

Do not use Apache 2.0 and PHP in a production environment
neither on Unix nor on Windows.

That same page goes on to give other instructions, which I must
presume are for non-production environments.  Perhaps you
can gain additional insight there.

Kevin Kinsey
DaleCo, S.P.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Apache 2 / PHP Installation

2004-05-14 Thread Bruce Hunter
Hi all,
I installed Apache 2 from the ports collection. Does apache2 come with 
php support? Probably not, but not sure. I want to install php on the 
system. I'm not sure what port I need to install?? All the pre recks.. 
are for 1.* versions of Apache. What's the deal?

Thanks so much,
Bruce
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Apache 2 / PHP Installation

2004-05-14 Thread Derrick Ryalls
 
 Hi all,
 I installed Apache 2 from the ports collection. Does apache2 
 come with php support? Probably not, but not sure. I want to 
 install php on the system. I'm not sure what port I need to 
 install?? All the pre recks.. 
 are for 1.* versions of Apache. What's the deal?
 

I recommend lang/php4

When you install it should come up with a menu allowing you to choose your
options (GD support, CLI, etc).  After it is done, it will tell you what to
add to your httpd.conf file to get .php files working (apache restart
required).  To test, make a file like:

?php
phpinfo()
?

And call it test.php or something, then browse to it.  If you see that text,
php isn't yet loaded.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Apache 2 / PHP Installation

2004-05-14 Thread Andras Kende


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bruce Hunter
Sent: Friday, May 14, 2004 2:01 PM
To: [EMAIL PROTECTED]
Subject: Apache 2 / PHP Installation

Hi all,
I installed Apache 2 from the ports collection. Does apache2 come with 
php support? Probably not, but not sure. I want to install php on the 
system. I'm not sure what port I need to install?? All the pre recks.. 
are for 1.* versions of Apache. What's the deal?

Thanks so much,
Bruce
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]




Bruce,

Cvsup the latest ports tree...

cd /usr/ports/lang/php4 ; make install clean

add this 2 lines to /usr/loca/etc/apache2/httpd.conf :
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

/usr/local/etc/rc.d/apache2.sh stop
/usr/local/etc/rc.d/apache2.sh start

Create a php test file and see if its working



Andras Kende
http://www.kende.com




___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache 2 / PHP Installation

2004-05-14 Thread Android66
Just a quick note.
/usr/ports/lang/php4 also includes command line interface beside the 
apache module. if you only need mod_php, you can cd to 
/usr/ports/www/mod_php4 instead.

Andras Kende wrote:
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bruce Hunter
Sent: Friday, May 14, 2004 2:01 PM
To: [EMAIL PROTECTED]
Subject: Apache 2 / PHP Installation
Hi all,
I installed Apache 2 from the ports collection. Does apache2 come with 
php support? Probably not, but not sure. I want to install php on the 
system. I'm not sure what port I need to install?? All the pre recks.. 
are for 1.* versions of Apache. What's the deal?

Thanks so much,
Bruce
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Bruce,
Cvsup the latest ports tree...
cd /usr/ports/lang/php4 ; make install clean
add this 2 lines to /usr/loca/etc/apache2/httpd.conf :
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
/usr/local/etc/rc.d/apache2.sh stop
/usr/local/etc/rc.d/apache2.sh start
Create a php test file and see if its working

Andras Kende
http://www.kende.com

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]