Click to See Complete Forum and Search --> : Installation of php


Anon
11-17-2000, 06:33 AM
Respected sir,
We have installed linux, apache web server and php. We have written a
program in php and tried to execute.But it's not executing. It's just displaying the HTML information. So request you to guide me.

1) Please tell us how we should install LINUX, APACHE SERVER, PHP to enable us to overcome above problem.
2) Where should we store PHP program and how do we execute PHP under the above environment.

Anon
11-17-2000, 06:48 AM
step one: read the manual.
If you follow the steps in the manual it will work.

Anon
11-17-2000, 10:29 AM
Most Linux comes with apache pre-installed and should come with mod_so as well. I suggest you follow the instruction in Apache Installation Help file : INSTALL, I followed this and managed to install it on my Solaris Cluster.

Make sure you add in the appropiate admendment e.g. add-type/application etc ..... correctly as instructed in the manual.
My guess is you forgot to do this, so the file is treated as normal file, or you didn't associated the extension .html to php applcation .... so the engine treats all <?php ?> as comments ...... :-)

Dennis
Have fun!

Anon
11-17-2000, 05:47 PM
If you look in your apache installation's httpd.conf file you'll see a line like this:

# AddType application/x-httpd-php .php

simply remove the # from the front of that line and restart apache.