problem parsing html as php with .htaccess - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: problem parsing html as php with .htaccess (/thread-5430.html) |
RE: problem parsing html as php with .htaccess - wiktor - 06-25-2010 03:39 AM Yes, normal .php files (in the same directory) are working fine. Exactly same content in .phtml file is giving Internal Server Error ;/ OK, I think I have finally solved my problem. I had to alter apache conf file adding following line: FCGIWrapper /var/www/fcgi/domain/php5-fcgi-starter .phtml I did it in sites-available/ispcp.conf so I assume, I need to change it in templates as well. Am I right? joximu, thanks for your help, really appreciate it! Edit: BTW, if I want to change smth in apache configuration, I need to alter all template files (als, dmn, sub) in /etc/ispcp/apache/parts ? And if I want to change smth in PHP configuration (php.ini) where is the template file for it? RE: problem parsing html as php with .htaccess - joximu - 06-25-2010 06:52 AM of course... there's a ".php" too... also change it in /etc/ispcp/apache2/working/ispcp.conf - this is the base for the next ispcp changes... see /etc/ispcp/fcgi/parts about php.ini template Cheers J RE: problem parsing html as php with .htaccess - nanoNetTr - 12-31-2012 10:59 AM old thread but.. there is no need to change tpl files. just use these 2 lines in .htaccess; AddHandler fcgid-script .html FCGIWrapper /var/www/fcgi/<YOUR DOMAIN>/php5-fcgi-starter .html |