
Lets start your installation – first of all open your terminal and type it command which i have shared with you below step by step.
Install Apache
- sudo apt-get update
- sudo apt-get install apache2
- sudo systemctl restart apache
After that you can install curl also just type it below command-
- sudo apt-get install curl
Install MySQL
Make sure, you don’t skip password when you install MySQL and during the server will ask you the MySQL password and confirm password and you fill it this proceed it further.
- sudo apt-get install mysql-server
Install PHP
- sudo apt-get install php
- sudo apt-get install libapache2-mod-php
- sudo apt-get install php-mysql
- sudo apt-get install php-mcrypt
or
- sudo apt-get install php php-mcrypt php-mysql libapache2-mod-php
After completing php install restart your apache-
- sudo systemctl restart apache2
- php -v
Install phpMyAdmin
- sudo apt-get update
- sudo apt-get install phpmyadmin php-mbstring php-gettext
For the server selection, please select with pressing tab key apache2 and then you need to enter the password for phpMyAdmin.
- sudo gedit /etc/apache2/apache2.conf
After entering above command apache2.conf file will open then insert this code in the last of file “Include /etc/phpmyadmin/apache.conf”.
- sudo service apache2 restart
and finally you php myadmin is installed.
Install Composer
- sudo apt-get update
- sudo apt-get install php-cli git unzip
- curl -sS https://getcomposer.org/installer -o composer-setup.php
- sudo php composer-setup.php –install-dir=/usr/local/bin –filename=composer
- composer -v
Install nodeJs
Lets start to install nodeJs and npm follow the below stepes –
- sudo apt-get update
- sudo apt-get install nodejs
- sudo apt-get install npm
- sudo apt-get update
- sudo apt-get install build-essential libssl-dev
- curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh -o install_nvm.sh
- nvm install 9.4.0
- nvm use 9.4.0
check your node and nodejs and npm version such as –
– node -v
– nodejs -v
– npm -v
And finally you have done all the installation and now you check. If you are getting any issue please leave a commet i’m sure i will back as soon as possible.