If you are a PHP based web developer, you need all the software
running and configured properly. Here I am talking about installing them
One by One in your Ubuntu Desktop. We are installing all the
applications from terminalHow to Open Terminal:
So, to fire up the terminal follow any of these steps:
- If you are running Unity Desktop, click on the Ubuntu Logo at top left corner and type Terminal in the search application bar. Then click on the terminal icon.
- If you are running GNome Desktop, click on Applications->Accessories->Terminal
- For shortcut, you can also press Ctrl+Alt+T at once, to open the terminal.
1. Make sure you have the internet connection. To install apache execute the following command in the terminal:
sudo apt-get install apache2 |
How to Install PHP:
1. To install PHP 5, type following commands in the terminal one by one:
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5 |
2. After installing PHP5 and PHP module for apache, restart the apache with following code:
sudo /etc/init.d/apache2 restart |
sudo gedit /etc/apache2/conf.d/fqdn |
4. Now, we have successfully installed php and apache web server. However, still we don’t know if PHP is successfully installed. To check this, create a file inside /var/www/ folder named test.php as:
sudo gedit / var /www/test.php |
|
If you see the various information about PHP and installed modules there, then we can confirm that Apache is parsing PHP codes. Hence the installation is successful up to this point.
How to Install MySQL:
1. To install MySQL Server in ubuntu, type following code in terminal window:
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql |
How to Install PHPMyAdmin:
1. To Install PHPMyAdmin, type the following codes in the terminal:
sudo apt-get install phpmyadmin |
Once the installation completes, type this in your browser window to confirm the successful installation of PHPMyAdmin: http://localhost/phpmyadmin/index.php.
Now, you are finished. Your environment is setup and you can enjoy using all these applications. Next, you can install other applications that may be necessary such as Eclipse, GIMP etc.
No comments:
Post a Comment