First, install the JDK
Because Phpstorm is a Java program, first we need to install Oracle Java on Ubuntu, the latest stable version is Oracle Java 8. We will install it through the PPA.
1. Remove OpenJDK (if previously installed)
sudo apt-get remove openjdk *
2. Add the PPA and install Oracle Java 8 using the following 3 commands.
sudo add-apt-repository ppa:webupd8team/javasudo apt-get updatesudo apt-get install oracle-java8-installer
3. Setting the Java environment variable
sudo apt-get install oracle-java8-set-defaultsource /etc/profile
Second, installation Phpstorm
1, first go to jetbrains official website Download Phpstorm tar package. If you like the command line, you can download it using wget. The latest version is 2016.1.2 at the time of writing this article. If you later read this version number, you may need to change the version number.
wget https://download-cf.jetbrains.com/webide/PhpStorm-2016.1.2.tar.gz
2. After the download is complete, open the Terminal window and change your working directory to download directory, then unzip the. tar.gz file using the following command:
tar zxvf PhpStorm-2016.1.2.tar.gz
3. A new folder named PhpStorm-145.1616.3 will be created in the current working directory. It is a good idea to move this PhpStorm-145.1616.3 directory to/OPT.
sudo mv PhpStorm-145.1616.3/ /opt/phpstorm/
4. Create a soft link
sudo ln -s /opt/phpstorm/bin/phpstorm.sh /usr/local/bin/phpstorm
5. Start the application by typing Phpstorm in the terminal
phpstorm
If you are new to Phpstorm, please select the second option and click the OK button.
Read and agree to the privacy policy.
If you are not yet ready to purchase a license to use Phpstorm, you can choose the 30-day free trial version.
Accept the license agreement.
In the next window, select the theme, color, font, and then click the OK button.
Next, you need to enter a password to create a startup script and a desktop entry.
When you are finished, you can start a new project in Phpstorm.
Next time, you can start phpstorm from Unity Dash.
Attention:
When you select a project directory, if there is a lock on it, the project cannot be created. The directory needs to be set to the owner and owner group.
-R gongsc:gongsc www //递归设置目录www 属主和属组为gongsc(自己的登录用户)
Third, uninstall
If for any reason you want to uninstall Phpstorm, simply delete the/opt/phpstorm/directory and all of its subdirectories and files.
sudo rm / opt / phpstorm / -R
Iv. Chinese
Phpstorm Chinese Package
If there is garbled, the first to remove the Chinese package in accordance with the following set phpstorm and then put the Chinese package into. \lib Directory
Appearance&behavior, appearance, Settings, File----Select override default fonts by (not recommended)
Name:microsoft Yahei (select any Chinese font)
V. Activation
Phpstorm Activating a link address
Six, landscaping
1. Modify the file type icon
To modify the Phpstorm default file type icon:
Open Preferences>plugin, click Browse repositories and search Material Theme UI
Original: http://blog.csdn.net/mrgong_/article/details/77200225
Ubuntu installation phpstorm+ + activation