Posted by Mladen Gogala on 11/05/06 06:44
On Sat, 04 Nov 2006 19:52:50 -0800, solitary.wanderer52 wrote:
> I just finished installing PHP5 on Linux (Debian/Ubuntu/Mepis)/Apache2
> using Synaptic. I have tried creating simple html pages, placing them
> in /var/www and pointing the browser at http://127.0.0.1/(those pages)
> and they are displayed correctly.
>
> I have created a basic PHP page (abc.php) and it looks like:
>
> <?
> phpinfo();
> ?>
>
> This page also exists in the /var/www directory and when I point the
> browser to http://127.0.0.1/abc.php, the page gets loaded into a text
> editor.
>
> How can I fix this?
>
>
Well, you have to put the instructions to recognize page type into the
httpd.conf. These instructions usually look like this:
$ grep -i php /etc/httpd/conf/httpd.conf
LoadModule php5_module /usr/lib/httpd/modules/libphp5.so
AddType application/x-httpd-php .php
$
My PHP pages execute properly.
--
http://www.mladen-gogala.com
[Back to original message]
|