stack – Linux,As we recognise that “LAMP” Stack is a group of open supply software program which is established collectively to set up a server to host the net packages and websites. By doing this set up you may manner the content by way of PHP and saved the facts into the MySQL Database.
By following this guide you can deploy LAMP Stack on an Ubuntu 14.04 and 16.04 the Linux running gadget.
stack – Linux,Install Apache 2.Four Please be aware: This works great. But this package deal may also improve your apache version 2.Four which has distinct config documents in apache 2.2 and additionally deletes stuff, like /and so forth/apache2/sitesavailable/default when upgrading. This may bring about a lack of your apache settings (vhost, mod_rewrite stuff and many others.). Be aware of that!
$ sudo apt-get update $ sudo apt-get install -y apache2 apache2-doc apache2-utils
(LAMP),Install PHP 5.6 on Ubuntu Use the following set of command to add PPA for PHP 5.6 in your Ubuntu system and install PHP 5.6.
$ sudo apt-get install -y python-software-properties $ sudo add-apt-repository ppa:ondrej/php $ sudo apt-get update $ sudo apt-get install -y php5.6 php5.6-mysql php5.6 php-gettext php5.6-mbstring php-xdebug libapache2-mod-php5.6 php5.6-curl php5.6-gd php5.6-mcrypt php5.6-xml php5.6-xmlrpc
Check Installed PHP Version:
$ php -v
Install PHP 7.1 on Ubuntu Use the following set of command to add PPA for PHP 7.1 in your Ubuntu system and install PHP 7.1.
$ sudo apt-get install python-software-properties $ sudo add-apt-repository ppa:ondrej/php $ sudo apt-get update $ sudo apt-get install -y php7.1
Switch Between PHP Versions If you have got hooked up multiple PHP variations and want to use in a different way than the default. Use following steps to exchange between php5.6 and php7.1 version. You can use the identical command for different PHP versions through just converting PHP model in command. From PHP five.6 => PHP 7.1
$ sudo a2dismod php5.6 $ sudo a2enmod php7.1 $ sudo service apache2 restart
$ update-alternatives --set php /usr/bin/php7.1
From PHP 7.1 => PHP 5.6 Apache:-
$ sudo a2dismod php7.1 $ sudo a2enmod php5.6 $ sudo service apache2 restart
$ sudo update-alternatives --set php /usr/bin/php5.6
Install MySQL Server: There are methods to install MySQL. You can either use one of the versions blanketed in the APT package deal repository by default (which might be 5.5 and 5.6), or you can install the modern-day model (presently 5.7) by manually including MySQL’s repository first.
If you want to put in a selected version of MySQL, follow the best section underneath. To help you make a decision which version is excellent for you, you may examine MySQL’s introduction to MySQL five.Five, then what’s new in MySQL five.6 and what is new in MySQL five.7. If you are not certain, you may simply use the mysql-server APT bundle, which simply installs the brand new model on your Linux distribution. At the time of writing, that’s 5.Five, but you may constantly replace to any other model later. To install MySQL this manner, replace the package deal index in your server and deploy the package with apt-get
$ sudo apt-get update $ sudo apt-get install -y mysql-server
You’ll be brought about to create a root password all through the installation. Choose a secure one and ensure you don’t forget it because you may want it later. Move on to step from right here. Installing MySQL five.Five or five.6
If you need to install MySQL 5.5 or 5.6 mainly, the technique remains very trustworthy. First, replace the package index for your server.
$ sudo apt-get update
Then, to install MySQL 5.5, install the mysql-server-5.5 package.
$ sudo apt-get install -y mysql-server-5.5
To install MySQL 5.6, install the mysql-server-5.6 package instead.
$ sudo apt-get install -y mysql-server-5.6
For both options, you may be brought on to create a root password for the duration of the set up. Choose a comfy one and ensure you recollect it due to the fact you will want it later.
Installing MySQL 5.7
$ wget http://dev.mysql.com/get/mysql-apt-config_0.8.8-1_all.deb
Next, install it using dpkg.
$ sudo dpkg -i mysql-apt-config_0.8.8-1_all.deb
You’ll see a spark off that asks you which of them MySQL product you want to configure. The MySQL Server option, which is highlighted, need to say mysql-five.7. If it would not, press ENTER, then scroll down to mysql-5.7 using the arrow keys, and press ENTER once more.
Once the option says mysql-5.7, scroll down on the main menu to Apply and press ENTER again. Now, update your package index.
$ sudo apt-get update
$ sudo apt-get install -y mysql-server
You’ll be precipitated to create a root password at some point of the set up. Choose a at ease one and make certain you do not forget it, because you will want it later. To Check mysql Version :
$ mysql --version
$ sudo apt-get update $ sudo apt-get install -y phpmyadmin
Enable .htaccess: First enable rewrite using this command:
$ sudo a2enmod rewrite
Then restart apache2:
$ sudo service apache2 restart
Install Sublime Text 3:
$ sudo add-apt-repository -y ppa:webupd8team/sublime-text-3 $ sudo apt-get update; sudo apt-get install -y sublime-text-installe
$ sudo apt install subversion apache2 libapache2-svn
$ sudo apt-get install filezilla
Conclusion: Now I wish you have got Installed LAMP Stack nicely, You need to confirm your net server’s connection are secured or be aware thru HTTPS.