»

Installing PHP5 Twig Extension

Log — Tags: , , — Posted by Starck on April 17, 2014

Environment: Ubuntu

The PHP5 source needed for compiling additional modules

sudo apt-get install gcc php5-dev

Compiling Twig Source Code

Installation

PHP5

vim /etc/php5/conf.d/twig.ini

PHP5-FPM

vim /etc/php5/fpm/conf.d/twig.ini

Add the following to your twig.ini file

Restarting

PHP5

sudo service apache2 restart

PHP5-FPM

sudo service php5-fpm restart

Nginx with Apache + FastCGI + PHP-FPM

Coding — Tags: , , , — Posted by Starck on January 10, 2014


Install Apache2 + FastCGI + PHP-FPM

Apache Settings

/etc/apache2/sites-availabe/test.server.com.conf:

/etc/apache2/ports.conf:

Install Nginx

sudo apt-get install nginx

/etc/nginx/sites-available/test:

sudo ln -s /etc/nginx/sites-available/test /etc/nginx/sites-enabled/test

sudo rm /etc/nginx/sites-enabled/default

Restart Server

sudo service nginx restart

sudo service apache2 restart

sudo service php5-fpm restart

Install Mod-FastCGI and PHP5-FPM on Ubuntu

Log — Tags: , , , , — Posted by Starck on August 22, 2013

Installation

Configuration

edit /etc/apache2/mods-enabled/fastcgi.conf:

Restart Apache2 and PHP5-FPM

— Updated 2014-01-09 (Ubuntu 13.10)–

mkdir /var/www/cgi-bin

touch /var/www/cgi-bin/php5.fcgi

chown -R www-data:www-data /var/www/cgi-bin

edit /etc/apache2/mods-enabled/fastcgi.conf:

Virtual host setting example :

References

Continue Reading

Nginx with Apache + FastCGI + PHP-FPM

(c) 2024 Starck Lin | powered by WordPress