Current time: 11-26-2024, 09:34 AM Hello There, Guest! (LoginRegister)


Post Reply 
problem parsing html as php with .htaccess
Author Message
wiktor Offline
Newbie
*

Posts: 5
Joined: Jun 2010
Reputation: 0
Post: #21
RE: problem parsing html as php with .htaccess
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! Wink

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?
(This post was last modified: 06-25-2010 04:01 AM by wiktor.)
06-25-2010 03:39 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #22
RE: problem parsing html as php with .htaccess
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
06-25-2010 06:52 AM
Visit this user's website Find all posts by this user Quote this message in a reply
nanoNetTr Offline


Posts: 1
Joined: Dec 2012
Reputation: 0
Post: #23
RE: problem parsing html as php with .htaccess
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
12-31-2012 10:59 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)