PHP 5.3 Compilation On RHEL 5

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
ramkia6
Forum Newbie
Posts: 2
Joined: Wed Apr 14, 2010 1:05 pm

PHP 5.3 Compilation On RHEL 5

Post 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 ?
User avatar
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

Post 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.
(#10850)
ramkia6
Forum Newbie
Posts: 2
Joined: Wed Apr 14, 2010 1:05 pm

Re: PHP 5.3 Compilation On RHEL 5

Post 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.
Post Reply