Local development environment
https://www.midcamp.org/sites/default/files/2018-03/Local%20Dev%20Environments%20for%20Dummies%20-%20MidCamp%202018.pdf
Xdebug intergration:
https://www.youtube.com/watch?v=SPgeXMSBQSM&t=2547s
Run => Edit configurations
Run => Web Server Debug Validation
Enable debugging session as follows
ngnix config file location: C:\Users\Public\Documents\Appsolute\MAMPPRO\conf
Avoid 404 issue in non index.php pages
After installing MAMP PRO and Drupal give
$uri $uri/ /index.php?$args
in try_files section in MAMP PRO.
This will solve 404 error in non index.php pages.
Curl issue:
If there are curl certificate issue then add this line in php.ini in according to your path.curl.cainfo = "C:/html/certificates/cacert.pem"
Ofcourse download cacert.pem from https://curl.se/docs/caextract.html
Command line PHP same as web php
1. copy C:\Users\Public\Documents\Appsolute\MAMPPRO\conf\php7.3.7.ini to C:\MAMP\bin\php\php7.3.7\
2. Rename php7.3.7.ini to php.ini
3. Dont restart Mamp (if restarted then do the step1, 2 again)
2. Rename php7.3.7.ini to php.ini
3. Dont restart Mamp (if restarted then do the step1, 2 again)
Xdebug in shivammathur/homebrew-php
Add the following lines in /usr/local/etc/php/<your_php_version>/php.ini
;xdebug
[xdebug]
zend_extension="xdebug.so"
xdebug.mode=debug
xdebug.client_port=9003
xdebug.idekey=PHPSTORM
Comments
Post a Comment