![]() ![]() RUN echo "zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini Creating the PHP containerįor creating the container, we will create a Dockerfile based on the official PHP image, in combination with Apache as web server and installing and enabling Xdebug. We will have to choose the PHP version (the same as the one running within the container), and the location for the project. PhpStorm initial configuration.īefore starting with the Docker container, we should first create the PhpStorm project, because for the container creation we will need the path to it.Ĭreating a project is as simple as opening PhpStorm and selecting “Create new project”. The most important option here is “Create desktop entry (integrate in system menu)”, for being able to start PhpStorm from the menu, instead of having to execute the script as made before. Choosing PhpStorm license.Īfter agreeing the terms of use of PhpStorm, the setup ends with the initial configuration screen. In the next screen, we must choose the “Evaluate for free” option (only just if we don’t have a license, of course). Importing (or not) settings from previous PhpStorm versions. ![]() The first thing is to select whether to import settings from previous PhpStorm versions or not, as shown in the image below. Unfortunately, PhpStorm is not free, but it comes with an evaluation key for a 30 day free trial.Īfter downloading the tar.gz file, the only thing we have to do is uncompress it, place the folder in the directory we want to have PhpStorm (e.g., in $HOME), and execute the bin/phpstorm.sh file. We can download PhpStorm from JetBrains official site. We can install Docker simply via apt-get, without the need of adding any repository, just installing the docker.io package: sudo apt-get updateįor more details, you can follow the Install Docker on Ubuntu Tutorial. Note: Docker requires a 64-bit system with a kernel version equal or higher to 3.10. You may skip environment installation and jump directly to the beginning of the tutorial below. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |