# Enable the "forum" role
default[:accounts][:users][:forum][:status] = :role
-
-# Configure PHP options
-default[:php][:fpm][:options][:open_basedir] = "/srv/forum.openstreetmap.org/html/:/usr/share/php/:/tmp/"
-default[:php][:fpm][:options][:disable_functions] = "exec,shell_exec,system,passthru,popen,proc_open"
-default[:php][:fpm][:options][:upload_max_filesize] = "70M"
-default[:php][:fpm][:options][:post_max_size] = "100M"
ErrorLog /var/log/apache2/forum.openstreetmap.org-error.log
DocumentRoot /srv/forum.openstreetmap.org/html
+
+ ProxyFCGISetEnvIf "true" PHP_ADMIN_VALUE "open_basedir=/srv/forum.openstreetmap.org/html/:/usr/share/php/:/tmp/\ndisable_functions=exec,shell_exec,system,passthru,popen,proc_open"
+ ProxyFCGISetEnvIf "true" PHP_VALUE "upload_max_filesize=70M\npost_max_size=100M"
</VirtualHost>
<Directory /srv/forum.openstreetmap.org/html>
Require all granted
</Directory>
+
+<Directory /srv/forum.openstreetmap.org/html/img>
+ <FilesMatch ".+\.ph(ar|p|tml)$">
+ SetHandler None
+ </FilesMatch>
+</Directory>