[Solved] php include not working in ISPConfig

Discussion in 'Installation/Configuration' started by Csaba Bocskai, Aug 5, 2017.

  1. Csaba Bocskai

    Csaba Bocskai New Member

    Hello all!

    Until recently I configured my server manually and never had issues.
    I decided to migrate to a somewhat automated server management system since my time became more precious, and chose ISPConfig.
    The problem is my sites don't have file inclusion any more.
    Where should I start the troubleshooting?
  2. Csaba Bocskai

    Csaba Bocskai New Member

    Never mind.
    I just remembered that on the old server, html files are parsed as php.
    All I had to do was to navigate in ISP Config to Sites, chose the website, Options, and insert the directive:
    <FilesMatch "\.html$">
    ForceType application/x-httpd-php
  3. pburst

    pburst New Member

    How is this done in nginx? Code like this:
    <?php include '/var/www/clients/client2/web2/web/head.php';
    ?> does not work at all.

Share This Page