By public98068
I am trying to setup PHP-FPM on my Ubuntu 12.10 server, but I just cannot seem to get the scripts to execute. I am following instructions as per this tutorial.
I have placed this in /etc/apache2/sites-available/default and restarted Apache via sudo service apache2 restart to no avail.
<IfModule mod_fastcgi.c> AddHandler php5-fcgi .php Action php5-fcgi /php5-fcgi Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization </IfModule>
As I’ve read, PHP-FPM is more commonly used with NGINX, but I would love any help in getting this up and running on my LAMP setup!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
An autofill changed the title of this post and I can’t seem to edit it. The original title was: ‘Installing PHP-FPM with Apache2 on Ubuntu 12.10’
Hi, I’ve tried following this, but I keep getting the error: <br> <br>(111)Connection refused: FastCGI: failed to connect to server “/usr/lib/cgi-bin/php5-fcgi”: connect() failed <br> <br>Even though my apache2.conf (also tried in a vhost or default conf in sites-available) contains <br> <br>Alias /php5.fastcgi /var/www/fastcgi/php5.fastcgi <br>FastCGIExternalServer /var/www/fastcgi/php5.fastcgi -socket /var/run/php-fpm.sock <br> <br>Not quite sure what I’m doing wrong at this point? I’ve also seen different discussion about running socket vs over IP (127.0.0.1) between Apache 2.4 and 2.2?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.