Thursday, September 22, 2011

Installing PHP5 on fedora


--ref:  http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-fedora-12-lamp-p2
---
We can install PHP5 and the Apache PHP5 module as follows:

yum install php

We must restart Apache afterwards:

/etc/init.d/httpd restart

--Testing PHP5 / Getting Details About Your PHP5 Installation

The document root of the default web site is /var/www/html. We will now create a small PHP file (info.php) in that directory and call it in a browser. The file will display lots of useful details about our PHP installation, such as the installed PHP version.

vi /var/www/html/info.php

<?php
phpinfo();
?>


Now we call that file in a browser (e.g. http://192.168.0.100/info.php):

No comments:

Post a Comment