I'm trying to set up nginx with PHP5 and MySQL on my production VPS. The reason I chose nginx over Apache was because the VPS isn't high spec.
nginx is installed, and is successfully serving static pages like it should.
Did anybody successfully configured mod_cache in apache 2.4 with php-fpm and fastcgi?
my cgi config:
<IfModule mod_fastcgi.c>
Alias /php5.fastcgi /var/www/fastcgi/php5.fastcgi
AddHandler php-script .php
FastCGIExternalServer /var/www/fastcgi/php5.fastcgi -socket /mnt/tmp/fast/php-fpm.sock -idle-timeout 1600 -pass-header Authorization
Action php-script /php5.
I have PHP5-CGI installed, Apache, and MYSQL installed. Prior to adding these settings, PHP5-CGI would endlessly have >15 processes, each eating up 5 mb of ram. So I added these settings to /etc/apache2/conf.d/php5-fcgid.conf and the PHP5-cgi processes were limited.
I have a strange problem with Ansible that I use to install / update / manage my webservers.
I have an installation script that is supposed to make sure that I always have the latest PHP5 module in my Debian 6 / Apache 2 system:
- name: install apache2 and php5
action: apt pkg=$item state=latest
with_items:
- apache2
- php5
- libapache2-mod-php5
- php5-curl
I'm running OSX Lion (posted here because this is a Unix-specific question), and am trying to deploy a Pinax project via FCGI. I have the FastCGI daemon running:
$ ps wwaux | grep fcgi
jonathan 522 0.0 0.2 2480420 4216 ??
im running mono 3.0 via fastcgi...
my htaccess is like this:
Action mono-cgi /home/vamola/public_html/cgi-bin/mono-cgi
AddHandler mono-cgi .aspx .asmx .ashx .ascx .asax .axd .config .cs
mono-cgi:
#!/opt/mono-3.0.2/bin/fastcgi-mono-server4 -f
-connect /tmp/mono-fcgi.sock /home/admin/mono-fcgi
mono-fcgi:
!/
bin/sh
umask 0077
exec >>/tmp/mono-fcgi.log
exec 2>>/tmp/mono-fcgi.err
Installing Lighttpd With PHP5 (PHP-FPM) And MySQL Support On Ubuntu 12.10
Lighttpd is a secure, fast, standards-compliant web server designed
for speed-critical environments. This tutorial shows how you can install
Lighttpd on an Ubuntu 12.10 server with PHP5 support (through PHP-FPM)
and MySQL support.
Installing Lighttpd With PHP5 (PHP-FPM) And MySQL Support On OpenSUSE 12.2
Lighttpd is a secure, fast, standards-compliant web server designed
for speed-critical environments. This tutorial shows how you can install
Lighttpd on an OpenSUSE 12.2 server with PHP5 support (through PHP-FPM)
and MySQL support.
Installing Lighttpd With PHP5 (PHP-FPM) And MySQL Support On Fedora 17
Lighttpd is a secure, fast, standards-compliant web server designed
for speed-critical environments. This tutorial shows how you can install
Lighttpd on a Fedora 17 server with PHP5 support (through PHP-FPM) and
MySQL support.