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
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
Usually in the enterprise world RAID systems are the most popular and used infrastructures when it comes to data backup and data synchronization but NAS (Network Attached Storage) devices can really improve these processes on small and mid-businesses due to the reduce costs in its implementation and since they are fast and reliable solutions.On this quick tutorial I'm gonna show you how to backup a directory hosted on an Ubuntu Server and transfer the data to a Network Shared Folder hosted on a NAS. I'm assuming you already have a NAS storage up and running on your local…
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
On this tutorial I will show you how to configure your Pound proxy server so it can take advantage of the awesome SSL service provided by Let's Encrypt.
Let's Encrypt is an open-source certificate authority that issues SSL certificates for free making use of the ACME protocol, making possible to obtain trusted certificates for your websites and operate under HTTPS:// with no browser warnings and securing your content of course.
The services also provides a command line tool called Certbot, that can be easily installed on any Linux OS and it will help creating the necessary steps in… Read more
Let's Encrypt is an open-source certificate authority that issues SSL certificates for free making use of the ACME protocol, making possible to obtain trusted certificates for your websites and operate under HTTPS:// with no browser warnings and securing your content of course.
The services also provides a command line tool called Certbot, that can be easily installed on any Linux OS and it will help creating the necessary steps in… Read more
This is a super quick guide to add certificate files to a Pound proxy, very useful when using it in environments with Varnish servers. This configuration was tested on Ubuntu 14.04 and Ubuntu 16.04
Follow the next steps that I took as sample from this site to configure Pound with a self-signed certificate, make sure to run all commands as root:
$ sudo su
Pound HTTPS Configuration
The following steps will guide you through the generation of a self-signed certificate for your test project server.
During the process you will create:
- server.key: This is a 1024 bit… Read more
Follow the next steps that I took as sample from this site to configure Pound with a self-signed certificate, make sure to run all commands as root:
$ sudo su
Pound HTTPS Configuration
The following steps will guide you through the generation of a self-signed certificate for your test project server.
During the process you will create:
- server.key: This is a 1024 bit… Read more
Run a script when the system starts up or reboots on Ubuntu.
1) Create script, on this example I'm starting the gluu-server service as the root user
$sudo nano /etc/init.d/MyScriptName
Copy/paste the following script, update accordingly:
#! /bin/sh
# /etc/init.d/MyScriptName
#
case "$1" in
start)
echo "Attempting to Start Gluu Server..."
sudo -H -b service gluu-server start
;;
stop)
echo "Attempting to Stop Gluu Server..."
sudo -H service gluu-server stop
;;
*)
echo "Usage: /etc/init.d/MyScriptName {start|stop}"
exit 1… Read more
1) Create script, on this example I'm starting the gluu-server service as the root user
$sudo nano /etc/init.d/MyScriptName
Copy/paste the following script, update accordingly:
#! /bin/sh
# /etc/init.d/MyScriptName
#
case "$1" in
start)
echo "Attempting to Start Gluu Server..."
sudo -H -b service gluu-server start
;;
stop)
echo "Attempting to Stop Gluu Server..."
sudo -H service gluu-server stop
;;
*)
echo "Usage: /etc/init.d/MyScriptName {start|stop}"
exit 1… Read more