Preparing Fedora 18 For Drupal development

INSTALLING LAMP

Installation of Mysql Server on Fedora 17

Step 1 : Before beginning the installation, Open the terminal and run the following command in the terminal to install MySQL server on your Fedora 17 system.

$ yum install mysql mysql-server

Step 2 : Next, Run the following command in the terminal to start the MySQL service on your Fedora 17 system.

$ systemctl start mysqld.service

Step 3 : Next, run the following command in the terminal to enable the MySQL services on your Fedora 17 system.

$ systemctl enable mysqld.service

Step 4 : Next, run the following command in the terminal to create your MySQL password on your Fedora 17 system.

$ mysqladmin -u root password [your_password_here]

Note : Please enter your appropriate password for the MySQL server on your Fedora 17 system.

Step 5 : Finally, run the following command in the terminal to check the connection to the MySQL database server on your Fedora 17.

mysql -h localhost -u root -p

That's All and now install Httpd and PHP, instructions given below.

Installation of Apache (httpd) on Fedora 17

Step 1 : In the Httpd installation, First install Apache (httpd) on your Fedora system. Open the terminal and run the following command in the terminal to install Apache Web Server on your Fedora 17 system.

$ yum install httpd php php-common

Step 2 : Next, run one of the following command in the terminal to start and enable httpd service on your Fedora 17 system.

$ /etc/init.d/httpd start

OR

$ service httpd start

Step 3 : Finally, run the following command in the terminal to check whether the Apache (httpd) server is on or not on your Fedora 17 system.

$ chkconfig --levels 235 httpd on

Installation of PHP and PHP Modules on Fedora 17

Step 1 : Open the terminal and run the following command in the terminal to install several PHP modules on your Fedora 17 system.

$ yum install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml

Step 2 : Next, Check whether the PHP modules has been installed on your Fedora 17 system or not. To check you have to write a PHP file named "info.php" in your vi editor. Run the following command in the terminal to create info.php file in the vi editor.

$ vi /var/www/html/info.php

and now paste the following code in the opened info.php file to check whether PHP is working on your Fedora 17 system or not.

<?php
phpinfo();
?>

Step 3 : Finally, Save the info.php file in the vi editor and now your favorite web browser and enter the following URL in it.

http://ip/info.php

You will notice that it will the following screen and it resembles that PHP has installed on your Fedora 17 system.

Installation of PhpMyAdmin on Fedora 17

Step 1 : Open the terminal and run the following command in the terminal to install PhpMyAdmin on your Fedora 17 system.

$ yum install phpmyadmin

Step 2 : Next, run the following command in the terminal to restart the Apache (httpd) web server on your Fedora 17 system.

$ service httpd restart

Step 3 : Finally, Open your favorite web browser and check whether phpmyadmin page appears or not. This ensures that PhpMyAdmin has been installed on your Fedora 17 system.

http://ip/phpmyadmin