Tuesday, December 29, 2009

installing apache, php, mysql manually in Linux

If we want to start working with PHP or Joomla we'll need to install and configure php, apache, mysql to create an enviornment to start our journey. Xampp is there to ease the whole process. Installing xampp will automatically setup everything.

Today, I am going to describe the manual setup process for those who don't want to install xampp and want to setup everything manually.

Usually, apache, php, mysql all three are given with linux distribution. So I am assuming that these three are already installed in your system. Still you cannot run a php script?? The reason is you need to do a little more task to get going:

1)Install php-mysql by yum install php-mysql

2)install phpmyadmin by yum install phpmyadmin
If this automatically copies the phpmyadmin folder in /var/www/html folder then you are done.
If you dont see this folder in the place then from phpmyadmin source code take the phpmyadmin folder and copy it in /var/www/html folder.

now your preparation is done.

3)Start Apache by command: /etc/init.d/httpd start

4)Start Mysql by command: /etc/init.d/mysql start

5)Put a test.html file in /var/www/html folder.

6)To see the file in browser,open a browser. In the address bar type : http://localhost/test.html

Thats it. Enjoy your journey with apache,php, mysql

No comments:

Post a Comment