April 24, 2014

Having a Synology diskstation is nice, but as they are now using FastCGI I have to remember to enable http files for php each time there is a DSM update.  Instead of having to look it up each time I am recording it. (From http://forum.synology.com/enu/viewtopic.php?f=20&t=82616)

1) edit /etc/httpd/sites-enabled-user/httpd-vhost.conf-user (or httpd-ssl-vhost.conf-user)
add the line AddHandler php5-fastcgi .php .php3 .php4 .php5 .phtml .html .htm .xml 

2) edit /etc/php/php-fpm.conf modify the line adding the extension U want security.limit_extensions = .php .php3 .php4 .php5 .phtml .xml

 3) edit /etc/php/php.ini short_open_tag = Off

 4)execute /usr/syno/sbin/synoservicecfg --restart httpd-user