How to install PhpStorm On Ubuntu

Posted by
March 23, 2022

Installation:

I tried to install PhpStorm in ubuntu using the snap, but the issue with this is its using older version. here is the another way to install PhpStorm latest version in ubuntu using simple steps.

Download the stable release from here. It will download the file inside the “Downloads” Directory.

Step1: Go to Download Directory and Open it in Terminal.

Step2: Run the following Commands in terminal

sudo mkdir /opt/phpstorm
sudo tar xvf PhpStorm-<version-name>.tar.gz -C /opt/phpstorm --strip-components 1

Step3: Now check the extracted files inside the /opt/phpstorm folder.

cd /opt/phpstorm/;ls

Step4: Now run following command to create a link

sudo ln -s /opt/phpstorm/bin/phpstorm.sh /usr/local/bin/phpstorm

Step4: Now in terminal type “phpstorm” and follow the setup process and it will be installed.

 

Step5: To create a Shortcut, Need to create a file. Inside the terminal please run this command

sudo gedit /usr/share/applications/jetbrains-phpstorm.desktop

Step5: It will open a Editor Just paste this following snippets and save the file

[Desktop Entry]
Version=1.0
Type=Application
Name=PhpStorm
Icon=/opt/phpstorm/bin/phpstorm.svg
Exec="/opt/phpstorm/bin/phpstorm.sh" %f
Comment=Lightning-smart PHP IDE
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-phpstorm
StartupNotify=true

After above steps PhpStorm will be successfully installed.

 

Uninstall:

To Remove PhpStorm, You Just Need to Run two commands:

sudo rm -rf /opt/phpstorm
sudo rm -rf /usr/local/bin/phpstorm
sudo rm -rf /usr/share/applications/jetbrains-phpstorm.desktop

 

read more