2 Ways to Install PhpStorm 2018.3 on Ubuntu 18.04, Ubuntu 20.04

This tutorial is going to show you 2 ways to install PhpStorm on Ubuntu 18.04 and Ubuntu 20.04. PhpStorm is a PHP IDE (Integrated Development Environment) for working with Symfony, Drupal, WordPress, Zend Framework, Laravel, Magento, Joomla!, CakePHP, Yii. It’s a commercial (with 30-day free trial), cross-platform IDE developed by JetBrains and written in Java programming language.

At the time of this writing, the latest version is PhpStorm 2018.3, released on November 22, 2018. It’s the the third major update in 2018. This update improves PHP development experience in a lot of ways:

  • Support for the upcoming PHP 7.3
  • Advanced DQL support for Doctrine ORM
  • Remote deployment to multiple hosts
  • New intention actions and improved refactorings
  • Improvements for quality tools along with PHP CS Fixer support
  • and more

PhpStorm 2018.3 also introduces support for GitHub Pull Requests, Git submodules, and more VCS improvements, a new Search Everywhere dialog, multiline TODOs, and a new high-contrast theme. The Database tools in PhpStorm come with Cassandra support, new intentions and code completion enhancements, support for extensions in PostgreSQL, and more. For more details, please see what’s new in PhpStorm 2018.3 on the official website.

Install PhpStorm 2018.3 on Ubuntu 18.04, 20.04 via Snap Package

The easiest way to install PhpStorm on Linux is using the Snap package. To install the latest stable version of PhpStorm, open up a terminal window and run the following command:

sudo snap install phpstorm --classic

phpstorm ubuntu 18.04 snap

Note that the --classic option puts the snap package in classic mode and disable security confinement. This basically means the PhpStorm snap has full access to the system, like a traditionally packaged application. This snap package is from JetBrains, not from a third-party, as indicated by the green check. Snap packages update automatically, so your PhpStorm installation will always be up-to-date.

Once the installation is complete, you can start PhpStorm from the application menu, or by running the following command in terminal.


Install PhpStorm on Ubuntu 18.04, 20.04 Using the Traditional Package

JRE (Java runtime environment) 1.8 is bundled with the PhpStorm distribution, so you don’t have to install Java to run PhpStorm. Go the official website and download the tar archive. If you prefer command line, you can always use the following wget command to download. The latest version is 2018.3 at the time of this writing. You need to change the version number if a new version comes out.

wget https://download-cf.jetbrains.com/webide/PhpStorm-2018.3.tar.gz

Once downloaded, extract the .tar.gz file to /opt/ directory, which is used to store third-party applications on Unix/Linux systems.

sudo tar xvf PhpStorm-2018.3.tar.gz --directory /opt/

Now run the shell script to start PhpStorm:


Setting up PhpStorm

The first time you run PhpStorm, you need to select a few options. If you are new to PhpStorm, select the second option and hit the OK button.

phpstorm ubuntu 18.10

Read and agree the user agreement.

phpstorm 2018.3 ubuntu

Next, you can choose whether you want to send usage data or not.

install phpstorm in ubuntu 18.04 terminal

After that, select a dark or light theme. (The PhpStorm snap package pre-select a light theme, so you won’t see this option.)

phpstorm dark theme

Create a desktop entry so next time you can click on an icon to start PhpStorm.

phpstorm desktop icon

Create launcher script.

phpstorm launcher script

Then, select Evaluate for free if you are a new user and click the Evaluate button.

install phpstorm 2018 ubuntu 18.04

Now you can create a new project and start using Phpstorm.

Welcome to PhpStorm

phpstorm new project

phpstorm tip of the day

How to Remove PhpStorm

If for any reason you want to uninstall PhpStorm, simply delete /opt/phpstorm/ directory and all subdirectories and files in it.

sudo rm /opt/PhpStorm*/ -r

To remove the PhpStorm Snap package, run the following command.

sudo snap remove phpstorm

Wrapping Up

I hope this tutorial helped you install PhpStorm on Ubuntu 18.04 and Ubuntu 20.04. You may also want to read:

As always, if you found this post useful, then subscribe to our free newsletter to get more tips and tricks. Take care 🙂

Rate this tutorial
[Total: 2 Average: 5]

3 Responses to “2 Ways to Install PhpStorm 2018.3 on Ubuntu 18.04, Ubuntu 20.04

  • Спасибо огромное.

    Thanks a lot.

  • Abolfazl
    2 years ago

    In “2 Ways to Install PhpStorm 2018.3 on Ubuntu 18.04, Ubuntu 18.10” tutorial this line “/opt/Phpstorm-*/bin/phpstorm.sh” is wrong , becouse /opt/Phpstorm-*/….. storm dount start with lowercase “s” but start with uppercase ”S”. 🙂

  • Abolfazl
    2 years ago
    In "2 Ways to Install PhpStorm 2018.3 on Ubuntu 18.04, Ubuntu 18.10" tutorial this line "/opt/Phpstorm-*/bin/phpstorm.sh" is wrong , becouse /opt/Phpstorm-*/..... storm dount start with lowercase "s" but start with uppercase ''S". :)

Leave a Comment

  • Comments with links are moderated by admin before published.
  • Your email address will not be published.
  • Use <pre> ... </pre> HTML tag to quote the output from your terminal/console.
  • Please use the community (https://community.linuxbabe.com) for questions unrelated to this article.
  • I don't have time to answer every question. Making a donation would incentivize me to spend more time answering questions.

The maximum upload file size: 2 MB. You can upload: image. Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded. Drop file here