Hello guys this blog is to about installing LAMP (Linux,Apache2,MYSQL,PHP)
Make sure you have already installed Ubuntu server edition and that you have root access to it. If you do, run the commands below to update your systems.
sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove
2.Simply you have to install LAMP(Linux Apache MySql PHP).Now lets install apache.
sudo apt-get install apache2
3.Now try to restart it.
sudo service apache2 restart
4.Go to your browser check you have successfully installed it or not.
localhost/
If you have..then next
5.Installing mysql
sudo apt-get install mysql-server mysql-client
6.It will prompt for window for password..set your mysql password.
7.then try to start and enable it.
sudo systemctl start mysql sudo systemctl restart mysql sudo systemctl enable mysql
8.Securing your installation.
sudo mysql_secure_installation
will ask..password..then several questions answer them in following type.
Change the root password? N Remove anonymous users? Y Disallow root login remotely? Y Remove test database and access to it? Y Reload privilege tables now? Y
9.Go to mysql.
mysql -u root -p
will prompt Enter password:
then enter the password which you were set.
10.Installing PHP.and additional software which will require in further steps.
sudo apt-get install php5 libapache2-mod-php5 php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-sqlite php5-tidy php5-xmlrpc php5-xsl
11.Now the /var/www/html directory is your root directory for entering files which you want to access from browser.
Thank You!!!