🧔 Hello World

My name is Emil. I am a programmer, passionate by coding, music, video and photography

Using PHPStorm Built-in Webserver with PHP CLI in Ubuntu

It could be as scenario that you need to create some static pages and later to ad some script code and test this quickly.
Using the Built-in Webserver in PhpStorm and PHP7 brings great flow and results in did. The requirements are PHP7 installation and configuration in PHPStorm.





First step will be php installation:



sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql php7.0-intl php7.0-cgi -y


Second step is to set the Language in Storm like:



Go to > Set Lang & Frameworks
Select php7
Add path to php as: /include path "/usr/share/php"


By now you have to be able to see your php page like:


http://localhost:63342/


More info here:
https://confluence.jetbrains.com/display/PhpStorm/Using+the+Built-in+Webserver+in+PhpStorm

Thanks for reading!