Page 1 of 1

PHP 5.3 Compilation On RHEL 5

Posted: Wed Apr 14, 2010 1:13 pm
by ramkia6
Hello ,

I compiled PHP 5.3 on RHEL5 . And copied php.ini into /etc/ and added line LoadModule php5_module modules/libphp5.so to httpd.conf . But still i unalbe to see
php pages. Do i need to change any other files. No errors in apache error log. Any Idea ?

Re: PHP 5.3 Compilation On RHEL 5

Posted: Wed Apr 14, 2010 4:08 pm
by Christopher
There are a few other changes you need to make to the http.conf to get it to work -- PHPDir and associationg .php files with that handler. See the installation instructions.

Re: PHP 5.3 Compilation On RHEL 5

Posted: Fri Apr 16, 2010 7:40 am
by ramkia6
I figured out the issue just we need to add 3 lines to /etc/httpd/conf/httpd.conf

LoadModule php5_module /usr/lib64/httpd/modules/libphp5.so
AddType application/x-httpd-php .php .php5 .php
AddType application/x-httpd-php-source .phps

and restart httpd ... That's It.