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: 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


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