Satisfying Server Requirements of Common Drupal 7 Modules
Written by Mark Chambers onThese instructions were tested under Ubuntu 14.04.5 LTS using PHP 5.6.
If you’re wondering how to upgrade to PHP 5.6 on Ubuntu 14.04.5 then read Step 2 of this article.
Advanced CSS/JS Aggregator
AdvAgg requires Apache’s mod_headers
and mod_expires
to be enabled. The following commands will accomplish that.
In a terminal run:
sudo a2enmod headers
sudo a2enmod expires
sudo service apache2 restart
That’s it!
Installing PECL
PECL is a repository for PHP extensions, some of which may be required by your Drupal modules. Simply run:
sudo apt-get -y install php5.6-dev make
Done. Now you’re ready to install PECL extensions.
Installing PECL uploadprogress
for Drupal Core
Open a terminal and run the following commands:
1: Install the library
sudo pecl install uploadprogress
2: Add to PHP
Create an .ini
file:
sudo vi /etc/php/5.6/mods-available/uploadprogress.ini
Add the following text:
extension=uploadprogress.so
Then run:
sudo phpenmod uploadprogress
3: Restart Apache
sudo service apache2 restart
Done.
Installing PECL runkit
for Extended Path Aliases
This library is required to use the advanced features of Extended Path Alias.
Open a terminal and run the following commands:
1: Install the library
sudo pecl install runkit
2: Add to PHP
Create an .ini
file:
sudo vi /etc/php/5.6/mods-available/runkit.ini
Add the following text:
extension=runkit.so
Then run:
sudo phpenmod runkit
3: Restart Apache
sudo service apache2 restart
Done.
Removing PECL, but not its libraries
Remove the dev package
sudo apt-get remove php5.6-dev
Clean up the dependencies
sudo apt-get autoremove
Done.