Re: [expert] PHP on Air

2000-03-08 Thread Torben Tretau


Hi!

Thanks all for the suggestions, works fine after naming
files which should be parsed php3.. Also thanks for the
security tip, which shouldnt left out.. ;)

Bye,
Torben




Re: [expert] PHP on Air

2000-03-07 Thread Torben Tretau


Hi Jean-Michel!

Thanks for your hint. With naming those files whatever.php3 
it worked.. 
So i have to add something to parse also html-files, sorry,
thought that this is the standard situation. But now i got it..

Bye,
Torben

Jean-Michel Dault wrote:
 
 On Sat, 4 Mar 2000, Bug Hunter wrote:
 
You may have a bit more reading to do.  Apache has to know to associate
  the web pages produced with the php parser.  you have to edit  the
  /etc/httpd.conf files.  I forget exactly what you put there.  If you visit
  http://www.php.net, and look for their searchable FAQ, it will probably
  put you on the right track.  Some others have had problems similar to
  yours, and the answers are provided by users that solved the problems.
 
 The Mandrake Apache and PHP3 are already pre-configured. All you have to
 do is name your file whatever.php3 and it should work.
 
 If it doesn't...
 
Also, did you restart your server after changing the config files?  If
  not, it doesn't work.  (experience speaking :))
 
 Yup, you have to restart Apache =) /etc/rc.d/init.d/apache restart
 
 Also, make sure your web server has the permissions to read your php3
 files. (chmod 0755 file).
 
 Jean-Michel Dault
 [EMAIL PROTECTED]



Re: [expert] PHP on Air

2000-03-07 Thread Jean-Michel Dault


If you name your files *.php3, it will parse HTML and php3. If you name
your files *.html, it will only work with html. If you want to use
server-side includes, you must use .shtml.

However, everything that server-side includes offer, you can do it with
php3.

Jean-Michel Dault
[EMAIL PROTECTED]

On Tue, 7 Mar 2000, Torben Tretau wrote:

 Date: Tue, 07 Mar 2000 21:49:00 +0100
 From: Torben Tretau [EMAIL PROTECTED]
 To: Jean-Michel Dault [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: Re: [expert] PHP on Air
 
 
 Hi Jean-Michel!
 
 Thanks for your hint. With naming those files whatever.php3 
 it worked.. 
 So i have to add something to parse also html-files, sorry,
 thought that this is the standard situation. But now i got it..
 
 Bye,
 Torben
 
 Jean-Michel Dault wrote:
  
  On Sat, 4 Mar 2000, Bug Hunter wrote:
  
 You may have a bit more reading to do.  Apache has to know to associate
   the web pages produced with the php parser.  you have to edit  the
   /etc/httpd.conf files.  I forget exactly what you put there.  If you visit
   http://www.php.net, and look for their searchable FAQ, it will probably
   put you on the right track.  Some others have had problems similar to
   yours, and the answers are provided by users that solved the problems.
  
  The Mandrake Apache and PHP3 are already pre-configured. All you have to
  do is name your file whatever.php3 and it should work.
  
  If it doesn't...
  
 Also, did you restart your server after changing the config files?  If
   not, it doesn't work.  (experience speaking :))
  
  Yup, you have to restart Apache =) /etc/rc.d/init.d/apache restart
  
  Also, make sure your web server has the permissions to read your php3
  files. (chmod 0755 file).
  
  Jean-Michel Dault
  [EMAIL PROTECTED]
 



Re: [expert] PHP on Air

2000-03-07 Thread Bug Hunter



  You don't want to change apache to parse html files as php3 files.  This
can present a security risk if more than one person shares your machine.
This allows people to run php3 scripts that copy any readable file on the
server and present that file to themselves by placing a .html page up.

  This is not a horrible risk, but a risk.  You can limit which
directories that you allow php3 scripts to run in.  This is what you
should do, and you should force the pages to be php3 pages.  php3 can be a
mixture of standard html pages and php3 script.


On Tue, 7 Mar 2000, Torben Tretau wrote:

 
 Hi Jean-Michel!
 
 Thanks for your hint. With naming those files whatever.php3 
 it worked.. 
 So i have to add something to parse also html-files, sorry,
 thought that this is the standard situation. But now i got it..
 
 Bye,



Re: [expert] PHP on Air

2000-03-06 Thread Jean-Michel Dault



On Sat, 4 Mar 2000, Bug Hunter wrote:

   You may have a bit more reading to do.  Apache has to know to associate
 the web pages produced with the php parser.  you have to edit  the
 /etc/httpd.conf files.  I forget exactly what you put there.  If you visit
 http://www.php.net, and look for their searchable FAQ, it will probably
 put you on the right track.  Some others have had problems similar to
 yours, and the answers are provided by users that solved the problems.

The Mandrake Apache and PHP3 are already pre-configured. All you have to
do is name your file whatever.php3 and it should work. 

If it doesn't...
 
   Also, did you restart your server after changing the config files?  If
 not, it doesn't work.  (experience speaking :))

Yup, you have to restart Apache =) /etc/rc.d/init.d/apache restart

Also, make sure your web server has the permissions to read your php3
files. (chmod 0755 file).

Jean-Michel Dault
[EMAIL PROTECTED]

 
 
 On Sat, 4 Mar 2000, Torben Tretau wrote:
 
  
  Hi!
  
  Anyone had problems with PHP on Air? 
  Got installed Apache and all PHP packages
  - running well, but also little examples
  wont execute.. Looks like nothing 
  is parsed from Apache, must i configure
  Apache to parse PHP? 
  
  Bye,
  Torben
  
 



Re: [expert] PHP on Air

2000-03-06 Thread Jean-Michel Dault



On Mon, 6 Mar 2000, Torben Tretau wrote:

 I think the conf-files from Apache and PHP are 
 already configured from Mandrake, looked at 
 them and it looks like everything is fine.. 
 Anyone got a hint? Or should i fetch new RPMs
 from AdvancedExtranet? 

You are right, Apache and PHP are already configured. However, you are
welcome to get all the latest releases at the AdvancedExtranet web site,
http://coruscant.netrevolution.com 

It's a temporary address, I'm having problems with Internic =(

Jean-Michel Dault
[EMAIL PROTECTED]

 
 Bye,
 Torben
 
 Bug Hunter wrote:
  
You may have a bit more reading to do.  Apache has to know to associate
  the web pages produced with the php parser.  you have to edit  the
  /etc/httpd.conf files.  I forget exactly what you put there.  If you visit
  http://www.php.net, and look for their searchable FAQ, it will probably
  put you on the right track.  Some others have had problems similar to
  yours, and the answers are provided by users that solved the problems.
  
Also, did you restart your server after changing the config files?  If
  not, it doesn't work.  (experience speaking :))
 



Re: [expert] PHP on Air

2000-03-06 Thread Torben Tretau


Hi!

I think the conf-files from Apache and PHP are 
already configured from Mandrake, looked at 
them and it looks like everything is fine.. 
Anyone got a hint? Or should i fetch new RPMs
from AdvancedExtranet? 

Bye,
Torben

Bug Hunter wrote:
 
   You may have a bit more reading to do.  Apache has to know to associate
 the web pages produced with the php parser.  you have to edit  the
 /etc/httpd.conf files.  I forget exactly what you put there.  If you visit
 http://www.php.net, and look for their searchable FAQ, it will probably
 put you on the right track.  Some others have had problems similar to
 yours, and the answers are provided by users that solved the problems.
 
   Also, did you restart your server after changing the config files?  If
 not, it doesn't work.  (experience speaking :))



Re: [expert] PHP on Air

2000-03-05 Thread Allan Jarina

I tested my examples by pointing my URL to the Apache server with the
account where it belong.
example:
http://192.168.5.2/~allanj

Try it our, it might answer your question.

Torben Tretau wrote:

 Hi!

 Anyone had problems with PHP on Air?
 Got installed Apache and all PHP packages
 - running well, but also little examples
 wont execute.. Looks like nothing
 is parsed from Apache, must i configure
 Apache to parse PHP?

 Bye,
 Torben

--
|||
   (@ @)
-------oOO--(_)--OOo----------------
 A L L A N   J A R I N A

 Tong Fang International, Inc.  Oaryoo.ph, Inc.
  [EMAIL PROTECTED] [EMAIL PROTECTED]
 http://surf.to/allanj

 Countin' on a remedy I've counted on before
 Goin' with a cure that's never failed me
 What you call the disease
 I call the remedy  -- The Mighty Mighty Bosstones
----------------------------





Re: [expert] PHP on Air

2000-03-04 Thread Sergio Korlowsky

Torben Tretau wrote:
 
 Hi!
 
 Anyone had problems with PHP on Air?
 Got installed Apache and all PHP packages
 - running well, but also little examples
 wont execute.. Looks like nothing
 is parsed from Apache, must i configure
 Apache to parse PHP?
 
 Bye,
 Torben

If you find out WHY... let me know, I am experiencing the same
problem. Maybe PHP support was 'removed' from Air?
-- 
   M A N D R A K E
"The friendliest LINUX Distro"
  Time is in Our Side
---
Distribuidores de los productos Alaska
http://207.48.46.152
  Linux en EspaƱol




Re: [expert] PHP on Air

2000-03-04 Thread Dennis Yar

I think you got to install the mod_php3 module with rpm.

Then it will be OK.


- Original Message - 
From: Torben Tretau [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 05, 2000 3:06 AM
Subject: [expert] PHP on Air


 
 Hi!
 
 Anyone had problems with PHP on Air? 
 Got installed Apache and all PHP packages
 - running well, but also little examples
 wont execute.. Looks like nothing 
 is parsed from Apache, must i configure
 Apache to parse PHP? 
 
 Bye,
 Torben



Re: [expert] PHP on Air

2000-03-04 Thread Bug Hunter


  You may have a bit more reading to do.  Apache has to know to associate
the web pages produced with the php parser.  you have to edit  the
/etc/httpd.conf files.  I forget exactly what you put there.  If you visit
http://www.php.net, and look for their searchable FAQ, it will probably
put you on the right track.  Some others have had problems similar to
yours, and the answers are provided by users that solved the problems.

  Also, did you restart your server after changing the config files?  If
not, it doesn't work.  (experience speaking :))


On Sat, 4 Mar 2000, Torben Tretau wrote:

 
 Hi!
 
 Anyone had problems with PHP on Air? 
 Got installed Apache and all PHP packages
 - running well, but also little examples
 wont execute.. Looks like nothing 
 is parsed from Apache, must i configure
 Apache to parse PHP? 
 
 Bye,
 Torben