![]() Open the "Settings" Ctrl + Alt + S and open "Directories". Open the "Settings" Ctrl + Alt + S and open Editor > Code Style > PHP,Ĭlick on the torque button and choose "Import Scheme."Īnd import the setting in /ide/phpStorm/Project.xml. The project to a different version than specified in the project config, and another on the Drupal support.Ĭlick on "Enable Drupal Support" and check all options in the following dialog: Once about phpStorm having set the php version for Once phpStorm has finished the whole import task, two messages will pop up. Please wait until the indexing has finished. NOTE: Since the project contains many libraries, phpStorm will take a couple of minutes (>10 minutes) to index all code. home/andreas/workspace/drupal-7-cdm-dataportal/ Start phpStorm and import the whole cdm-dataportal Drupal 7 project which is for example installed in Restart apache to apply the settings systemctl restart apache2 Note the xdebug.remote_port is set to 9000 to conform to the default in the phpStorm settings. You should add "zend_extension=/usr/lib/php/20151012/xdebug.so" to php.iniĪdd xdebug to the php.ini, e.g.: /etc/php/7.4/apache2/php.ini Use the xdebug.so installation location printed outįor xdebug2 zend_extension=/usr/lib/php/20151012/xdebug.soįor xdebug3 zend_extension=/usr/lib/php/20190902/xdebug.so Install ok: channel:///xdebug-2.6.0Ĭonfiguration option "php_ini" is not set to php.ini location If the error message "phpize: not found" install php7.4-dev sudo apt install php7.4-devĪt the end of the install-log, pecl shows something like (this is missing when installing with apt-get): Build process completed successfully ![]() The installation with pecl does not work with ubuntu 22.4 and php 7.4, but xdebug can be installed with apt-get as well, but there is no help with configuration at the end of the installation process. In case you have problems to get your dataportal site running please read the hints in the On migrating Data Portal sites between servers Once you have completed the installation, you might have created a new dataportal site to start with, or you have clonedĪ site according to the instructions in developer wiki page scripts/admin/fix-permissions.sh -admin-user $USER -web-user www-data If this is not set correctly, you will be bothered with problems, for example when validating the Xdebug setup below. You also need to set the file permission so that apache and phpStorm can access and write files. DocumentRoot /home/andreas/workspace/drupal-7-cdm-dataportal/webĪliasMatch ^/(+)(.*) /home/andreas/workspace/drupal-7-cdm-dataportal/web/$2 You will need to change three lines int the apache config file to. etc/apache2/sites-available/ to adapt it to the different installation folder, and you also need to enable theĪliasMatch directive to be able to work with multiple sites in parallel:Īssuming your user-name is andreas and you have installed the cdm-dataportal Drupal 7 project in /home/andreas/workspace/ In the chapter Apache2 configuration you will need to change the Now, you will of course need to replace all cd /var/www commands by cd ~/workspace !!! Apache configuration ¶ and continue in the Datportal_Development_Requirements at the corresponding position. You could, for example, replace the commands given in theĭownload & extract chapter by: mkdir -p ~/workspace Than suggested in the Dataportal Development Introduction. Update - method 1, but respect the below recommended 1 deviations: Getting dataportal source code ¶įor development you may want to choose different folder for installing the cdm-dataportal Drupal 7 project, The installation method for development environment differs in some details.įollow the instructions in the Datportal_Development_Requirements and make sure you are using the NOTE: Before starting with the installation, it is highly recommended that you read this chapter to the end. Installing the drupal cdm_dataportal package ¶ Setup for developing and running PHPUnit tests.Installing the drupal cdm_dataportal package.Development of the EDIT Data Portal with phpStorm.Mainly information on setting up the development environment for working with phpStorm. Development of the EDIT Data Portal with phpStorm ¶
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |