PHP SC Package Installation Guide (Linux)


Installation Instruction Links: 


Note:

If the version number installed in your device is lower than the version provided in the screenshots, follow the steps below to install the updated version of the applications.

If an updated version of the above provided applications are already installed in your device, the following instructions will still work with minor differences in the version of the app you’re shown in the output which should have no impact during the course of the bootcamp.


Git

Open a Terminal using Ctrl+Alt+T and execute sudo apt install git -y.

To confirm successful installation, execute git –version to print the current version of installed Git.


Google Chrome

Download and execute the installer

Wait for the installation to finish and run the google chrome application


Sublime Text 4

Open a Terminal using Ctrl+Alt+T and execute the following:

wget -qO – https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add –
sudo apt-get install apt-transport-https
echo “deb https://download.sublimetext.com/ apt/stable/” | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt update
sudo apt install sublime-text -y

To confirm successful installation, execute subl to open Sublime Text.


XAMPP

https://www.apachefriends.org/download.html

  1. Download the v8.1.25 installer

If the link to the installer in the download link section provided above does not work or the same version is not found, you may download the installer here.

The link provided above will redirect you to a list of installers. Press Ctrl + F on your keyboard to open the find in page menu.

Look for the installer (xampp-linux-x64-8.1.25-0-installer.run) with the exact same name as provided in the screenshot above.

Click the link to download the installer.

  1. In the Downloads directory, you will see this file:
xampp-linux-x64-8.1.25-0-installer.run
  1. Open terminal in the Downloads directory of the installer and input the following command:
chmod +x xampp-linux-x64-8.1.25-0-installer.run

The above command makes the downloaded installer executable. 

  1. Next, enter the following command:
sudo ./xampp-linux-x64-8.1.25-0-installer.run

Input password when prompted. The installer will now run.

  1. After installation has finished, input the command:
sudo ln -s /opt/lampp/bin/php /usr/bin/php

This will link the php installation to an environment path variable, enabling access to the php command globally.

  1. Verify installation is working via the command:
php –version

You should see the following output:

  1. Remove the downloaded installer via the command:
php -r “unlink(‘composer-setup.php’);”
  1. You can now start XAMPP via the terminal command:
sudo /opt/lampp/lampp start

Input password when prompted. You should see the following output:

  1. In your browser, input the following URL:

http://localhost/phpmyadmin

You should be able to see the following screen:


Composer

Use the installer

To download the installer in the current directory, input the following terminal command: 

php -r “copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);”

Verify the downloaded installer with the command:

php -r “if (hash_file(‘sha384’, ‘composer-setup.php’) === 

‘756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46 af1d4d07ee0f76181c7d3’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;”

The output could be different based on the version being installed.

Run the installer with the terminal command:

php composer-setup.php

It should give the following output: 

Move composer to an environment path with the terminal command:

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

Verify installation

Typing in composer in the terminal should give the following output:


If you’ve stumbled upon this blog post and aren’t a bootcamper, you can begin your bootcamp journey with Zuitt by clicking this link: