Skip to content
Snippets Groups Projects
Commit 8b957523 authored by jurgenhaas's avatar jurgenhaas
Browse files

Make apache, fastcgi and jailkit work together

parent 360625d9
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@
- php5
- php-apc
- php-soap
- php5-cgi
- php5-mysql
- php5-xmlrpc
- php5-gd
......@@ -23,10 +24,13 @@
notify:
- "PHP | Restart Apache"
# TODO: Upgrade APCu on Ubuntu 14.04
# @see https://github.com/owncloud/core/issues/14175#issuecomment-74573088
# wget https://launchpad.net/~ondrej/+archive/ubuntu/php5/+build/6149263/+files/php5-apcu_4.0.6-1%2Bdeb.sury.org~utopic%2B1_amd64.deb
# sudo dpkg -i php5-apcu_4.0.6-1+deb.sury.org~utopic+1_amd64.deb
- name: "PHP | Enable Apache modules"
apache2_module:
name={{ item }}
state=present
with_items:
- fcgid
notify: "Apache | Restart Apache"
- name: "PHP | Configuration file, php.ini"
template:
......@@ -38,6 +42,21 @@
notify:
- "PHP | Restart Apache"
- name: "PHP | Configuration file, fcgid.conf"
template:
src=fcgid.conf
dest=/etc/apache2/mods-available/fcgid.conf
owner=root
group=root
mode=0644
notify:
- "PHP | Restart Apache"
# TODO: Upgrade APCu on Ubuntu 14.04
# @see https://github.com/owncloud/core/issues/14175#issuecomment-74573088
# wget https://launchpad.net/~ondrej/+archive/ubuntu/php5/+build/6149263/+files/php5-apcu_4.0.6-1%2Bdeb.sury.org~utopic%2B1_amd64.deb
# sudo dpkg -i php5-apcu_4.0.6-1+deb.sury.org~utopic+1_amd64.deb
- name: "PHP | Cache configuration file, apc.ini"
template:
src=etc-php5-conf-d-apc.ini
......
<IfModule mod_fcgid.c>
FcgidConnectTimeout 20
DefaultMinClassProcessCount 0
IdleTimeout 300
IdleScanInterval 30
MaxProcessCount 15
MaxRequestsPerProcess 500
PHP_Fix_Pathinfo_Enable 1
<IfModule mod_mime.c>
AddHandler fcgid-script .fcgi
</IfModule>
</IfModule>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment