Installing Apache:
Open the Terminal and type the below command to Install Apache
sudo apt-get install apache2
Open the Terminal and type the below command to Install Apache
sudo apt-get install apache2
Type your ubuntu password and press enter.
Type y and hit enter to confirm apache installation.
To Confirm
Open your browser and type
http;//localhost/
Installing PHP:
sudo apt-get install php5 libapache2-mod-php5
After successful Installation, restart your apache2
# /etc/init.d/apache2 restart
To check
# vi /var/www/phpinfo.php
and type the below code
<?php phpinfo() ?>
Now open your browser and type
http://localhost/phpinfo.php
Installing MySql
apt-get install mysql-server
give mysql root password when it requires.
To Confirm
Open your browser and type
http;//localhost/
Installing PHP:
sudo apt-get install php5 libapache2-mod-php5
After successful Installation, restart your apache2
# /etc/init.d/apache2 restart
To check
# vi /var/www/phpinfo.php
and type the below code
<?php phpinfo() ?>
Now open your browser and type
http://localhost/phpinfo.php
Installing MySql
apt-get install mysql-server
give mysql root password when it requires.
No comments:
Post a Comment