How to Install PhpStorm on Ubuntu 24.04

This article outlines the installation of PhpStorm on Ubuntu 24.04, showcasing multiple methods: APT, Snap, and Flatpak. PhpStorm, developed by JetBrains, is a powerful IDE for PHP development featuring debugging tools and support for various frameworks and front-end technologies. A free 30-day trial is available before requiring a license.

This article explains how to install PhpStorm on Ubuntu 24.04.

PhpStorm is a widely used integrated development environment (IDE) designed specifically for PHP development. It is developed by JetBrains and includes a variety of features that enhance productivity for PHP developers.

It features robust debugging tools that enable efficient code navigation, variable analysis, and application testing.

PhpStorm offers advanced code completion, navigation, real-time error detection, and integration with various version control systems such as Git, enhancing collaboration and code management.

PhpStorm supports popular PHP frameworks such as Laravel, Symfony, and Zend, along with front-end technologies like HTML, CSS, and JavaScript.

Prepare Ubuntu

Before installing PhpStorm, you may have to install some required packages and prepare Ubuntu.

Run the command below to update Ubuntu.

sudo apt update
sudo apt upgrade

Next, install these packages.

sudo apt install dirmngr ca-certificates software-properties-common apt-transport-https curl lsb-release

Add JetBrains PPA repository

After setting up the Ubuntu machine, execute the command below to add the official JetBrains PPA repository for installing PhpStorm.

First, import the repository GPG key by running the command below.

curl -s https://s3.eu-central-1.amazonaws.com/jetbrains-ppa/0xA6E8698A.pub.asc | gpg --dearmor | sudo tee /usr/share/keyrings/jetbrains-ppa-archive-keyring.gpg > /dev/null

Then, add the repository by running the command below.

echo "deb [signed-by=/usr/share/keyrings/jetbrains-ppa-archive-keyring.gpg] http://jetbrains-ppa.s3-website.eu-central-1.amazonaws.com any main" | sudo tee /etc/apt/sources.list.d/jetbrains-ppa.list > /dev/null

Finally, update and install the PhpStorm edition suitable for your projects. You can start with a 30-day free trial, after which a license will be required to continue using the service.

sudo apt update
sudo apt install phpstorm

Once installed, you can start the different PhpStorm editions by running the command below.

phpstorm

You can launch PhpStorm by going to Activities > Show Applications on the Linux desktop.

To uninstall the PhpStorm edition you previously installed, use the command provided below.

sudo apt remove phpstorm

Install PhpStorm via Snap

Another method to install PhpStorm is by using the Snap package manager. To do that, install the Snap package manager if it’s not already installed.

sudo apt install snapd

Next, install core Snap and enable classic support by running the command below.

sudo ln -s /var/lib/snapd/snap /snap
sudo snap install core

Then, run the command below to install PhpStorm from the Snap package manager.

sudo snap install phpstorm --classic

After installation, use the Dock on the left sidebar to search for and launch the PhpStorm app.

You can also run the app using the command below.

snap run phpstorm

Remove the app using the command below.

sudo snap remove phpstorm

Install PhpStorm via Flatpak

Another option for installing PhpStorm is through the Flatpak package manager. Flatpak utilizes a sandboxed installation method, which enhances security and simplifies updates.

Flatpak is a third-party application distribution system not included in Ubuntu by default.

You must install the Flatpak package manager and then install PhpStorm from there.

First, update and install Flatpak.

sudo apt update && sudo apt upgrade
sudo apt install flatpak

Next, add the Flatpak repository to Ubuntu.

sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Finally, install PhpStorm. The education edition is not available on Flatpak.

flatpak install flathub com.jetbrains.PhpStorm

Once installed, you can launch it using the command below or open the app in the desktop apps center.

flatpak run com.jetbrains.PhpStorm

Uninstall the app using the command below.

flatpak uninstall --delete-data com.jetbrains.PhpStorm

That should do it!

Conclusion

  • Multiple Installation Methods: PhpStorm can be installed on Ubuntu using various methods, including APT, Snap, and Flatpak, giving users flexibility based on their preferences.
  • Rich Features: The IDE includes powerful tools for debugging, code completion, and real-time error detection, making it a valuable tool for PHP developers.
  • Framework Support: PhpStorm supports numerous PHP frameworks such as Laravel and Symfony, along with front-end technologies, enhancing development capabilities.
  • Trial Available: Users can try PhpStorm for free for 30 days, after which they will need to purchase a license to continue using the software.
  • Regular Updates: Keeping the software updated is essential for accessing new features and improvements, and each installation method offers straightforward ways to manage updates.
  • Uninstallation Made Easy: Users can easily uninstall PhpStorm through the respective package manager commands if they choose to remove it.
Richard Avatar

Comments

Leave a Reply

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


Exit mobile version