Blogs
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-FPM
First we need to get the required PHP and Apache packages from the Ubuntu repository:
$sudo apt-get install php7.0-fpm apache2 libapache2-mod-fastcgi
then we need to disable the worker that's enabled by default and switch to mpm_event:
$sudo a2dismod mpm_worker
$sudo a2enmod mpm_event
Now 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 remoteip ssl actions
We need to create a config file for PHP-FPM so apache is aware of how to treat it:
$sudo nano /etc/apache2/conf-available/php-fpm.conf
…
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 | php
make Composer available globally:
$sudo mv composer.phar /usr/local/bin/composer
and you are done! You should get a similar output as in the next screenshot:

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 order to create the certificates for an specific domain/website.
In order to install Certbot on your server, follow the next steps: (make sure you have "git" installed on…
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 random string ("private key") that uniquely identifies your server.
- server.csr: This is a "Certificate Signing Request" file. You can…
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
;;
esac
exit 0
2) Give the script executable permission
$sudo chmod +x /etc/init.d/MyScriptName
3) Tell script to run at startup. This tells the script be the first to shutdown and the last to…
Read more...