Click to See Complete Forum and Search --> : php problem


Anon
05-03-2001, 04:30 AM
Hi
I have installed PHP4 on a RedHat 7.0 but when I try to view a php file what I see is the code of the php file. Can somebody tell me what is wrong?

vincente
05-03-2001, 05:34 AM
Did you change the webserver config according to the manual?

Anon
05-03-2001, 05:54 AM
What exactly has to be done?

Thanks

shyam

vincente
05-03-2001, 07:07 AM
Well, you need to check the install section of the manual, that's what needs to be done. :-)

Anon
05-04-2001, 01:02 AM
Hi!
Seems like your webserver dosn't interpret the php. Means the .php extension is not associated with any application handler. When using the apache, look for the section application handler in the online doc.


Greetings
Daniel Spiess

Anon
05-04-2001, 03:48 AM
Hi
Thanks for the reply. I have followed the following steps. Do let me know if I am wrong anywhere.
1. stopped the apache
2. Downloaded the php-4.0.5.tar file.
3. untarred the file
4. cd to the php-4.0.5 directory
5. ./configure
6. make
7. make install
8. restarted apache

the httpd.conf on my linux machine has the following entry:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

I think that should take care of the application handler.

I am saving the php files as .php3 Is that fine?

Anon
05-04-2001, 08:10 AM
I have a Redhat Linux 7.0 machine. I am trying to install PHP4 on that. What is the exact procedure to be followed? How do I check whether it is installed correctly? Can any body help me out pls?

Anon
05-05-2001, 07:36 AM
I use win32 but ist should be something like:
ScriptAlias /php4/ "c:/phpdirectory/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php4/php.exe"

I think .php for .php3-extensions is not enough. And don't forget the config for php!

greeting
daniel