|  | Posted by solitary.wanderer52 on 11/06/06 06:38 
Mladen Gogala wrote:> 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
 
 Okay, I added the following to my httpd.conf file (which is located in
 /etc/apache2:
 
 LoadModule php5_module        /usr/lib/apache2/modules/libphp5.so
 AddType application/x-httpd-php .php .php5
 
 When I restart or force-reload the web server, the page loads, but
 displays no info (I am using FF 1.5.0.7).  If I have it display source,
 I get:
 
 <?
 phpinfo();
 ?>
 
 So, this is an improvement.  Any further ideas???
 
 
 Steve
  Navigation: [Reply to this message] |