I want to recommend VPS hosting from professionals with the best technical support, on which this website works. They have VPS and dedicated servers for any needs. Sign up and get a 25% discount on the first payment for any SSD VPS when paying for one, three or six months.
PhpStorm is one of the best integrated development environments for the PHP programming language. It is written in Java and supports all the features that a development environment should have. In addition to syntax highlighting and very convenient code completion, you get support for debugging, profiling, error highlighting in real time, integration with Git, and hints based on PHP documentation.
But PhpStorm has one drawback – the program is proprietary, and you can use it for free only for the first month. To continue using the program, you will need to purchase a license. In this article, we will look at how to install PhpStorm Ubuntu 20.04 and earlier versions.
- Installing PhpStorm on Ubuntu 20.04
- 1. Application Center
- 2. Snap package
- 3. Official website
- 4. JetBrains Toolbox
- Configuring PhpStorm in Ubuntu
- How to remove PhpStorm in Ubuntu
Installing PhpStorm on Ubuntu 20.04
1. Application Center
This is the easiest way to install the program. You just need to open the Ubuntu application center and type PhpStorm in the search:
Then select the found package, it will be the only one in the list, and clickInstall.
The program package weighs quite a lot, so downloading can take a considerable time: depending on your Internet speed, from 10 minutes to half an hour. After the download is complete, you can run the program.
2. Snap package
In fact, this is the same installation method as in the first paragraph, only here the command line is used instead of the application center. To install PhpStorm on Ubuntu 20.04, open a terminal and run:
sudo snap install phpstorm --classic
Then, after the installation is complete, you can find the program in the main menu of the system:
3. Official website
It is also possible to install PhpStorm Ubuntu 20.04 from the official website of the program. This allows you to install the latest version at the moment, but at the same time you will not receive updates. Open the program downloads page and select the Linux version. Click the Download button:
Then wait for the download to complete. After the download is complete, unpack the contents of the archive to the /opt folder/:
sudo tar xf ~/Downloads/PhpStorm-2020.3.3.tar.gz -C /opt/
It remains to create a link to the program’s executable file in the /usr/local/bin / directory, so that it is available on the system:
sudo ln -s /opt/PhpStorm-2020.3.3/bin/phpstorm.sh /usr/local/bin/phpstorm
4. JetBrains Toolbox
If you have a license for the program from JetBrains and you use some other tools of this company, it is most convenient to install it using the JetBrains Toolbox tool. The program is free and you can use it to install any of the company’s products. It is noteworthy that the license key is enough to enter only once, for all other programs, the license will be pulled up automatically. Another advantage of Toolbox is that the program will monitor the release of new versions and install them directly from the official website. First download the ToolBox from the official website:
Unpack the contents of the archive to a folder and run the resulting executable file by double-clicking or running the command from the program folder in the terminal:
In the window that opens, you must accept the license agreement:
Then select the desired program from the list. In this case, PhpStorm and click Install next to it:
The download process will be displayed at the top of the list of programs. Since the archive with the program is quite large, it will take time to download and install:
After the installation is complete, the program will remain at the top of the list in the Installed section. Here you can either delete it or delete it:
You can start the program from the main menu.
Configuring PhpStorm in Ubuntu
After the program is installed, you can run it, for example, from the main menu or through the terminal:
Immediately after launching, the program will ask you where to import the settings from. If this program has not been installed before, you can choose not to import the settings:
Then you need to select your license. On the Activation code tab, you can enter the program key. Or you can get a 30 day trial by choosing Evaluate for free:
After that, you can start using the program, open or create new projects.
But before that, you can configure the program a little. On the Customize tab, you can select a color scheme:
On the Plugins tab, you can install plugins that add support for the technologies you are going to use. For example, you can install PHP support for the Laravel framework and an extension to support it .env files:
Then go back to the Projects tab and create or open a new project. You can choose the path to the project files and if there are already sources there the program will offer to create a project from them:
Then you can move on to programming:
How to remove PhpStorm in Ubuntu
To remove PhpStorm installed using the application center or snap package, just open the application center, find the program, and clickRemove. You can also use the command:
sudo snap remove phpstorm
To remove the program installed from the official website, it is enough to delete the folder in which you unpacked the program:
sudo rm -Rf /opt/PhpStorm*
The program installed using JetBrains ToolBox is removed in the same application.
In this article, we have covered how to install PhpStorm Ubuntu 20.04, as well as how to run and configure this program. If you need a free alternative, then you can pay attention to editors such as Atom or Brackets, or you can try the Netbeans integrated development environment, which is also written in Java, but is completely free.