Re: PHP - A new approach

2000-10-12 Thread Steve Simons
On Wed, 11 Oct 2000 19:19:20 Andrew Sullivan wrote:
 Make sure that apache turns on module support for php when it runs
 apacheconfig: it never does do this correctly for me, and I _always_
 have to fix it by hand.  Make sure that your apache configuration is
 set up to process PHP files with the extension that you're actually
 using.  (I always use .php3, and that appears to work out-of-the-box
 when I've tried this.) 

/etc/apache/httpd.conf contains these:

LoadModule php3_module /usr/lib/apache/1.3/libphp3.so
AddType application/x-httpd-php3 .php3

I had to uncomment the first one, and my script is now called
/home/steve/hello.php3
 
 Go into /etc/php3/apache/php3.ini and look to make sure that your
 (mysql) module is loaded properly (it is never configured to load for
 me by default); alternatively, manually call the module for insertion
 from inside your PHP scripts.  This is slower if you're using the
 database on every page.

Would you mail me your php3.ini, please?
 
 That's all I've ever done.  Good luck.

Still doesn't work - netscape still wants to download the file :-(



Re: PHP - A new approach

2000-10-12 Thread Brent Buchholz
On Thu, 12 Oct 2000, Steve Simons wrote:


I had to uncomment the first one, and my script is now called
/home/steve/hello.php3
 
Still doesn't work - netscape still wants to download the file :-(

Move the file to /home/steve/public_html/hello.php3 and load
http://localhost/~steve/hello.php3

Brent



Re: PHP - A new approach

2000-10-12 Thread will trillich
On Thu, Oct 12, 2000 at 07:51:04AM +, Steve Simons wrote:
 /etc/apache/httpd.conf contains these:
 
 LoadModule php3_module /usr/lib/apache/1.3/libphp3.so
 AddType application/x-httpd-php3 .php3
 
 I had to uncomment the first one, and my script is now called
 /home/steve/hello.php3

see what mime type your php module expects by going to apache's
/status-info Location handler:

Module Name: mod_php4.c
Content handlers: application/x-httpd-php , application/x-httpd-php-source , 
text/html 

it's not looking for */*-php3 or */*-php4 it's only
looking for */*-php !

set your httpd.conf files to match and see what happens.
AddType application/x-httpd-php .it .hasta .match .what .php .expects
# but your filename extensions can be whatever you like!

-- 
things are more like they used to be than they are now.

[EMAIL PROTECTED] *** http://www.dontUthink.com/



PHP - A new approach

2000-10-11 Thread Steve Simons
After a painful experience trying to get PHP4 working, I'm trying a new 
approach.  I've removed MySQL, PHP4 and Apache completely.

Would someone who has successfully installed PHP3 and Apache to a point 
where they can display a simple .php3 page on Debian 2.2 (potato) system 
please be kind enough to explain (as if to a child :O)), what steps they 
took, what extra bits need to be done.

Many TIA,
Steve.



Re: PHP - A new approach

2000-10-11 Thread Andrei Ivanov
 After a painful experience trying to get PHP4 working, I'm trying a new 
 approach.  I've removed MySQL, PHP4 and Apache completely.
 
 Would someone who has successfully installed PHP3 and Apache to a point 
 where they can display a simple .php3 page on Debian 2.2 (potato) system 
 please be kind enough to explain (as if to a child :O)), what steps they 
 took, what extra bits need to be done.

Here's what I did:
1. Install mysql and mysql-dev. Server and client.
2. Get php source.
3. Get apache source
4. Build apache with DSO support (in the README)
5. Go to php tree and follow instructions on how to build php with mod_php
for apache. Basically, compile it from source, with some extra
instructions.
And that works perfectly
Andrei


--
First there was Explorer...
Then came Expedition.
This summer
Coming to a street near you..
Ford Exterminator.
--
Andrei Ivanov
http://arshes.dyndns.org
[EMAIL PROTECTED]
12402354
--



Re: PHP - A new approach

2000-10-11 Thread Steve Simons
On Wed, 11 Oct 2000 17:47:49 Andrei Ivanov wrote:
 
 Here's what I did:
 1. Install mysql and mysql-dev. Server and client.
 2. Get php source.
 3. Get apache source
 4. Build apache with DSO support (in the README)
 5. Go to php tree and follow instructions on how to build php with mod_php
 for apache. Basically, compile it from source, with some extra
 instructions.
 And that works perfectly
 Andrei

So does that mean it can't be done by using apt-get (non-source) 
packages?
That's what I'm after - has anyone done this?



Re: PHP - A new approach

2000-10-11 Thread A.J. Rossini
 SS == Steve Simons [EMAIL PROTECTED] writes:

SS Would someone who has successfully installed PHP3 and Apache
SS to a point where they can display a simple .php3 page on
SS Debian 2.2 (potato) system please be kind enough to explain
SS (as if to a child :O)), what steps they took, what extra bits
SS need to be done.

I installed php3 and apache, and then edited /etc/apache/httpd.conf to
include the php module, and it worked.

This was with woody, but I'm sure that it should work for potato as
well. 

best,
-tony


-- 
A.J. RossiniRsrch. Asst. Prof. of Biostatistics
BlindGlobe Networks (home/default)  [EMAIL PROTECTED]   
UW Biostat/Center for AIDS Research [EMAIL PROTECTED]   
FHCRC/SCHARP/HIV Vaccine Trials Net [EMAIL PROTECTED]

FHCRC: M/Tu: 206-667-7025 (fax=4812) | Voicemail is pretty sketchy
CFAR:   W/F: 206-731-3647 (fax=3694) | Email is far better than phone
UW:Th/F: 206-543-1044 (fax=3286) | Change last 4 digits of phone for fax



Re: PHP - A new approach

2000-10-11 Thread Andrew Sullivan
On Wed, Oct 11, 2000 at 07:53:43PM +, Steve Simons wrote:

 So does that mean it can't be done by using apt-get (non-source) 
 packages?
 That's what I'm after - has anyone done this?

apt-get install apache php3 php3-mysql 

Ok, I used php3-pgsql, but assuming the package builders did the same
right things with mysql, the difference ought to be trivial.  The
step above will also deal with dependencies (I know I'm missing
something).

Make sure that apache turns on module support for php when it runs
apacheconfig: it never does do this correctly for me, and I _always_
have to fix it by hand.  Make sure that your apache configuration is
set up to process PHP files with the extension that you're actually
using.  (I always use .php3, and that appears to work out-of-the-box
when I've tried this.) 

Go into /etc/php3/apache/php3.ini and look to make sure that your
(mysql) module is loaded properly (it is never configured to load for
me by default); alternatively, manually call the module for insertion
from inside your PHP scripts.  This is slower if you're using the
database on every page.

That's all I've ever done.  Good luck.

A

-- 
Andrew Sullivan  Computer Services
[EMAIL PROTECTED]Burlington Public Library
+1 905 639 3611 x158   2331 New Street
   Burlington, Ontario, Canada L7R 1J4