ispconfig3 php fpm and .phtml files

Discussion in 'General' started by madmucho, Aug 9, 2016.

  1. madmucho

    madmucho Member

    Dear howtoforge users,
    i have one old website which i want migrate from old unsupported ubuntu LTS ispconfig3 install.
    to debian jessie ispconfig3 new installation which is ok and working in base.

    Problem is specific site using Zend framework 1.12.x which expect that PHP handle .phtml files.
    Application files is located in user home in private folder and is not proceed by php itself.
    I dont want make custom configuration for apache globaly, i try apache options directive:
    <FilesMatch "\.ph(p3?|tml)$">
    SetHandler php5-fcgi
    but im unable to make source code to be proceed by ondemand php fpm mode.
    Have anyone similiar vhost or know how to make that works ?
    currently on Ispconfig
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    you have to set this inside of a <Directory .... > directive, see existing settings in the vhost file.
  3. madmucho

    madmucho Member

    Thank you for reply, it works now correctly.
    <Directory "/var/www/clients/clientx/webx/x">
    <FilesMatch "\.ph(p3?|tml)$">
    SetHandler php5-fcgi

Share This Page