Hi Greg,
These three lines are the most important ones if you look through httpd.conf file:
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml .asp
AddType application/x-httpd-php-source .phps

I have a working copy of centos 4.1 with apache 2.0.54 with php5.0.4 which runs fine, and didn't encounter any problems with the installation to begin with. Did you install via rpm or compile them from source?


Travis Conway wrote:

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


begin:vcard
fn:Shahmat Dahlan
n:Dahlan;Shahmat
org:Sarawak Information Systems Sdn. Bhd.;Post-Project CustomerCare
adr:;;Level 3, Wisma Bapa Malaysia;Kuching;Sarawak;93502;Malaysia
email;internet:[EMAIL PROTECTED]
title:Technical Support
tel;work:(60) 82 444 199 x 3423
tel;fax:(60) 82 444 211
tel;cell:(60) 16 882 6130
x-mozilla-html:FALSE
url:http://www.sains.com.my
version:2.1
end:vcard

Reply via email to