Step 1 :
Open your terminal and type following commands to install php CLI and CGI.
PHP CLI - Command-Line Interface for PHP (Ex: For creating standalone applications)
PHP CGI - Common Gateway Interface for PHP (Ex: For web applications)
sudo apt-get install php7.0-cli or sudo apt-get install php5-cli (According to your PHP version)
sudo apt-get install php7.0-cgi or sudo apt-get install php5-cgi (According to your PHP version)
sudo apt-get install php-xdebug (Providing debugging and profiling capabilities)
Step 2 :
Open PhpStorm and go to File > Settings > Languages & Framework > PHP.
- Select your PHP language level
- Select your CLI interpreter. Currently you will have "no interpreter" in that part. Normally after you installed cli, it is in the usr/bin folder as php. Select it.
- In the below dialog box, press + mark in left side and include your cli path. Final preview is given below.
- Click Apply and then click Ok.
Now you are done with configuring PhpStorm!
How to configure PhpStorm to run php files in Ubuntu
Reviewed by DAL
on
July 04, 2017
Rating:
No comments: