php5


Install PHP 5.6 on Debian Wheezy

To install PHP 5.6 on Wheezy, you can add this repo: echo "deb http://packages.dotdeb.org wheezy-php56 all" >> /etc/apt/sources.list.d/dotdeb.list echo "deb-src http://packages.dotdeb.org wheezy-php56 all" >> /etc/apt/sources.list.d/dotdeb.list Add the key: wget http://www.dotdeb.org/dotdeb.gpg -O- |apt-key add – And install PHP: apt-get update apt-get install php5-cli php5-fpm ….. (or whatever package you might need)  


Install PHP 5.5 on Debian Wheezy

To install PHP 5.5 on Wheezy, you can add this repo: echo "deb http://packages.dotdeb.org wheezy-php55 all" >> /etc/apt/sources.list.d/dotdeb.list echo "deb-src http://packages.dotdeb.org wheezy-php55 all" >> /etc/apt/sources.list.d/dotdeb.list Add the key: wget http://www.dotdeb.org/dotdeb.gpg -O- |apt-key add – And install PHP: apt-get update apt-get install php5-cli php5-fpm ….. (or whatever package you might need)  


Segmentation Fault using Zend Server with SSL and Curl

Using the apache module mod_ssl and the php extension curl may result in apache not running. Usually there's something like this in the logs: seg fault or similar nasty error detected in the parent process It took me quite a while to figure out how to get this working nevertheless, perhaps I can save someone else's time!! […]


Storing your PHP sessions using Memcached

Memcached is a high-performance, distributed memory object caching system. Many big well-known sites use it to store their PHP sessions in a centralized way and to reduce the load on their servers.   Installation with Apache2 and PHP5 on Debian:  Install these packages (if memcached is on a different server, omit the package): apt-get install memcached php5-memcached […]


Installing Nginx with PHP5-FPM on Debian

Install PHP5-FPM as described here. Install Nginx: apt-get install nginx Check for the correct path to the socket used by php5-fpm in /etc/php5/fpm/pool.d/www.conf (to be used in the nginx configuration): listen = /var/run/php5-fpm.sock Create a virtual host in /etc/nginx/sites-available/: server {         listen   80;          root /var/www;       […]


Installing php5-fpm on Debian

First of all, we get the server key: cd /tmp wget http://www.dotdeb.org/dotdeb.gpg cat dotdeb.gpg | apt-key add – Then we update the sources.list file so apt will find the packages: echo "deb http://packages.dotdeb.org squeeze all" >> /etc/apt/sources.list echo "deb-src http://packages.dotdeb.org squeeze all" >> /etc/apt/sources.list Or for Debian Wheezy: echo "deb http://packages.dotdeb.org wheezy all" >> /etc/apt/sources.list echo […]