Welcome! Log In Create A New Profile

Advanced

Minimal Debian Wheezy Setup Using Stock Packages

Posted by Brad Chesney 
Brad Chesney
Minimal Debian Wheezy Setup Using Stock Packages
January 26, 2013 02:02PM
You will need all the official repos for the packages specified. But a
working super basic Debian Wheezy system can be running fpm relatively easy.

It took a while to get to this point because there is a lot of information
out there that does not work.
Most of this stuff should apply to the associated Ubuntu systems that will
be based on Debian Wheezy.

And without delay:

apt-get install libapache2-mod-fastcgi apache2-mpm-worker php5-fpm

a2enmod actions

vi /etc/apache2/mods-available/fastcgi.conf
FastCgiIpcDir /var/lib/apache2/fastcgi
AddHandler php5-fcgi .php
Action php5-fcgi /fcgi-bin

vi /etc/apache2/sites-available/default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<Directory /fcgi-bin/>
Order allow,deny
Allow from all
</Directory>
FastCgiExternalServer /tmp/imaginary-file -socket /var/www/default.sock
-user www-data -group www-data
Alias /fcgi-bin /tmp/imaginary-file
LogLevel warn
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
</VirtualHost>

vi /etc/php5/fpm/pool.d/www.conf
[www]
user = www-data
group = www-data
listen = /var/www/default.sock
pm = ondemand
pm.max_children = 5
pm.process_idle_timeout = 10s;
pm.max_requests = 500

chown www-data:www-data /var/log/apache2/*.log
chown -R www-data:www-data /var/www
service php5-fpm restart
service apache2 restart

https://gist.github.com/4642771

--
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 295
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready