How to install PhpStorm – 2017.1.4 on Ubuntu – 18.04

To install PhpStorm &ndash 2017.1.4 on Ubuntu &ndash 18.04

JetBrains PhpStorm is a commercial, cross-platform IDE for PHP built on JetBrains IntelliJ IDEA platform. PhpStorm provides an editor for PHP, HTML, and JavaScript with on-the-fly code analysis, error prevention and automated refactoring for PHP and JavaScript code. PhpStorm' s code completion supports PHP 5.3, 5.4, 5.5, 5.6 & 7.0 including generators, co-routines, the final keyword, list in for each, namespaces, closures, traits and short array syntax. It includes a full-fledged SQL editor with editable query results. PhpStorm is built on IntelliJ IDEA, which is written in Java. Users can extend the IDE by installing plugins created for the IntelliJ Platform or write their own plugins.

Installing PhpStorm

Let' s first start with updating the system repository as follows.

root@linuxhelp1:~# apt-get update

Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:2 http://in.archive.ubuntu.com/ubuntu bionic InRelease [235 kB]
Hit:3 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
.
.
Get:11 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 DEP-11 Metadata [3,003 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8,119 kB]                                                                                     
Get:13 http://in.archive.ubuntu.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata [40.9 kB]
Get:14 http://in.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons [210 kB]
Fetched 31.4 MB in 45s (696 kB/s)      
Reading package lists... Done

Java is required for the installation of phpstorm so let' s install Java JDK 9 by using the following command.

root@linuxhelp1:~# apt-get install openjdk-9-jdk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
Use ' sudo apt autoremove'  to remove them.
The following additional packages will be installed:
.
.
update-alternatives: using /usr/lib/jvm/java-9-openjdk-amd64/bin/appletviewer to provide /usr/bin/appletviewer (appletviewer) in auto mode
update-alternatives: using /usr/lib/jvm/java-9-openjdk-amd64/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode
Processing triggers for libc-bin (2.27-0ubuntu2) ...
Processing triggers for ca-certificates (20170717) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed  done.
Running hooks in /etc/ca-certificates/update.d...
done.
done.

Once you installed Java proceed to download a Phpstorm package from its official site.

root@linuxhelp1:~# wget wget https://download.jetbrains.com/webide/PhpStorm-2017.1.4.tar.gz
--2018-04-13 12:34:13--  http://wget/
Resolving wget (wget)... failed: Name or service not known.
wget: unable to resolve host address ‘ wget’ 
--2018-04-13 12:34:13--  https://download.jetbrains.com/webide/PhpStorm-2017.1.4.tar.gz
Resolving download.jetbrains.com (download.jetbrains.com)... 52.18.241.155, 52.50.13.42, 2a05:d018:93b:d102:12f7:d94e:993a:a1ef, ...
Connecting to download.jetbrains.com (download.jetbrains.com)|52.18.241.155|:443... connected.
.
.
 PhpStorPhpStorm-2017.1.4.tar.gz   15%[====>                                ]  40.15M  1.09MB/s  PhpStorm-2017.1.4.tar.g 100%[==============================> ] 254.06M  1.12MB/s    in 4m 52s  

2018-04-13 12:39:07 (890 KB/s) - ‘ PhpStorm-2017.1.4.tar.gz’  saved [266401885/266401885]

FINISHED --2018-04-13 12:39:07--
Total wall clock time: 4m 54s
Downloaded: 1 files, 254M in 4m 52s (890 KB/s)

After downloading the package extract using the following command.

root@linuxhelp1:~# tar -zxvf PhpStorm-2017.1.4.tar.gz 
PhpStorm-171.4694.2/bin/log.xml
PhpStorm-171.4694.2/build.txt
PhpStorm-171.4694.2/help/ReferenceCard.pdf
PhpStorm-171.4694.2/help/ReferenceCardForMac.pdf
PhpStorm-171.4694.2/lib/alloy.jar
PhpStorm-171.4694.2/lib/annotations.jar
PhpStorm-171.4694.2/lib/asm-all.jar
PhpStorm-171.4694.2/lib/automaton.jar
PhpStorm-171.4694.2/lib/batik-all.jar
.
.
PhpStorm-171.4694.2/jre64/bin/jjs
PhpStorm-171.4694.2/jre64/bin/keytool
PhpStorm-171.4694.2/jre64/bin/orbd
PhpStorm-171.4694.2/jre64/bin/pack200
PhpStorm-171.4694.2/jre64/bin/policytool
PhpStorm-171.4694.2/jre64/bin/rmid
PhpStorm-171.4694.2/jre64/bin/rmiregistry
PhpStorm-171.4694.2/jre64/bin/servertool
PhpStorm-171.4694.2/jre64/bin/tnameserv
PhpStorm-171.4694.2/jre64/bin/unpack200

Next, switch to the bin directory.

root@linuxhelp1:~#  cd PhpStorm-171.4694.2/bin/

Now, run the installation script using the following command.

root@linuxhelp1:~/PhpStorm-171.4694.2/bin# ./phpstorm.sh 
Gtk-Message: 12:40:22.501: Failed to load module " canberra-gtk-module" 
Apr 13, 2018 12:40:34 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
Apr 13, 2018 12:40:34 PM java.util.prefs.FileSystemPreferences$6 run
WARNING: Prefs file removed in background /root/.java/.userPrefs/prefs.xml

An installation wizard will appear now and if you are doing a fresh installation choose " Do not import settings."

Next, you must accept the terms and conditions to proceed further.

And then in order to use a trial version choose to evaluate for free and click on Evaluate.

The phpstorm will be initialized after accepting the license agreement.

Make the initial configuration and click ok.

Now phpstorm has been launched and you can create and work on a new project.

Choose the project type and location and click on create.

The application is launched and you are seeing the workspace of phpstorm 2017.1.4.

With this, the method to install Php storm &ndash 2017.1.4 on Ubuntu &ndash 18.04 comes to an end.


FAQ
Q
why should we need to install java for installing phpstorm?
A
Java is required for the installation of phpstorm so let' s install Java JDK 9 by using the following command
# apt-get install openjdk-9-jdk
Q
What are all the php version supported for this application to install phpstorm?
A
As of now moving to the current update, the php version from 5.3/5.4/5.5/5.6/7.0. can be supported.
Q
Whether Is this platform dependent?
A
No it is platform independent and works on platform basis.
Q
where I get the phpstorm package to be downloaded?
A
you can download the phpstorm by following link
https://download-cf.jetbrains.com/webide/
Q
while running "./phpstorm.sh" I am getting permission denied status?
A
Provide executable permission for the installer script.
# chmod 755 ./phpstorm.sh