rpm –Uvh http://rpms.famillecollet.com/remi-release-15.rpm
yum –enablerepo=remi install httpd php php-commom
yum –enable repo=remi install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqllite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml
/etc/init.d/httpd start
chkconfig –levels 235 httpd on
vim /var/www/html/test.php
Enter the following under the php file
<?php
phpinfo();
?>
Open the web browser and type this link
you should be able to see the php configuration details
No comments:
Post a Comment