Re: PHP4 setup problems [SOLVED - kinda]

2002-05-29 Thread Joris
>> Or add the following lines to /etc/apache/httpd.conf, preferably >> between and its ending tag >> >> AddType application/x-httpd-php .php >> AddType application/x-httpd-php-source .phps > I noticed in the error log file that it was having a problem loading the > magic file. The http.

Re: PHP4 setup problems [SOLVED - kinda]

2002-05-29 Thread Andrew Pritchard
> > It means that the kernel didn't know how to execute that file. Perhaps > > you need '#! /usr/bin/php4' as the first line of the PHP script? > > Or add the following lines to /etc/apache/httpd.conf, preferably between > and its ending tag > > AddType application/x-httpd-php .php > Ad

Re: PHP4 setup problems

2002-05-28 Thread Joris
> It means that the kernel didn't know how to execute that file. Perhaps > you need '#! /usr/bin/php4' as the first line of the PHP script? Or add the following lines to /etc/apache/httpd.conf, preferably between and its ending tag AddType application/x-httpd-php .php AddType applicatio

Re: PHP4 setup problems

2002-05-28 Thread Colin Watson
On Tue, May 28, 2002 at 02:40:08PM +0100, Andrew Pritchard wrote: > Quoting Colin Watson <[EMAIL PROTECTED]>: > > On Tue, May 28, 2002 at 01:12:07PM +0100, Andrew Pritchard wrote: > > > However when I try to go to the test script I wrote, it comes up with > > > a "500 error message". Looking in the

Re: PHP4 setup problems

2002-05-28 Thread Andrew Pritchard
Quoting Colin Watson <[EMAIL PROTECTED]>: > On Tue, May 28, 2002 at 01:12:07PM +0100, Andrew Pritchard wrote: > > However when I try to go to the test script I wrote, it comes up with > > a "500 error message". Looking in the error log I notice this: > > > > (8)Exec format error: exec of /usr/lib/

Re: PHP4 setup problems

2002-05-28 Thread Colin Watson
On Tue, May 28, 2002 at 01:12:07PM +0100, Andrew Pritchard wrote: > However when I try to go to the test script I wrote, it comes up with > a "500 error message". Looking in the error log I notice this: > > (8)Exec format error: exec of /usr/lib/cgi-bin/hello.php failed > > What is an Exec Format

Re: PHP4 setup problems

2002-05-28 Thread Ian D. Stewart
On 2002.05.28 08:41 James Cameron wrote: On Tue, 2002-05-28 at 22:36, Andrew Pritchard wrote: > Hmmm - now it comes up with a 403: Permission denied. And from the error.log: > [error] [client 127.0.0.1] Options ExecCGI is off in this > directory: /var/www/hello.php Make sure it is not executabl

Re: PHP4 setup problems

2002-05-28 Thread Ian D. Stewart
On 2002.05.28 08:36 Andrew Pritchard wrote: > You're right, it is very simple. > > Move the script to /var/www or where your other content is, then access > it via your web server. > > http://localhost/hello.php > > I wouldn't be surprised if we all forgot to mention that in the > documentation!

Re: PHP4 setup problems

2002-05-28 Thread James Cameron
On Tue, 2002-05-28 at 22:36, Andrew Pritchard wrote: > Hmmm - now it comes up with a 403: Permission denied. And from the error.log: > [error] [client 127.0.0.1] Options ExecCGI is off in this > directory: /var/www/hello.php Make sure it is not executable. Mine are not, and they work. After th

Re: PHP4 setup problems

2002-05-28 Thread Andrew Pritchard
> You're right, it is very simple. > > Move the script to /var/www or where your other content is, then access > it via your web server. > > http://localhost/hello.php > > I wouldn't be surprised if we all forgot to mention that in the > documentation! Hmmm - now it comes up with a 403: Permiss

Re: PHP4 setup problems

2002-05-28 Thread James Cameron
You're right, it is very simple. Move the script to /var/www or where your other content is, then access it via your web server. http://localhost/hello.php I wouldn't be surprised if we all forgot to mention that in the documentation! -- James Cameron ([EMAI

PHP4 setup problems

2002-05-28 Thread Andrew Pritchard
I've been trying to setup PHP4 on my Woody box at home. I've installed the php4 package, and then went through the apache config and uncommented the php shared object libraries and added the .php document handler. I stopped and then started apache to make sure I've got the .so's loaded. However