Re: Help needed: PHP not working with apache 2.2.3-3.1

2006-11-16 Thread Lukas Ruf
Edward,

Thanks for answering!

 On Sun, Nov 12, 2006 at 09:49:20AM +0100, Lukas Ruf wrote:
  Dear all,
 
  since the change from apache 2.0 to 2.2 was made with debian
  unstable, I have not been able to get php (4 or 5) working as an
  apache 2.2 module.
 
  Until before the change, I have been operating a wiki and made
  heavily use of php for dynamic web-pages.
 

 What are the errors, if any, that you're getting? Are there any hints in
 /var/log/apache2/* ?

The following error messages are found:

[Thu Nov 16 19:38:03 2006] [error] [client ] \
  (13)Permission denied: exec of '/usr/share/dokuwiki/index.php' failed
[Thu Nov 16 19:38:03 2006] [error] [client ] \
  Premature end of script headers: index.php

However access rights have not been modified:

  euphrat:dokuwiki!65 ls -ld /usr
  drwxr-xr-x 11 root root 4096 2006-03-25 04:49 /usr/
  euphrat:dokuwiki!66 ls -ld /usr/share
  drwxr-xr-x 206 root root 4096 2006-11-12 09:44 /usr/share/
  euphrat:dokuwiki!67 ls -ld /usr/share/dokuwiki
  drwxr-xr-x 5 root root 4096 2006-11-08 07:02 /usr/share/dokuwiki/
  euphrat:dokuwiki!68 ls -ld /usr/share/dokuwiki/index.php
  -rw-r--r-- 1 root root 185 2006-11-06 20:32 /usr/share/dokuwiki/index.php

and

  euphrat:dokuwiki!82 ls -ld dokuwiki.php
  -rw-r--r-- 1 root root 8579 2006-11-06 20:43 dokuwiki.php
  euphrat:dokuwiki!83 ls -ld /etc/dokuwiki
  drwxr-xr-x 4 root root 4096 2006-11-08 07:02 /etc/dokuwiki/
  euphrat:dokuwiki!84 ls -ld /etc
  drwxr-xr-x 149 root root 8192 2006-11-16 18:53 /etc/

Any further ideas?

Thanks in advance.

wbr,
Lukas
-- 
Lukas Ruf   http://www.lpr.ch | Ad Personam
rbacs  http://wiki.lpr.ch | Restaurants, Bars and Clubs
Raw IP   http://www.rawip.org | Low Level Network Programming
Style  http://email.rawip.org | How to write emails
http://lists.lpr.ch/muttprint | muttprint mailing list


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Help needed: PHP not working with apache 2.2.3-3.1

2006-11-12 Thread Lukas Ruf
Dear all,

since the change from apache 2.0 to 2.2 was made with debian
unstable, I have not been able to get php (4 or 5) working as an
apache 2.2 module.

Until before the change, I have been operating a wiki and made
heavily use of php for dynamic web-pages.

Therefore, I kindly ask you for any support that helps me fixing that
problem.

My system information:
  -- System Information:
  Debian Release: 4.0
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'unstable')
  Architecture: i386 (i686)
  Shell:  /bin/sh linked to /bin/bash
  Kernel: Linux 2.6.17.14-euphrat
  Locale: LANG=en_IE, LC_CTYPE=en_IE (charmap=ISO-8859-1)

euphrat:mods-enabled!69 more php5.conf
IfModule mod_php5.c
  AddType application/x-httpd-php .php .phtml .php3
  AddType application/x-httpd-php-source .phps
/IfModule

euphrat:mods-enabled!70 sudo apache2ctl -M
Loaded Modules:
[...]
 python_module (shared)
 negotiation_module (shared)
 perl_module (shared)
 php5_module (shared)
[...]
Syntax OK

euphrat:mods-enabled!72 dpkg -l \*php\* | grep '^ii'
ii  libapache2-mod-php5  5.2.0-3  server-side, HTML-embedded 
scripting languag
ii  php-fpdf 1.53.dfsg-5  PHP class to generate PDF 
files
ii  php-pear 5.2.0-3  PEAR - PHP Extension and 
Application Reposit
ii  php5 5.2.0-3  server-side, HTML-embedded 
scripting languag
ii  php5-cgi 5.2.0-3  server-side, HTML-embedded 
scripting languag
ii  php5-cli 5.2.0-3  command-line interpreter for 
the php5 script
ii  php5-common  5.2.0-3  Common files for packages 
built from the php
ii  suphp-common 0.6.1.20061108-1 Common files for mod suphp

euphrat:mods-enabled!74 dpkg -l '*libc*' | grep '^ii'
ii  glibc-doc2.3.6.ds1-8
 GNU C Library: Documentation
ii  libc62.3.6.ds1-8
 GNU C Library: Shared libraries
ii  libc6-dev2.3.6.ds1-8
 GNU C Library: Development Libraries and Hea
[...]

Further information needed?

Thanks for any help!

wbr,
Lukas
-- 
Lukas Ruf   http://www.lpr.ch | Ad Personam
rbacs  http://wiki.lpr.ch | Restaurants, Bars and Clubs
Raw IP   http://www.rawip.org | Low Level Network Programming
Style  http://email.rawip.org | How to write emails
http://lists.lpr.ch/muttprint | muttprint mailing list


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Help needed: PHP not working with apache 2.2.3-3.1

2006-11-12 Thread Edward Shornock (debian ml)
On Sun, Nov 12, 2006 at 09:49:20AM +0100, Lukas Ruf wrote:
 Dear all,
 
 since the change from apache 2.0 to 2.2 was made with debian
 unstable, I have not been able to get php (4 or 5) working as an
 apache 2.2 module.
 
 Until before the change, I have been operating a wiki and made
 heavily use of php for dynamic web-pages.
 

What are the errors, if any, that you're getting? Are there any hints in
/var/log/apache2/* ?


signature.asc
Description: Digital signature


php not working ....?

2004-08-25 Thread Nayyar Ahmed
Hell All,

I have somewhat ruuning apache/caudium on my machine , 
when i write a simple php program it give me error that 
no application found to run this programe. but when i give command

debian:/home/neenix# dpkg -l | grep php4

ii  caudium-php4   4.3.4-4A server-side, HTML-embedded scripting langu
ii  php4   4.3.4-4A server-side, HTML-embedded scripting langu
ii  php4-cgi   4.3.4-4A server-side, HTML-embedded scripting langu
rc  php4-gd4.3.4-4GD module for php4
rc  php4-pecl-ps   1.1.0-2An extension to create PostScript files
rc  php4-ps1.2.2-1An extension to create PostScript files

plz tell me which package is missing and how can i install that as i wants
to work in PHP and Mysql.

thanks

-- 
Nayyar Ahmad

Lecturer
Faculty Of Computer Science,
Institute Of Management Sciences,
Hayat Abad Peshawar , Pakistan.
Office : 92-091-9217404 , 9217452
Cell :  92-0333-9139461


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: php not working ....?

2004-08-25 Thread kmf2.kmf.hu
Nayyar Ahmed írta:
Hell All,
I have somewhat ruuning apache/caudium on my machine , 
when i write a simple php program it give me error that 
no application found to run this programe. but when i give command

debian:/home/neenix# dpkg -l | grep php4
ii  caudium-php4   4.3.4-4A server-side, HTML-embedded scripting langu
ii  php4   4.3.4-4A server-side, HTML-embedded scripting langu
ii  php4-cgi   4.3.4-4A server-side, HTML-embedded scripting langu
rc  php4-gd4.3.4-4GD module for php4
rc  php4-pecl-ps   1.1.0-2An extension to create PostScript files
rc  php4-ps1.2.2-1An extension to create PostScript files
plz tell me which package is missing and how can i install that as i wants
to work in PHP and Mysql.
thanks
 

probably u must install php4-mysql
apt-get install php4-mysql
Yndy
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: php not working ....?

2004-08-25 Thread kmf2.kmf.hu
Nayyar Ahmed írta:
Hell All,
I have somewhat ruuning apache/caudium on my machine , 
when i write a simple php program it give me error that 
no application found to run this programe. but when i give command

debian:/home/neenix# dpkg -l | grep php4
ii  caudium-php4   4.3.4-4A server-side, HTML-embedded scripting langu
ii  php4   4.3.4-4A server-side, HTML-embedded scripting langu
ii  php4-cgi   4.3.4-4A server-side, HTML-embedded scripting langu
rc  php4-gd4.3.4-4GD module for php4
rc  php4-pecl-ps   1.1.0-2An extension to create PostScript files
rc  php4-ps1.2.2-1An extension to create PostScript files
plz tell me which package is missing and how can i install that as i wants
to work in PHP and Mysql.
thanks
 

probably u must install php4-mysql
apt-get install php4-mysql
Yndy
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: php not working ....?

2004-08-25 Thread Jacob S.
On Wed, 25 Aug 2004 15:31:39 +0530
Nayyar Ahmed [EMAIL PROTECTED] wrote:

 Hell All,
 
 I have somewhat ruuning apache/caudium on my machine , 
 when i write a simple php program it give me error that 
 no application found to run this programe. but when i give command
 
 debian:/home/neenix# dpkg -l | grep php4
 
 ii  caudium-php4   4.3.4-4A server-side, HTML-embedded
 scripting langu ii  php4   4.3.4-4A server-side,
 HTML-embedded scripting langu ii  php4-cgi   4.3.4-4A
 server-side, HTML-embedded scripting langu rc  php4-gd4.3.4-4 
   GD module for php4
 rc  php4-pecl-ps   1.1.0-2An extension to create PostScript
 files rc  php4-ps1.2.2-1An extension to create
 PostScript files
 
 plz tell me which package is missing and how can i install that as i
 wants to work in PHP and Mysql.

For mysql in php4, you will need the php4-mysql package that another
poster mentioned. However, if you're just trying a basic php program
that's not using mysql, it sounds like you have one of two problems:

1) You're trying to use the php4 module for Apache 1.3.xx series on an
Apache2 installation.

or...

2) You didn't add the correct changes to the config files in apache to
load/user the php4 module. If this is the case, try dpkg-reconfigure
php4 and tell it yes when it asks if it can modify your
/etc/apache/httpd.conf file.

HTH,
Jacob

-- 
GnuPG Key: 1024D/16377135

Random .signature #5:
Linux. Where do you want to go tomorrow? 


pgpztVyvkp3Ok.pgp
Description: PGP signature


Re: php not working ....?

2004-08-25 Thread Thomas Adam
On Wed, Aug 25, 2004 at 03:31:39PM +0530, Nayyar Ahmed wrote:
 Hell All,

Things that bad, eh? :) This is the second time you posted this e-mail. It
certainly never escaped my notice the first time around. I suggest that you'd
be better off asking on the hylafax mailing list, the details for which are
here:

http://www.hylafax.org/mailing-lists.html

-- Thomas Adam

-- 
Quis custodiet ipsos custodes?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Apache (PHP not working)

2002-11-14 Thread Gilbert Laycock
 Michelle Storm writes:

 
 You have chosen to download a file of type: application/x-httpd/php from
 http://dragon.ursine.dyndns.org/

 What should Mozilla do with this file?
 

 **I also try: http://localhost/ with the same result**

This happened to me too.

The problem started following the security upgrade to apache around
November 4th (to version 1.3.26-0woody3). An apache/php4 setup that
was working fine up until the upgrade started to spit out the php
source with the mime type described above instead of processing the
php and producing html.

 * Tried: the original config files; config files as re-written by the
   upgrade; plus numerous minor variations.
 * tried re-building php4 from the source package.

The server-info page showed the php4 module had loaded OK.

Eventually I re-read the security announcement and decided to
downgrade back to 1.3.26-0woody1. At which point my php scripts
started working again.

I've not seen any bug reports about it for either apache or php4; I
was waiting until I could repeat the experiment before filing one
myself. 


Also, note that you should re-start your browser (or at least clear
the cache) each time you re-start apache. 

-- 

  Gilbert Laycock email:  [EMAIL PROTECTED]
  Maths and Computer Science, http://www.mcs.le.ac.uk/~glaycock
  University of Leicester phone: (+44) 116 252 3902


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Apache (PHP not working)

2002-11-14 Thread Michelle Storm
Thanks for all the help.

I finally got my new kernel up and the network card working.
This actually fixed the PHP also. (Don't ask me why, I don't know).
I never made ANY changes to the PHP or apache stuff yet, it was still in
the last state from when I first emailed the list witht he problem.
I loaded the new kernel (which was already installed, and working I just
had not inet connect with it cause the network card driver was missing
and I didn't know how to put a driver module in).
And walla, everything works. I have inet on the new kernel now. AND PHP
is working like it's supposed to.

Again, thanks for the help. I got help fixing the network problem for my
new kernel, and when I reloaded with the new kernel PHP worked.

jadedragon:~$ uname -a
Linux dragon.ursine.dyndns.org 2.4.19-k7 #1 Sun Oct 6 20:29:56 EST 2002 i686 unknown 
unknown GNU/Linux


On Wed, Nov 13, 2002 at 03:32:15AM -0800, Michelle Storm wrote:
Content-Description: body
 A little background.
 
 jadedragon:~$ uname -a
 Linux dragon.ursine.dyndns.org 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 
unknown unknown GNU/Linux
 
 **I would be using the newest kernel: 2.4.19-k7, except that I don't
 know how to install a module to run my network card which uses 8139
 drivers.**
 
 Mozilla 1.1
 
 I am using the latest of everything. including the unstable stuff.
 right now my problem is with PHP.
 
 I will attach a .tgz file with my httpd.conf and mime.types. (if there's
 any other info you need. just tell me what (and how to get it)).
 
 Before my computer crashed the LAST time. I had everything working.
 Now I can't get php to work. I get the following error.
 
 
 You have chosen to download a file of type: application/x-httpd/php from
 http://dragon.ursine.dyndns.org/
 
 What should Mozilla do with this file?
 
 
 **I also try: http://localhost/ with the same result**
 
 Last time all I had to do was fix the mime.types
 this time they are correct (that I can tell)
 
 I've done everything I can think of. (I was using apache2, found out
 that php doesn't work with apache2 yet.. so installed apache again.
 
 Then I removed everything related to apache and php
 then I installed apache and php
 
 it still gives me the exact error above.
 
 My php files work on roomates apache and as far as I can tell.. mine is
 setup nearly identical to his. So I don't know what's wrong.
 
 
 1) I have used /etc/init.d/apache restart (stop, start)
 2) I have tried /etc/init.d/apachectl restart (stop, start)
 3) I have restarted my computer completely
 4) removed apache and php packages
 5) reinstalled apache and php packages
 6) retried steps 1 - 3.
 
 Still not working. So now I'm asking for any help I can get. This has
 stumped me. And my roommate refuses to help.
 
 -- 
 Michelle Alexia Jade Storm
 Dragon Impersonating a Human and failing.
 
 P.S. Attaching the following files just because they are related to php
 and or Apache:
 
   jades.apache-files.tgz which contains: /etc/apache
   jades.php4-files.tgz which contains: /etc/php4
   jades.phpmyadmin.tgz which contains: /etc/phpmyadmin
   jades.phppgadmin.tgz which contains: /etc/phppgadmin
 








-- 
Michelle Alexia Jade Storm
Dragon Impersonating a Human and failing.



msg12951/pgp0.pgp
Description: PGP signature


Apache (PHP not working)

2002-11-13 Thread Michelle Storm
A little background.

jadedragon:~$ uname -a
Linux dragon.ursine.dyndns.org 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 
unknown unknown GNU/Linux

**I would be using the newest kernel: 2.4.19-k7, except that I don't
know how to install a module to run my network card which uses 8139
drivers.**

Mozilla 1.1

I am using the latest of everything. including the unstable stuff.
right now my problem is with PHP.

I will attach a .tgz file with my httpd.conf and mime.types. (if there's
any other info you need. just tell me what (and how to get it)).

Before my computer crashed the LAST time. I had everything working.
Now I can't get php to work. I get the following error.


You have chosen to download a file of type: application/x-httpd/php from
http://dragon.ursine.dyndns.org/

What should Mozilla do with this file?


**I also try: http://localhost/ with the same result**

Last time all I had to do was fix the mime.types
this time they are correct (that I can tell)

I've done everything I can think of. (I was using apache2, found out
that php doesn't work with apache2 yet.. so installed apache again.

Then I removed everything related to apache and php
then I installed apache and php

it still gives me the exact error above.

My php files work on roomates apache and as far as I can tell.. mine is
setup nearly identical to his. So I don't know what's wrong.


1) I have used /etc/init.d/apache restart (stop, start)
2) I have tried /etc/init.d/apachectl restart (stop, start)
3) I have restarted my computer completely
4) removed apache and php packages
5) reinstalled apache and php packages
6) retried steps 1 - 3.

Still not working. So now I'm asking for any help I can get. This has
stumped me. And my roommate refuses to help.

-- 
Michelle Alexia Jade Storm
Dragon Impersonating a Human and failing.

P.S. Attaching the following files just because they are related to php
and or Apache:

  jades.apache-files.tgz which contains: /etc/apache
  jades.php4-files.tgz which contains: /etc/php4
  jades.phpmyadmin.tgz which contains: /etc/phpmyadmin
  jades.phppgadmin.tgz which contains: /etc/phppgadmin




jades.apache-files.tgz
Description: /etc/apache Files


jades.php4-files.tgz
Description: /etc/php4 Files


jades.phpmyadmin-files.tgz
Description: /etc/phpmyadmin Files


jades.phppgadmin-files.tgz
Description: /etc/phppgadmin Files


msg12704/pgp0.pgp
Description: PGP signature


RE: Apache (PHP not working)

2002-11-13 Thread Vince Hillier
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

If you compile your kernel yourself, make sure you choose your ethernet card in the 
kernel configuration as a module, then add 8139 to /etc/modules.

If you're just installing a precompiled kernel (from a package or something) just add 
the modules name 8139 to /etc/modules


edit your /etc/apache/httpd.conf and uncomment:
#php
AddType application/x-httpd-php .php 
AddType application/x-httpd-php-source .phps

Vince Hillier
[EMAIL PROTECTED]
http://plutonium.homeunix.com


- -Original Message-
From: Michelle Storm [mailto:jade;ursine.dyndns.org] 
Sent: Wednesday, November 13, 2002 3:32 AM
To: Debian User List
Subject: Apache (PHP not working)

A little background.

jade@dragon:~$ uname -a
Linux dragon.ursine.dyndns.org 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 
unknown unknown GNU/Linux

**I would be using the newest kernel: 2.4.19-k7, except that I don't
know how to install a module to run my network card which uses 8139
drivers.**

Mozilla 1.1

I am using the latest of everything. including the unstable stuff.
right now my problem is with PHP.

I will attach a .tgz file with my httpd.conf and mime.types. (if there's
any other info you need. just tell me what (and how to get it)).

Before my computer crashed the LAST time. I had everything working.
Now I can't get php to work. I get the following error.

- 
You have chosen to download a file of type: application/x-httpd/php from
http://dragon.ursine.dyndns.org/

What should Mozilla do with this file?
- 


**I also try: http://localhost/ with the same result**

Last time all I had to do was fix the mime.types
this time they are correct (that I can tell)

I've done everything I can think of. (I was using apache2, found out
that php doesn't work with apache2 yet.. so installed apache again.

Then I removed everything related to apache and php
then I installed apache and php

it still gives me the exact error above.

My php files work on roomates apache and as far as I can tell.. mine is
setup nearly identical to his. So I don't know what's wrong.


1) I have used /etc/init.d/apache restart (stop, start)
2) I have tried /etc/init.d/apachectl restart (stop, start)
3) I have restarted my computer completely
4) removed apache and php packages
5) reinstalled apache and php packages
6) retried steps 1 - 3.

Still not working. So now I'm asking for any help I can get. This has
stumped me. And my roommate refuses to help.

- -- 
Michelle Alexia Jade Storm
Dragon Impersonating a Human and failing.

P.S. Attaching the following files just because they are related to php
and or Apache:

  jades.apache-files.tgz which contains: /etc/apache
  jades.php4-files.tgz which contains: /etc/php4
  jades.phpmyadmin.tgz which contains: /etc/phpmyadmin
  jades.phppgadmin.tgz which contains: /etc/phppgadmin


-BEGIN PGP SIGNATURE-
Version: PGP 8.0 (Build 349) Beta

iQA/AwUBPdKPU0BtW3tWqkVxEQJxgQCg6ypj1rBuR8oiBtFmNbRXafRUtdIAn1+h
+8WSAIdpVJhC//ZsObLKw8su
=0AMu
-END PGP SIGNATURE-



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Apache (PHP not working)

2002-11-13 Thread Michelle Storm
On Wed, Nov 13, 2002 at 09:43:48AM -0800, Vince Hillier wrote:
  
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 If you're just installing a precompiled kernel (from a package or something) just 
add the
 modules name 8139 to /etc/modules
 
If that's all it takes (adding a line for that module) I'm gonna kill my
roommate for being a lazy beep son-of-a-beep.



 edit your /etc/apache/httpd.conf and uncomment:
 #php
 AddType application/x-httpd-php .php 
 AddType application/x-httpd-php-source .phps

It was installed that way. I didn't have to change it. I already has
that, and the mime.types has the correct parts also. This was the first
things I checked.


-- 
Michelle Alexia Jade Storm
Dragon Impersonating a Human and failing.



msg12742/pgp0.pgp
Description: PGP signature


RE: Apache (PHP not working)

2002-11-13 Thread Justin Ryan
 If you're just installing a precompiled kernel (from a package or something) just 
add the modules name 8139 to /etc/modules

I beleive it'll be 8139too - in any case, it should be the same as
2.4.18-bf2.4 :)

 edit your /etc/apache/httpd.conf and uncomment:
 #php
 AddType application/x-httpd-php .php 
 AddType application/x-httpd-php-source .phps

Erm, these are uncommented :)

Perhaps the PHP scripts are not correctly printing the Content-Type
header?

try something like this at the beginning of your script(s):

print Content-Type: text/html\n\n;

Have fun :)

-Jus



signature.asc
Description: This is a digitally signed message part


RE: Apache (PHP not working)

2002-11-13 Thread Vince Hillier
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm not sure if the module is 8139 or not, but yea, that's all it takes - once you 
know the module name - check the Ethernet HOWTO and search for your card model to find 
the module it uses.



Vince Hillier
[EMAIL PROTECTED]
http://plutonium.homeunix.com


- -Original Message-
From: Michelle Storm [mailto:jade;ursine.dyndns.org] 
Sent: Wednesday, November 13, 2002 7:23 AM
To: Debian User List
Subject: Re: Apache (PHP not working)

On Wed, Nov 13, 2002 at 09:43:48AM -0800, Vince Hillier wrote:
  
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 If you're just installing a precompiled kernel (from a package or something) just 
add the
 modules name 8139 to /etc/modules
 
If that's all it takes (adding a line for that module) I'm gonna kill my
roommate for being a lazy beep son-of-a-beep.

Hmm... Is your files called .php? or .php3 .phtml etc.. if they are not .php add their 
extension to the following line - after .php:

AddType application/x-httpd-php .php

 edit your /etc/apache/httpd.conf and uncomment:
 #php
 AddType application/x-httpd-php .php 
 AddType application/x-httpd-php-source .phps

It was installed that way. I didn't have to change it. I already has
that, and the mime.types has the correct parts also. This was the first
things I checked.


- -- 
Michelle Alexia Jade Storm
Dragon Impersonating a Human and failing.

-BEGIN PGP SIGNATURE-
Version: PGP 8.0 (Build 349) Beta

iQA/AwUBPdKfkUBtW3tWqkVxEQL07ACfWfOTO0IyrHCkOnGSZYIsbXs3f6sAnjZd
47QXtd3CxcBULYIwxdHKHhd8
=DC0e
-END PGP SIGNATURE-



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




RE: Apache (PHP not working)

2002-11-13 Thread Vince Hillier
 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yea, I know they're uncommented, when the look at their httpd.conf and find those 
lines, they'll see that their's IS commented, and they need to make it look like 
these.  I should have been more clear.

Vince Hillier
[EMAIL PROTECTED]
http://plutonium.homeunix.com


- -Original Message-
From: Justin Ryan [mailto:justin;gnubian.org] 
Sent: Wednesday, November 13, 2002 7:36 AM
To: [EMAIL PROTECTED]
Subject: RE: Apache (PHP not working)

 If you're just installing a precompiled kernel (from a package or something) just 
add the modules name 8139 to /etc/modules

I beleive it'll be 8139too - in any case, it should be the same as
2.4.18-bf2.4 :)

 edit your /etc/apache/httpd.conf and uncomment:
 #php
 AddType application/x-httpd-php .php 
 AddType application/x-httpd-php-source .phps

Erm, these are uncommented :)

Perhaps the PHP scripts are not correctly printing the Content-Type
header?

try something like this at the beginning of your script(s):

print Content-Type: text/html\n\n;

Have fun :)

- -Jus

-BEGIN PGP SIGNATURE-
Version: PGP 8.0 (Build 349) Beta

iQA/AwUBPdKj90BtW3tWqkVxEQJC+QCdGntmQmdyizh+bSah6L0A2KaW/yMAoOM+
LzBXW6Ln/l3nrtq+OOwvNwPD
=uAIK
-END PGP SIGNATURE-



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Apache (PHP not working)

2002-11-13 Thread Rob Weir
On Wed, Nov 13, 2002 at 03:32:15AM -0800, Michelle Storm wrote:
Content-Description: body
 A little background.
 
 jadedragon:~$ uname -a
 Linux dragon.ursine.dyndns.org 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 
unknown unknown GNU/Linux
 
 **I would be using the newest kernel: 2.4.19-k7, except that I don't
 know how to install a module to run my network card which uses 8139
 drivers.**

Install the new kernel, the reboot into it.  Run 'depmod' and
'update-modules', then you can run modconf and select your Ethernet
driver.  It's called '8139too' and it should be in 'kernel/drivers/net'
section.

 Last time all I had to do was fix the mime.types
 this time they are correct (that I can tell)
 
 I've done everything I can think of. (I was using apache2, found out
 that php doesn't work with apache2 yet.. so installed apache again.
 
 Then I removed everything related to apache and php
 then I installed apache and php
 
 it still gives me the exact error above.
 
 My php files work on roomates apache and as far as I can tell.. mine is
 setup nearly identical to his. So I don't know what's wrong.
 
 
 1) I have used /etc/init.d/apache restart (stop, start)
 2) I have tried /etc/init.d/apachectl restart (stop, start)
 3) I have restarted my computer completely
 4) removed apache and php packages
 5) reinstalled apache and php packages
 6) retried steps 1 - 3.
 
 Still not working. So now I'm asking for any help I can get. This has
 stumped me. And my roommate refuses to help.

Open up /etc/apache/httpd.conf and make the following changes:
* uncomment the 'LoadModule php4...' line
* add 'index.php' to the end of the DirectoryIndex line in the
  'IfModule mod_dir.c' section
* uncomment the 'AddType' lines, right where it tells you to do so (you
  want the php4 set, not the php3 ones).

Tell apache to reload it's config files (/etc/init.d/apache reload), and
you should be done.

-rob



msg12862/pgp0.pgp
Description: PGP signature


Re: Apache (PHP not working)

2002-11-13 Thread Michelle Storm
 Install the new kernel, the reboot into it.  Run 'depmod' and
 'update-modules', then you can run modconf and select your Ethernet
 driver.  It's called '8139too' and it should be in 'kernel/drivers/net'
 section.

I didn't compile the kernel myself. I just choose the one I wanted
from dselect. So will that still work?



 Open up /etc/apache/httpd.conf and make the following changes:
 * uncomment the 'LoadModule php4...' line
 * add 'index.php' to the end of the DirectoryIndex line in the
   'IfModule mod_dir.c' section
 * uncomment the 'AddType' lines, right where it tells you to do so (you
   want the php4 set, not the php3 ones).
 
 Tell apache to reload it's config files (/etc/init.d/apache reload), and
 you should be done.

Not trying to be rude, but I attached all the pertaining files. I don't
remember if I said I already did all that in the original email, but I
figured people would at least read the entire message (including
attachments) before they continue stating things that I've already
checked.

Now as to your suggestiones:

1) I've done all that, it's all there, all of it is setup correctly, it
SHOULD be working, but it's not. and I don't know why.

2) I've gone so far as to PURGE all packages that have apache or php
in them. Then I reinstalled just the minimum required to get apache
running again. Then I added all the apache modules I was interested in.
Then I added the php packages. (between the purge and the install's I
even restarted my computer)

3) I've checked all my config files against my roommates setup. Mine are
identical (EXCEPT) that mine has a few more things in it. Mostly to do
with phpmyadmin and phppgadmin  (HIS WORKS) mine doesn't.


-- 
Michelle Alexia Jade Storm
Dragon Impersonating a Human and failing.



msg12869/pgp0.pgp
Description: PGP signature


Apache2 (php not working)

2002-11-11 Thread Michelle Storm
Apache2 says it supports PHP (at least on the website), and I have php4
installed. And it was working when I was just using the normal apache
server. I was wondering if it's broken and I just haven't found anything
saying it isn't fixed.. or if there's some special fix?

I have no problem going back to the apache server but I thought I'd
play with the apache2. Just right now I can't view my own webpages cause
they are all in .php extentions.

I've tried changing it all back to .html extensions.. but then the PHP
doesn't work properly.

So all I'm looking for is:

1) IS php supposed to work with apache2 (like it
says it's supposed to)

2a) IF it is, what might I be doing wrong?

2b) IF NOT, I'd like to know so that I can start the process of removing
php, apache2, and all the other stuff that is all linked so I can
reinstall apache.

-- 
Michelle Alexia Jade Storm
Dragon Impersonating a Human and failing.



msg12446/pgp0.pgp
Description: PGP signature


Re: php not working (this message fixed it!!)

2002-10-17 Thread Matt Price


for me, it was just slightly more complicated -- instead of
uncommenting 

AddType application/x-httpd-php3 .php3

I just added .php3 o the php4 mime-types:
AddType application/x-httpd-php .php .php4 .php3 .phtml

and everything now seems to work fine.  I got this trick from a
friend's RedHat configuraiton file, by the way...  

thanks for al lthe help
m



On Wed, Oct 16, 2002 at 04:45:27PM -0400, Chip Rose wrote:
 
 
 On Wed, 16 Oct 2002, James Hughes wrote:
 
  On Wed, Oct 16, 2002 at 12:08:25PM +1000, Rob Weir wrote:
   On Tue, Oct 15, 2002 at 03:52:00PM -0400, Matt Price wrote:
hey htere everyone,
   
trying to get php4 installed on my woody server and don't seem to have
it figured out right.  I've downloaded a package (SPIP) that runs on
php3; I have php4 installed; when I try to load page
(http://pc09.hist.utoronto.ca/~matt/spip/ecrire/index.php3) in my
browser, it always wants to download it, and if it opens the page, all
I see is the sourcecode.  Do I need to use php3 instead?
  
   I think you just need to edit your /etc/apache/httpd.conf file and
   uncomment this line:
   AddType application/x-httpd-php3 .php3
 
  Also, maybe try uncommenting this line:
 
   LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
 
  
   -rob
 
 Yahho!It worked for me - I had the same wants to
 download it situation - uncommenting the AddType wasn't good
 enough and I was really puzzling over it.  I was going to
 research a couple more days and then post a request on the
 mysql list, but after reading your message, uncommenting the LoadModule
 line did the trick.  THANKS!!!
  - Chip Rose
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: php not working

2002-10-16 Thread James Hughes

On Wed, Oct 16, 2002 at 12:08:25PM +1000, Rob Weir wrote:
 On Tue, Oct 15, 2002 at 03:52:00PM -0400, Matt Price wrote:
  hey htere everyone,
  
  trying to get php4 installed on my woody server and don't seem to have
  it figured out right.  I've downloaded a package (SPIP) that runs on
  php3; I have php4 installed; when I try to load page
  (http://pc09.hist.utoronto.ca/~matt/spip/ecrire/index.php3) in my
  browser, it always wants to download it, and if it opens the page, all
  I see is the sourcecode.  Do I need to use php3 instead?  
 
 I think you just need to edit your /etc/apache/httpd.conf file and
 uncomment this line:
 AddType application/x-httpd-php3 .php3

Also, maybe try uncommenting this line:

 LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

 
 -rob





msg07342/pgp0.pgp
Description: PGP signature


Re: php not working (this message fixed it!!)

2002-10-16 Thread Chip Rose



On Wed, 16 Oct 2002, James Hughes wrote:

 On Wed, Oct 16, 2002 at 12:08:25PM +1000, Rob Weir wrote:
  On Tue, Oct 15, 2002 at 03:52:00PM -0400, Matt Price wrote:
   hey htere everyone,
  
   trying to get php4 installed on my woody server and don't seem to have
   it figured out right.  I've downloaded a package (SPIP) that runs on
   php3; I have php4 installed; when I try to load page
   (http://pc09.hist.utoronto.ca/~matt/spip/ecrire/index.php3) in my
   browser, it always wants to download it, and if it opens the page, all
   I see is the sourcecode.  Do I need to use php3 instead?
 
  I think you just need to edit your /etc/apache/httpd.conf file and
  uncomment this line:
  AddType application/x-httpd-php3 .php3

 Also, maybe try uncommenting this line:

  LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

 
  -rob

Yahho!It worked for me - I had the same wants to
download it situation - uncommenting the AddType wasn't good
enough and I was really puzzling over it.  I was going to
research a couple more days and then post a request on the
mysql list, but after reading your message, uncommenting the LoadModule
line did the trick.  THANKS!!!
 - Chip Rose


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: php not working

2002-10-16 Thread Rob Weir

On Wed, Oct 16, 2002 at 07:58:02AM -0400, James Hughes wrote:
  LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

Er, of course.  Loading the php module would probably help too:)

-rob



msg07495/pgp0.pgp
Description: PGP signature


Re: php not working

2002-10-15 Thread Elizabeth Barham

Matt Price [EMAIL PROTECTED] writes:

 hey htere everyone,
 
 trying to get php4 installed on my woody server and don't seem to have
 it figured out right.  I've downloaded a package (SPIP) that runs on
 php3; I have php4 installed; when I try to load page
 (http://pc09.hist.utoronto.ca/~matt/spip/ecrire/index.php3) in my
 browser, it always wants to download it, and if it opens the page, all
 I see is the sourcecode.  Do I need to use php3 instead?  
 
 thanks,
 matt

iirc, it has to do with the extension of your page. Try renaming it to
have just the .php extension (note that this is configurable in
httpd.conf), or installing php3 (which is GPL'd).

Elizabeth


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: php not working

2002-10-15 Thread Rob Weir

On Tue, Oct 15, 2002 at 03:52:00PM -0400, Matt Price wrote:
 hey htere everyone,
 
 trying to get php4 installed on my woody server and don't seem to have
 it figured out right.  I've downloaded a package (SPIP) that runs on
 php3; I have php4 installed; when I try to load page
 (http://pc09.hist.utoronto.ca/~matt/spip/ecrire/index.php3) in my
 browser, it always wants to download it, and if it opens the page, all
 I see is the sourcecode.  Do I need to use php3 instead?  

I think you just need to edit your /etc/apache/httpd.conf file and
uncomment this line:
AddType application/x-httpd-php3 .php3

-rob



msg07261/pgp0.pgp
Description: PGP signature


php not working

2001-04-30 Thread bob hope
I have managed to fix my problem.
All I had to do was upgrade to PHP4.  This allowed me
to use my .php files.

Thanks for all your time and help.


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



php not working

2001-04-28 Thread bob hope
I have apache and mysql installed and working.
PHP is installed but when I open a .php file through
the web browser it asks to save to disk.  The file is
in the web dir and .php3 files work fine.

this is what i have in the apache conf files

httpd.conf
 LoadModule php3_module /usr/lib/apache/1.3/libphp3.so

mime.types
application/x-httpd-php phtml pht php
application/x-httpd-php3php3  phtml
application/x-httpd-php3-source phps
application/x-httpd-php3-preprocessed   php3p

srm.conf
AddType application/x-httpd-php3.phtml .php
AddType application/x-httpd-source  .phps
Addtype application/x-httpd-php .php


I have spent a few hours in the user arcives and what
i found has not helped.  Thanks




Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



Re: php not working

2001-04-28 Thread ktb
On Sat, Apr 28, 2001 at 01:41:38PM +0100, bob hope wrote:
 I have apache and mysql installed and working.
 PHP is installed but when I open a .php file through
 the web browser it asks to save to disk.  The file is
 in the web dir and .php3 files work fine.
 
 this is what i have in the apache conf files
 
 httpd.conf
  LoadModule php3_module /usr/lib/apache/1.3/libphp3.so
 
 mime.types
 application/x-httpd-php   phtml pht php
 application/x-httpd-php3  php3  phtml

If I get you right using a .php3 extensions on your files work.  Looks
like if you would just add .php to the above line you will be set.
Incidentally I think you should have a . in front of your extensions on
these lines.  At least my /etc/apache/httpd.conf does so by default.
That is where my mime.types are designated.
kent
 
-- 
 From seeing and seeing the seeing has become so exhausted
 First line of The Panther - R. M. Rilke




Re: php not working

2001-04-28 Thread marty
 httpd.conf
  LoadModule php3_module /usr/lib/apache/1.3/libphp3.so
 
 mime.types
 application/x-httpd-php   phtml pht php
 application/x-httpd-php3  php3  phtml
 application/x-httpd-php3-source   phps
 application/x-httpd-php3-preprocessed php3p
 
 srm.conf
 AddType application/x-httpd-php3  .phtml .php
 AddType application/x-httpd-source.phps
 Addtype application/x-httpd-php   .php

reread the php documentation... there should be a AddHandler statement in
there as well...

basically what is happening is the php code is being sent to your browser
instead of being executed by the server. you need to tell the server that
a component (in this case mod_php) needs to process the file first, hence
the AddHandler...

later
marty

I can't buy what I want because it's free. Can't be what they want
because I'm me. - Corduroy, Pearl Jam



RE: php not working

2001-04-28 Thread Mark S
Yes, the answer is in the php.net faq's.  There's stuff in there that you
should probably read about tweaking php.ini (the config file)

-Original Message-
From: bob hope [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 28, 2001 8:42 AM
To: debian-user@lists.debian.org
Subject: php not working


I have apache and mysql installed and working.
PHP is installed but when I open a .php file through
the web browser it asks to save to disk.  The file is
in the web dir and .php3 files work fine.

this is what i have in the apache conf files

httpd.conf
 LoadModule php3_module /usr/lib/apache/1.3/libphp3.so

mime.types
application/x-httpd-php phtml pht php
application/x-httpd-php3php3  phtml
application/x-httpd-php3-source phps
application/x-httpd-php3-preprocessed   php3p

srm.conf
AddType application/x-httpd-php3.phtml .php
AddType application/x-httpd-source  .phps
Addtype application/x-httpd-php .php


I have spent a few hours in the user arcives and what
i found has not helped.  Thanks




Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]



Re: php not working

2001-04-28 Thread bob hope


 basically what is happening is the php code is being
 sent to your browser
 instead of being executed by the server. you need to
 tell the server that
 a component (in this case mod_php) needs to process
 the file first, hence
 the AddHandler...

Like the documentation said I added this to the apache
srm.conf.

AddHandler php3-script  .php3

and now even the .php3 files dont work?

Any more ideas? Thanks





Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



Re: php not working

2001-04-28 Thread drudd
Actually I ran into a similar problem with an older
version of php4 I had installed after I upgraded
mysql.

Essentially the upgrade of mysql changed the library
used to connect to it, causing php to fail to load
on startup.

Check your apache logs and make sure that php isn't
generating an error (if it doesn't load, it can't
handle any php files!).

Doug

-- Original Message --



 basically what is happening is the php code is being
 sent to your browser
 instead of being executed by the server. you need to
 tell the server that
 a component (in this case mod_php) needs to process
 the file first, hence
 the AddHandler...

Like the documentation said I added this to the apache
srm.conf.

AddHandler php3-script  .php3

and now even the .php3 files dont work?

Any more ideas? Thanks





Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]








Re: php not working

2001-04-28 Thread Wayne Topa

Subject: php not working
Date: Sat, Apr 28, 2001 at 01:41:38PM +0100

In reply to:bob hope

Quoting bob hope([EMAIL PROTECTED]):
 I have apache and mysql installed and working.
 PHP is installed but when I open a .php file through
 the web browser it asks to save to disk.  The file is
 in the web dir and .php3 files work fine.
 
 this is what i have in the apache conf files
 
 httpd.conf
  LoadModule php3_module /usr/lib/apache/1.3/libphp3.so
 
 mime.types
 application/x-httpd-php   phtml pht php
 application/x-httpd-php3  php3  phtml
 application/x-httpd-php3-source   phps
 application/x-httpd-php3-preprocessed php3p
 
 srm.conf
 AddType application/x-httpd-php3  .phtml .php
 AddType application/x-httpd-source.phps
 Addtype application/x-httpd-php   .php
   

I seem to recall having the same problem when I installed PHP3.
While trying everything I could think of I added PHP to the Netscape
preferences/Naviagator/Applications

MIMEType:application/x-httpd-php
Suffixes:   .phtml .pht .php .php3 .php4
Application: Netscape
and
MIMEType:   application/x-httpd-php3-preprossed
Suffixes:   .phtml .pht .php .php3 .php4
Application:Netscape
  
It's still there but I don't recall if that was the 'fix' or if all of
the other things I did fixed it.

Just a thought, hope it might help.

Wayne
-- 
ASCII stupid question, get a stupid ANSI!
___



Re: php not working

2001-04-28 Thread bob hope

I checked and there is an error:

[warn] [client $foo] handler php3-script not found
for: /var/www/hello.php3

This only started after I added the bit in the
httpd.conf about AddHandler

 Check your apache logs and make sure that php isn't
 generating an error (if it doesn't load, it can't
 handle any php files!).
 
 Doug
 
 -- Original Message --
 
 
 
  basically what is happening is the php code is
 being
  sent to your browser
  instead of being executed by the server. you need
 to
  tell the server that
  a component (in this case mod_php) needs to
 process
  the file first, hence
  the AddHandler...
 




Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



Re: php not working

2001-04-28 Thread bob hope

I checked and there is an error:

[warn] [client $foo] handler php3-script not found
for: /var/www/hello.php3

This only started after I added the bit in the
httpd.conf about AddHandler

 Check your apache logs and make sure that php isn't
 generating an error (if it doesn't load, it can't
 handle any php files!).
 
 Doug
 
 -- Original Message --
 
 
 
  basically what is happening is the php code is
 being
  sent to your browser
  instead of being executed by the server. you need
 to
  tell the server that
  a component (in this case mod_php) needs to
 process
  the file first, hence
  the AddHandler...
 




Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



Re: php not working

2001-04-28 Thread Preben Randhol
bob hope [EMAIL PROTECTED] wrote on 28/04/2001 (18:22) :
 
 Like the documentation said I added this to the apache
 srm.conf.
 
 AddHandler php3-script  .php3
 
 and now even the .php3 files dont work?
 
 Any more ideas? Thanks

This works fine for me:

httpd.conf:LoadModule php3_module /usr/lib/apache/1.3/libphp3.so

mime.types:application/x-httpd-php   phtml pht php
mime.types:application/x-httpd-php3   php3
mime.types:application/x-httpd-php3-source phps
mime.types:application/x-httpd-php3-preprocessed  php3p

srm.conf:DirectoryIndex index.php3 index.phtml index.html
srm.conf:AddType application/x-httpd-php3 .php3 .phtml
srm.conf:AddType application/x-httpd-php3-source .phps

but I have called my files .php3 not .php

-- 
Preben Randhol --- http://www.pvv.org/~randhol/ --
 «For me, Ada95 puts back the joy in programming.»



Re: php not working

2001-04-28 Thread bob hope

Preben Randhol wrote -

 This works fine for me:
 
 httpd.conf:LoadModule php3_module
 /usr/lib/apache/1.3/libphp3.so
 
 mime.types:application/x-httpd-php   phtml
 pht php
 mime.types:application/x-httpd-php3   php3
 mime.types:application/x-httpd-php3-source
 phps
 mime.types:application/x-httpd-php3-preprocessed
  php3p
 
 srm.conf:DirectoryIndex index.php3 index.phtml
 index.html
 srm.conf:AddType application/x-httpd-php3 .php3
 .phtml
 srm.conf:AddType application/x-httpd-php3-source
 .phps
 
 but I have called my files .php3 not .php
 

Appart from the name whats the difference between .php
  .php3   Is is possible for me to just change the
name to .php3 and everything will work the same as
under the .php

What command should I use for this over recursive
directories?  Thanks


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



Re: php not working

2001-04-28 Thread ktb
On Sat, Apr 28, 2001 at 06:19:50PM +0100, bob hope wrote:
 
 Preben Randhol wrote -
 
  This works fine for me:
  
  httpd.conf:LoadModule php3_module
  /usr/lib/apache/1.3/libphp3.so
  
  mime.types:application/x-httpd-php   phtml
  pht php
  mime.types:application/x-httpd-php3   php3
  mime.types:application/x-httpd-php3-source
  phps
  mime.types:application/x-httpd-php3-preprocessed
   php3p
  
  srm.conf:DirectoryIndex index.php3 index.phtml
  index.html
  srm.conf:AddType application/x-httpd-php3 .php3
  .phtml
  srm.conf:AddType application/x-httpd-php3-source
  .phps
  
  but I have called my files .php3 not .php
  
 
 Appart from the name whats the difference between .php
   .php3   Is is possible for me to just change the
 name to .php3 and everything will work the same as
 under the .php
 
 What command should I use for this over recursive
 directories?  Thanks
 

It really doesn't matter.  You can add .php to the lines above like -
srm.conf:AddType application/x-httpd-php3 .php3 .phtml .php
and use both if you like.  Are you restart httpd after editing the
files.
kent

-- 
 From seeing and seeing the seeing has become so exhausted
 First line of The Panther - R. M. Rilke




Re: php not working

2001-04-28 Thread marty
 [warn] [client $foo] handler php3-script not found
 for: /var/www/hello.php3
 
 This only started after I added the bit in the
 httpd.conf about AddHandler

did you compile php as an apache module or as a standalone binary?

later
marty

I can't buy what I want because it's free. Can't be what they want
because I'm me. - Corduroy, Pearl Jam



SUCCESS - Getting Apache/PHP/Mysql working on Debian Potato

2000-11-19 Thread John Griffiths
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Well after my frantic squawking its not cooking along nicely!

For the record and so everyone knows for the next time an
inexperienced (dare i say incompetent) user like myself comes along,
this is what i did wrong and this is how it got fixed...

apt-get install apache

apacheconfig told me i had to edit httpd.conf to set the apache root
directory (might have my terms wrong here but i hope the meaning is
clear) 

having seen this dir in a lot of different places (/home/httpd on
redhat, /usr/local/apache/www on BSD) i decided to get creative and
/usr/apache seemed like a nice place i'd remember.

at no point that i could see in the install was the correct /var/www
suggested to me.

i then installed php3 which is where i hit a snag... the setup of
php3, in particular the running of apacheconfig wouldn't
automatically load the module...

feeling brave i went into httpd.conf and uncommented the appropriate
line, and restarted apache

still no luck...

somewhat later i found out about /var/www (BTW i do think /var is the
best place for this) and changed the httpd.conf to reflect this.

Bingo (mind you apacheconfig still wasn't working quite to spec, i
was editing the conf file myself and restarting the server)

php3 was now working...

Mysql was not

apt-get install php3-mysql

buzzed and whirred but didn't help. and the setup offered no
suggestions about editing files.

help from kind people on this list told me about adding

extension=mysql.so to the php3.ini file...

now it all works!!

i have to say i feel a teensy bit let down by the package maintainers

having said that i have learnt a lot about the inner workings of the
systems i'm using - this was positive for me but others might like
things to work as advertised.

Regards and thanks for the help and patience of everyone here,

John

-BEGIN PGP SIGNATURE-
Version: PGP 7.0

iQA/AwUBOhi3bNw8Sd3Rlz0HEQKoZACfYz5vPhl/dGbn4aRM9gn7Gze65fEAn0SE
SVSFoREVLc8HU7wMwWQ0SJAC
=fsLV
-END PGP SIGNATURE-