Well first see if the libphp*.so file is in your apache module
directory.  If you installed it via source, try
/usr/local/apache2/modules (or for 1.3.x /usr/local/apache/modules).
For a pre-canned install of apache, try /etc/httpd/modules (I really
don't know as I never used the distro installed version of apache).
Then look into your httpd.conf.   For source installs
/usr/local/apache2/conf/httpd.conf, for pre-canned installed
/etc/httpd/conf/httpd.conf.  Now you need to see if php is being
loaded.  Type this command and post the output here so I can see if
you are loading php correctly:
grep php httpd.conf

For example, if I run this on mine I get the following results:
[EMAIL PROTECTED] conf]$ grep php httpd.conf
LoadModule php5_module        modules/libphp5.so
DirectoryIndex index.html index.html.var index.php index.htm
AddType application/x-httpd-php .php .phtml .asp
AddType application/x-httpd-php-source .phps
>From there I can help.
HTH

Travis

PS>  For those of you wondering why I parse asp pages through php is
that there are links out there for pages on my server.  I wrote some
stuff so that if someone were to click them it would redirect them to
the new version of the script (i.e., the php script).  All of the asp
pages do a header('location: .......).  I don't actually run any asp
thru php.

On 9/14/05, Greg Kraft <[EMAIL PROTECTED]> wrote:
> Hi
>
> I have recently installed a centos 4.1 server, and cannot seem to get any of
> the php services displaying correctly, they all display as text, and i have
> included the index.php file in the document portion of apache ?
> All i want is my apache server to start displaying the pages correctly, I
> think the php module is being loaded.
>
> Any idea's ?
> I know this is probably a stupid question, but humor me please..
>
> Thanks
> Greg
>

Reply via email to