Hi, on this post I'll go step by step into the process on how to configure Apache Solr for Drupal 10 so your sites can have a robust search engine based on indexes specially targeted for big sites that handle tons of data. Also, the Ubuntu version I'll be running is 22.04 since it's the release that has PHP 8 required by Drupal 10, you can see how to configure Drupal 10 under Ubuntu 22.04 on this link.Apache Solr is a Java application that works as a search engine based on indexes, pieces of data that can by queried super fast providing search results in a very optimal, reliable and again…
Read more
Hi, on this blog post I'll will try to show you how to set up a Drupal development environment under VirtualBox which is a virtualization tool that allows us to create Virtual Machines or in our case Virtual Private Servers (VPS).I'm writing this post so developers can have a different alternative to the current dockerized solutions such as Lando, Docksal or DDEV since I have found, during the time these tools are out, developers struggling a lot with their configuration, performance and set up of Drupal projects. Even though I agree they can save us sometime with some processes once a…
Read more
Yes, this topic might sound weird since migrating from Drupal 8 to Drupal 9 should be effortless, meaning is just a change of code base and voila! But what if your client is not happy with their current D8 site or making changes to and existing D8 site to improve performance can turn into a nightmare? or just as simple as Drupal 8 will drop support in less than a year and you want a better site structure when moving to Drupal 9 with the latest of the latest.Fortunately, we still have the Migrate API available in Drupal 9 core and all the support modules that are available for migrating from…
Read more
On this post, I'll be explaining as granular as possible how to configure an Ubuntu Server so you can run Drupal 7 or Drupal 8 or Drupal 9 sites or any PHP application on your local environment for development. We'll be using Ubuntu 18.04 which is the latest release until the date of this post and the php/apache packages provided by the distro and it will provide PHP 7.2 packages that are recommended for Drupal development.This post is targeted for Apache Server only, which i think is the most robust web server for Drupal but overall the best option to run PHP applications natively. You can…
Read more
On a previous post I already explained briefly what Varnish is and the advantages of running it along with Pound to get an amazing caching architecture under HTTPS for Drupal. On this tutorial I'll upgrade the steps so we can run both, Drupal 7 and Drupal 8 sites with Varnish 4.x which at the time of this post, is the latest supported by Drupal 8. Also, the Ubuntu version used is 16.04 which is the latest LTS release from the Ubuntu guys.Alright, let's begin by getting the required packages. First, we need to get Pound, a version superior to 2.7 which…
Read more
Development and put on production of Drupal 8 sites is moving really fast, and demanding sites are always going to require strong search engines to quickly process thousands of search requests to their sites. On this tutorial I'm going to show you how to install an Apache Solr server to index any Drupal 8 data for fast search queries and results. Drupal 7 sites will also benefit of this since we are taking advantage of the Search API and Search API Solr modules integration.Drupal 8 requires a minimum version of Solr 4.x so for this tutorial we'll be using 4.5.1, we'll be…
Read more
On this post I'll show you how to run Drupal 8 or any PHP application using Apache HTTP Server with mod_event enabled and PHP 7-FPMFirst we need to get the required PHP and Apache packages from the Ubuntu repository:$sudo apt-get install php7.0-fpm apache2 libapache2-mod-fastcgithen we need to disable the worker that's enabled by default and switch to mpm_event:$sudo a2dismod mpm_worker
$sudo a2enmod mpm_eventNow that we have enabled the event module, let's activate some required extra apache modules needed to run our apps like Drupal:$sudo a2enmod alias rewrite fastcgi expires headers… Read more
$sudo a2enmod mpm_eventNow that we have enabled the event module, let's activate some required extra apache modules needed to run our apps like Drupal:$sudo a2enmod alias rewrite fastcgi expires headers… Read more
Quick install Composer library manager on Ubuntu 16.04 to handle Drupal 8 libraries.First, get Composer:$cd ~
$sudo apt-get install curl
$sudo curl -s https://getcomposer.org/installer | phpmake Composer available globally:$sudo mv composer.phar /usr/local/bin/composerand you are done! You should get a similar output as in the next screenshot: Read more
$sudo apt-get install curl
$sudo curl -s https://getcomposer.org/installer | phpmake Composer available globally:$sudo mv composer.phar /usr/local/bin/composerand you are done! You should get a similar output as in the next screenshot: Read more
Update: I have updated this tutorial to a latest release of Varnish, read here.
By default, Varnish does not work and it will never work with HTTPS requests it only understands plain HTTP. This means, that on mixed content websites, sites serving HTTPS and HTTP pages, the secure pages won't be or cannot be cached on Varnish reducing the load time compared to the non-secure version of the page for example.
There are many sites that offer lots of static content through HTTPS that can definitely be cached using Varnish and in order to do so we need to implement an extra layer before any… Read more
By default, Varnish does not work and it will never work with HTTPS requests it only understands plain HTTP. This means, that on mixed content websites, sites serving HTTPS and HTTP pages, the secure pages won't be or cannot be cached on Varnish reducing the load time compared to the non-secure version of the page for example.
There are many sites that offer lots of static content through HTTPS that can definitely be cached using Varnish and in order to do so we need to implement an extra layer before any… Read more
Another good option to run Drupal sites nowadays is Nginx. Nginx is a Proxy/Web Server not as complex as Apache and is well known for is security, responsiveness and speed when handling PHP apps together with PHP-FMP. On this this post I will introduce you on how to manually install and run Nginx and PHP-FPM so you can host any Drupal site with SSL support.
Recommended posts:
The suggested installation instructions by drupal.org: https://www.drupal.org/node/2310819
Perusio Nginx suggested Drupal Configuration https://github.com/perusio/drupal-with-nginx/tree/D7#installation
… Read more
Recommended posts:
The suggested installation instructions by drupal.org: https://www.drupal.org/node/2310819
Perusio Nginx suggested Drupal Configuration https://github.com/perusio/drupal-with-nginx/tree/D7#installation
… Read more