Parse XML files as PHP

Discussion in 'Installation/Configuration' started by alzuin, Apr 13, 2013.

  1. alzuin

    alzuin New Member

    Hello all,
    I have to migrate a very old site from a shared hosting to my LAMP Server: This is a CentOS 6.4 server with Apache/PHP controlled by ISPConfig My web hosting is configured using FastCGI to execute php code.
    In this site there is some PHP code inside rss.xml file: in fact rss.xml is dynamycally generated every time rather to have an external script that write a static rss.xml file on every change.
    In previous hosting, in .htaccess, I have a directive

    AddType applcation/x-httpd-php .xml

    to parse XML files as PHP, but on my LAMP server does nothing.
    I tried the directive:

    AddHeader fcgi-script .xml

    but the server returns me an error:

    104 connection reset by peer: mod_fcgid: error reading data from FastCGI server

    Can you help me, please?
    Alberto Zuin
  2. alzuin

    alzuin New Member

    Partially solved

    I switched back to mod_php and now all is working fine. No way to do that with FastCGI.

Share This Page