PHP Developers Network
http://forums.devnetwork.net/

PHP 5.3 Compilation On RHEL 5
http://forums.devnetwork.net/viewtopic.php?f=30&t=115343
Page 1 of 1

Author:  ramkia6 [ Wed Apr 14, 2010 1:13 pm ]
Post subject:  PHP 5.3 Compilation On RHEL 5

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 ?

Author:  Christopher [ Wed Apr 14, 2010 4:08 pm ]
Post subject:  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.

Author:  ramkia6 [ Fri Apr 16, 2010 7:40 am ]
Post subject:  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.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/