How to Install Composer, Docker, Laravel and WordPress using terminal?

This tutorial will assist those new to the Ubuntu environment in configuring the following:

  • Composer
  • Docker
  • Laravel
  • WordPress

First, open the Terminal in Ubuntu by searching for it or by pressing Ctrl + Alt + T.

If you don’t want to use the keyword “sudo,” type “sudo su” instead. This is how it will appear.

NOTE: Simply copy and paste the code below into your terminal.


php -r "copy('', 'composer-setup.php');"

php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"

php composer-setup.php

php -r "unlink('composer-setup.php');"

mv composer.phar /usr/local/bin/composer


apt install


apt install curl
curl -s | bash


curl -O

tar xzvf latest.tar.gz 

I hope this was helpful. Thank you very much!

Leave a Comment

Your email address will not be published. Required fields are marked *