• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to PhpStorm in Ubuntu

{{postValue.id}}

To install PhpStorm in ubuntu

PhpStorm is a cool, lightning-smart IDE for PHP developers which is a cross-platform product from Jetbrains. This article will explain how to install Phpstorm on Ubuntu 16.04.

Features

  • It supports PHP 5.3/5.4/5.5/5.6/7.0.
  • On-the-fly error correction is possible.
  • Autocompletion of code is possible.

To Install PhpStorm

Add java repo file using “ add-apt-repository” command.

root@linuxhelp:~# add-apt-repository ppa:webupd8team/java
 Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK7 / JDK8 / JDK9). There are no actual Java files in this PPA.

More info (and Ubuntu installation instructions):
- for Oracle Java 7: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
- for Oracle Java 8: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

Debian installation instructions:
- Oracle Java 7: http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html
- Oracle Java 8: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html

Oracle Java 9 (for both Ubuntu and Debian): http://www.webupd8.org/2015/02/install-oracle-java-9-in-ubuntu-linux.html

For JDK9, the PPA uses standard builds from: https://jdk9.java.net/download/ (and not the Jigsaw builds!).

Important!!! For now, you should continue to use Java 8 because Oracle Java 9 is available as an early access release (it should be released in 2016)! You should only use Oracle Java 9 if you explicitly need it, because it may contain bugs and it might not include the latest security patches! Also, some Java options were removed in JDK9, so you may encounter issues with various Java apps. More information and installation instructions (Ubuntu / Linux Mint / Debian): http://www.webupd8.org/2015/02/install-oracle-java-9-in-ubuntu-linux.html
 More info: https://launchpad.net/~webupd8team/+archive/ubuntu/java
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmp984jizui/secring.gpg'  created
gpg: keyring `/tmp/tmp984jizui/pubring.gpg'  created
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp984jizui/trustdb.gpg: trustdb created
gpg: key EEA14886: public key " Launchpad VLC"  imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK

Update apt source list by using the following command.

root@linuxhelp:~# apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease       
Hit:4 http://ppa.launchpad.net/enlightenment-git/ppa/ubuntu xenial InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease     
Hit:6 http://ppa.launchpad.net/gns3/ppa/ubuntu xenial InRelease
Hit:7 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Reading package lists... Done
root@linuxhelp:~#

Install java using “ apt-get install” command.

root@linuxhelp:~# apt-get install java-common oracle-java8-installer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic
  linux-image-4.4.0-21-generic linux-image-extra-4.4.0-21-generic
Use ' sudo apt autoremove'  to remove them.
Suggested packages:
  binfmt-support visualvm ttf-baekmuk | ttf-unfonts | ttf-unfonts-core
  ttf-kochi-gothic | ttf-sazanami-gothic ttf-kochi-mincho
  | ttf-sazanami-mincho ttf-arphic-uming.
.
.
.
.
update-alternatives: using /usr/lib/jvm/java-8-oracle/bin/xjc to provide /usr/bin/xjc (xjc) in auto mode
Oracle JDK 8 installed
update-alternatives: using /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnpjp2.so to provide /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so) in auto mode
Oracle JRE 8 browser plugin installed
root@linuxhelp:~#

Go to the directory “ /home/user1/Downloads/” .

root@linuxhelp:~# cd /home/user1/Downloads/

Download “ phpstorm” file by using the following command.

root@linuxhelp:/home/user1/Downloads# wget https://download-cf.jetbrains.com/webide/PhpStorm-2016.1.2.tar.gz
--2016-07-16 10:07:45--  https://download-cf.jetbrains.com/webide/PhpStorm-2016.1.2.tar.gz
Resolving download-cf.jetbrains.com (download-cf.jetbrains.com)... 54.230.172.38, 54.230.172.18, 54.230.172.106, ...
Connecting to download-cf.jetbrains.com (download-cf.jetbrains.com)|54.230.172.38|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 219997146 (210M) [binary/octet-stream]
Saving to: ‘ PhpStorm-2016.1.2.tar.gz’ 

PhpStorm-2016.1.2.t 100%[===================> ] 209.80M   302KB/s    in 9m 19s  

2016-07-16 10:17:04 (385 KB/s) - ‘ PhpStorm-2016.1.2.tar.gz’  saved [219997146/219997146]

Extract the downloaded file.

root@linuxhelp:/home/user1/Downloads# tar xvf PhpStorm-2016.1.2.tar.gz
PhpStorm-145.1616.3/bin/idea.properties
PhpStorm-145.1616.3/bin/log.xml
PhpStorm-145.1616.3/build.txt
PhpStorm-145.1616.3/help/ReferenceCard.pdf
.
.
.
.
PhpStorm-145.1616.3/jre/jre/bin/rmiregistry
PhpStorm-145.1616.3/jre/jre/bin/servertool
PhpStorm-145.1616.3/jre/jre/bin/tnameserv
PhpStorm-145.1616.3/jre/jre/bin/unpack200
root@linuxhelp:/home/user1/Downloads# ls
PhpStorm-145.1616.3  PhpStorm-2016.1.2.tar.gz

Run the following command to enter into the extracted directory.

root@linuxhelp:/home/user1/Downloads# cd PhpStorm-145.1616.3/
root@linuxhelp:/home/user1/Downloads/PhpStorm-145.1616.3# ls
bin  build.txt  help  Install-Linux-tar.txt  jre  lib  plugins

Navigate to the “ bin” directory as follows.

root@linuxhelp:/home/user1/Downloads/PhpStorm-145.1616.3# cd bin/
root@linuxhelp:/home/user1/Downloads/PhpStorm-145.1616.3/bin# ls
fsnotifier      idea.properties         libyjpagent-linux.so  phpstorm.sh
fsnotifier64    inspect.sh              log.xml               phpstorm.vmoptions
fsnotifier-arm  libyjpagent-linux64.so  phpstorm64.vmoptions  webide.png


To Launch PhpStorm

Run the “ phpstorm.sh” file by using the following command.

root@linuxhelp:/home/user1/Downloads/PhpStorm-145.1616.3/bin# ./phpstorm.sh

The “ complete installation” page appears and click “ ok”
installation-PhpStorm-IDE-for-PHP-developers-Ubuntu-16.04-complete-installation
Read all the policy and click “ accept” to proceed further.
installation-PhpStorm-IDE-for-PHP-developers-Ubuntu-16.04-policy
Select the type of License. Here we are choosing Evaluate for free for 30 days.
installation-PhpStorm-IDE-for-PHP-developers-Ubuntu-16.04-buy-PhpStorm

installation-PhpStorm-IDE-for-PHP-developers-Ubuntu-16.04-Evaluate-for-free-for-30-days
Next click accept for license agreement.
installation-PhpStorm-IDE-for-PHP-developers-Ubuntu-16.04-license
Now you can get phpstorm loading page.
installation-PhpStorm-IDE-for-PHP-developers-Ubuntu-16.04-loading-page
Set keymap scheme, IDE theme, and editor fonts. Then click OK
installation-PhpStorm-IDE-for-PHP-developers-Ubuntu-16.04-keymap-scheme-IDE-theme-editor-fonts
The “ welcome to phpstorm” page opens. Click “ create new project” .
installation-PhpStorm-IDE-for-PHP-developers-Ubuntu-16.04-create-new-project
Next set the project location and click “ create”
installation-PhpStorm-IDE-for-PHP-developers-Ubuntu-16.04-set-project-location

installation-PhpStorm-IDE-for-PHP-developers-Ubuntu-16.04-welcome-page
Double click the “ external libraries” in project tree and select “ php language level” . Finally click “ ok” .
installation-PhpStorm-IDE-for-PHP-developers-Ubuntu-16.04-php-language-level
Next select “ untitled” in project view panel. Right click it select “ new” and select “ php file” .
installation-PhpStorm-IDE-for-PHP-developers-Ubuntu-16.04-untitled-project
Enter a name for the Php file.
installation-PhpStorm-IDE-for-PHP-developers-Ubuntu-16.04-Php-file
Now php source code editing page will open. You can start creating your php project.
installation-PhpStorm-IDE-for-PHP-developers-Ubuntu-16.04-php-source-code-editing-page

Tags:
michael
Author: 

Comments ( 1 )

alhaj
hi pro how to activate phpstorm in ubuntu 14
Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What are all the php version supported for this application?

A

As of now owing to the current update the php version from 5.3/5.4/5.5/5.6/7.0. can be supported

Q

what java version is preferable for php storm?

A

Java 8 is advisable for php storm

Q

Is this platform dependent?

A

No it is platform independent and works on platform basis

Q

What is PhpStorm?

A

PhpStorm is IDEs (Integrated Development Environment) built on top of JetBrains IntelliJ platform and narrowed for web development.

Q

while running "./phpstorm.sh" I am getting permission denied status

A

Provide executable permission for the installer script

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luke ?
workbench for debian

I am using workbench in CentOS whereas now I need to use Debian Operating system so could you please help to install and use in Debian?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.