WebFaction
Community site: login faq

How do I install Apache with PHP-FPM?

asked 11 May, 01:22

ryans's gravatar image

ryans ♦♦
5.0k42652
accept rate: 43%

Why would I want to do this? What advantages does it bring that I don't get with WebFaction's default PHP setup? Are there any drawbacks? Asking for a friend ;)

(11 May, 15:10) seanf ♦♦ seanf's gravatar image

First, create a new Custom Application (listening on port) via the Control Panel and attach it to a website record.

The actual installation will be performed as follows:

git clone 'https://github.com/rsanden/wf-apache-php-fpm'
cd wf-apache-php-fpm
nano config
./install.bash

The "nano config" step is to set the following options in the config file:

  • STACKNAME: The name of this Apache+PHP-FPM stack, which will have associated log files in $HOME/logs/user
  • PREFIX: The install location where the Apache+PHP-FPM will be installed
  • PORT: The port associated with the Custom Application (listening on port) created via the Control Panel
  • DOMAIN1: The domain name that the Apache+PHP-FPM stack will serve. (you can add more later in httpd.conf)
  • APP1: The path to the website files that the Apache+PHP-FPM stack will serve (you can add more later with virtualhosts)

After installation, the following are done for you:

  • start, stop, and restart scripts are created in the $PREFIX/bin directory
  • The start script is run to start the instance
  • A cronjob is created to start the instance once every 20 minutes if it's not running
permanent link
This answer is marked "community wiki".

answered 11 May, 02:18

ryans's gravatar image

ryans ♦♦
5.0k42652
accept rate: 43%

edited 11 May, 02:37

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×213
×6

question asked: 11 May, 01:22

question was seen: 70 times

last updated: 11 May, 15:10

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM