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 ?
PHP 5.3 Compilation On RHEL 5
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: PHP 5.3 Compilation On RHEL 5
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.
(#10850)
Re: PHP 5.3 Compilation On RHEL 5
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.
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.