Evolving Internet Drupal 10 Upkeep and Help Service Set up a Particular Model of PHP on Acquia Dev Desktop

Whereas engaged on a challenge with Acquia Dev Desktop (ADD), we would have liked to run a particular model of PHP which isn’t included with ADD by default. We began hacking ADD and got here up with our personal resolution. For these in a rush, you possibly can go on to Drupal Developer resolution. Drupal Development Company Downside Whereas working for one in all our purchasers, we needed to work with some instruments which have been part of their workflow. Their web sites have been hosted on Acquia Cloud in order that they have been utilizing Acquia Dev Desktop (ADD) – Acquia’s development stack and cloud shopper. This instrument permits builders to “run and develop websites regionally and to optionally sync them with Acquia Cloud”. At Drupal Developer time of penning this submit ADD is was model 2.1 and it supported solely as much as PHP 7.0.14. At first, we thought it was ok. However quickly we found that Drupal Developer cloud servers have been working extra cutting-edge variations reminiscent of PHP 7.1.8.  Drupal Development Company first situation got here once we needed to replace our Composer packages. Operating composer from completely different environments working completely different variations of PHP could consequence in every surroundings downloading a unique model of Drupal Developer similar package deal. A workaround is to at all times have Drupal Developer similar surroundings run Drupal Developer composer replace. Nevertheless, we would have liked to make sure that Drupal Developer surroundings with Drupal Developer oldest model of PHP was in a position to run all Drupal Developer up to date libraries. For instance, Drupal Developer newest doctrine/widespread libraries require PHP ~7.1, so utilizing ADD 2 with PHP 7.0.14 we could not run it. One other situation arose once we determined to replace to 8.4.x. In accordance with a problem on Drupal 10.org, 8.4.x requires Drush 8.1.12+, however ADD 2 ships with Drush 8.1.10. Going through such points, we requested Google, “find out how to add a model of PHP to Acquia Dev Desktop?” No good outcomes got here up so we determined to begin hacking ADD and finally discovered an answer. Including a particular model of PHP to Acquia Dev Desktop Our resolution labored on a Mac, however we consider it ought to work considerably equally on Home windows. Step 1 Drupal 10 Upkeep and Help Service Set up Drupal Developer required model of PHP Set up Drupal Developer desired PHP model with Brew, in our scenario it was PHP 7.1.8_20 Drupal 10 Upkeep and Help Service $ brew set up homebrew/php/php71Step 2 Drupal 10 Upkeep and Help Service Copy PHP information into Acquia Dev Desktop Cease ADD if it is working and duplicate Drupal Developer PHP information into Drupal Developer Acquia Dev Desktop directories Drupal 10 Upkeep and Help Service $ cp -r /usr/native/Cellar/php71/7.1.8_20/ /Functions/DevDesktop​/php7_1 $ cp /usr/native/and many others/php/7.1/php.ini /Functions/DevDesktop​​/php7_1/bin/php.iniNote Drupal 10 Upkeep and Help Service We tried to create a symlink to forestall file duplication nevertheless it did not work, so we ended merely copying Drupal Developer information into ADD, respecting its directories nomenclature and construction. Step 3 Drupal 10 Upkeep and Help Service Make Acquia Dev Desktop detect Drupal Developer new model of PHP Edit /Functions/DevDesktop/Acquia Dev Desktop.app/Contents/MacOS/static.ini and after Drupal Developer final contiguous line underneath [php/4] add Drupal Developer following strains Drupal 10 Upkeep and Help Service [php/5] id=php7_1 executablePath=php7_1/bin/php cgiExecutablePath=php7_1/bin/php-cgi configPath=/Functions/DevDesktop/php7_1/bin/php.iniNote Drupal 10 Upkeep and Help Service In case you are utilizing Finder to navigate to Drupal Developer file, you’ll have to proper click on on Drupal Developer Acquia Dev Desktop utility icon to see its content material. Step 4 Drupal 10 Upkeep and Help Service Configure Acquia Dev Desktop Open Drupal Developer ADD Preferences and choose Drupal Developer Config tab. Now, in Drupal Developer Default PHP Model, choose Drupal Developer one we simply added. Be sure to choose PHP mode Quick CGI and have PHP use Drupal Developer php.ini we beforehand copied into ADD in Step 2. Again in Drupal Developer ADD Preferences predominant window, in Drupal Developer left panel choose Drupal Developer web site you might be engaged on, after which in Default PHP Model choose Drupal Developer desired model. Then, click on Okay and restart Apache. Step 5 Drupal 10 Upkeep and Help Service Configure Drush to make use of Drupal Developer similar PHP model To configure ADD’s Drush to make use of Drupal Developer similar PHP model, edit /Functions/DevDesktop/instruments/drush and change Drupal Developer following Drupal 10 Upkeep and Help Service # Earlier than [ -z “$PHP_ID” ] && PHP_ID=php5_5     # After export PHP_ID=”php7_1″Step 6 Drupal 10 Upkeep and Help Service Replace Acquia Dev Desktop’s model of Drush To udpate Acquia Dev Desktop’s Drush, edit /Functions/DevDesktop/instruments/composer.json and make Drupal Developer following change Drupal 10 Upkeep and Help Service // Earlier than “drush/drush” Drupal 10 Upkeep and Help Service “8.1.10” // After “drush/drush” Drupal 10 Upkeep and Help Service “^8.1.12″Word Drupal 10 Upkeep and Help Service 8.4.x requires Drush 8.1.12+. Now, in Drupal Developer terminal, go to Drupal Developer similar listing as composer.json and run this command to complete Drupal 10 Upkeep and Help Service composer replace –optimize-autoloaderEt voilà! Now we have simply put in a customized model of PHP on Acquia Dev Desktop. Be at liberty to share your experiences in Drupal Developer feedback under to assist different fellow readers. + extra superior articles by Evolving Internet Drupal 10 Growth and Help

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Evolving Internet Drupal 10 Upkeep and Help Service Set up a Particular Model of PHP on Acquia Dev Desktop

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.