Add the following lines in the default Apache virtual host configuration file at installdir/apache2/conf/bitnami/bitnami.conf, inside the default VirtualHost directive, so that it looks like this:
Replace the installdir placeholder with the full installation directory for your Bitnami stack.
【LAMP-memcached】Here's a list of the steps for anyone who's looking
cd /tmp
wget https://bitnami.com/redirect/to/554776/bitnami-memcached-1.5.16-0-linux-x64-installer.run
chmod 755 bitnami-memcached-1.5.16-0-linux-x64-installer.run
sudo ./bitnami-memcached-1.5.16-0-linux-x64-installer.run
#install to: /opt/bitnami/memcached
sudo yum update -y
sudo yum install build-essential libtool autoconf unzip wget git -y
wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
tar -zxf libmemcached-1.0.18.tar.gz
cd libmemcached-1.0.18/
./configure --prefix=/opt/bitnami/common
make
sudo make install
export PHP_AUTOCONF=/usr/bin/autoconf
export PHP_PREFIX=/opt/bitnami/php
cd ~/
git clone https://github.com/php-memcached-dev/php-memcached.git
cd php-memcached
git checkout master
/opt/bitnami/php/bin/phpize
./configure --enable-memcached --with-zlib-dir=/opt/bitnami/common --with-libmemcached-dir=/opt/bitnami/common --with-php-config=/opt/bitnami/php/bin/php-config --disable-memcached-sasl
make
sudo make install
echo 'extension=memcached.so' | sudo tee -a /opt/bitnami/php/etc/php.ini
sudo /opt/bitnami/memcached/ctlscript.sh start memcached
sudo /opt/bitnami/ctlscript.sh restart apache
sudo /opt/bitnami/memcached/ctlscript.sh status memcached
Got it:
sudo nano /opt/bitnami/ctlscript.sh
and edit MEMCACHED_SCRIPT like so,
MEMCACHED_SCRIPT=$INSTALLDIR/memcached/ctlscript.sh
Redis
wget https://pecl.php.net/get/redis
tar -zxvf redis
cd redis-5*
/opt/bitnami/php/bin/phpize
./configure --with-php-config=/opt/bitnami/php/bin/php-config
make
sudo make install
echo 'extension=redis.so' | sudo tee -a /opt/bitnami/php/etc/php.ini
sudo /opt/bitnami/ctlscript.sh restart apache
APCu
wget https://pecl.php.net/get/apcu
tar -zxvf apcu
cd apcu-5*
/opt/bitnami/php/bin/phpize
./configure --with-php-config=/opt/bitnami/php/bin/php-config
make
sudo make install
echo 'extension = apcu.so' | sudo tee -a /opt/bitnami/php/etc/php.ini
sudo /opt/bitnami/ctlscript.sh restart apache
EAccelerator
wget https://github.com/downloads/eaccelerator/eaccelerator/eaccelerator-0.9.6.1.zip
unzip eaccelerator-0.9.6.1.zip
export PHP_AUTOCONF=/usr/bin/autoconf
export PHP_PREFIX=/opt/bitnami/php
cd eaccelerator-0.9.6.1
/opt/bitnami/php/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
make
sudo make install
echo 'extension=eaccelerator.so' | sudo tee -a /opt/bitnami/php/etc/php.ini
sudo /opt/bitnami/ctlscript.sh restart apache
wget https://pecl.php.net/get/uploadprogress-1.0.3.1.tgz
tar xzf uploadprogress-1.0.3.1.tgz
cd uploadprogress-1.0.3.1
/opt/bitnami/php/bin/phpize
./configure --with-php-config=/opt/bitnami/php/bin/php-config
make
sudo make install
echo 'extension = apcu.so' | sudo tee -a /opt/bitnami/php/etc/php.ini
sudo /opt/bitnami/ctlscript.sh restart apache
Add the following lines in the default Apache virtual host configuration file at installdir/apache2/conf/bitnami/bitnami.conf, inside the default VirtualHost directive, so that it looks like this:
Replace the installdir placeholder with the full installation directory for your Bitnami stack.
【LAMP-memcached】Here's a list of the steps for anyone who's looking
Got it:
Redis
APCu
EAccelerator
Varnish
uploadprogress