Posts

Showing posts from January, 2022

PHP Ngnix Mysql in OSX with multiple PHP Versions

 https://kevdees.com/macos-11-big-sur-nginx-setup-multiple-php-versions/ https://github.com/shivammathur/homebrew-php == Upgrade PHP version from 8.2 to 8.3 1. Take the backup of PHP 8.2 ini file from /usr/local/etc/php/8.2/php.ini /usr/local/etc/php/php.ini 2. Remove PHP 8.2 brew uninstall shivammathur/php/php@8.1 3. Install PHP 8.3 # Add the PHP and PHP Extension taps brew tap shivammathur/php brew tap shivammathur/extensions # Install PHP 8.3 brew install shivammathur/php/php@8.3 # Link PHP 8.3 CLI executable as `php` brew link --overwrite --force shivammathur/php/php@8.3 # Test installation php -v 4. Restart sudo killall php-fpm sudo service php-fpm restart 5. Edit config file vim /usr/local/etc/php/8.3/php-fpm.d/www.conf # default user = _www group = _www listen = 127.0.0.1:9000 # change to user = <your_username> group = staff listen = 127.0.0.1:9074 brew services restart php@8.3 Other tools Xdebug in shivammathur/homebrew-php brew install shivammathur/extensions/xdebug@...

Online semver checker - Useful while using composer

 https://jubianchi.github.io/semver-check/#/

Redirect issue with the URL alias in D8/D9

 Sometimes the redirect from a node to the destination might not work. It might not work because of the URL alias of the source node. The solution is to delete the URL alias of the source node. Then the redirect will work. https://www.drupal.org/project/redirect/issues/2821158 Example: node/11 exists without URL alias. Create a redirect from /hello to sitey.com => redirect works Add a URL alias to node/11 as /hello Now check the redirect from /hello to sitey.com => Don't work Delete the URL alias of the node/11 => now the redirect works.