Current time: 12-24-2024, 06:00 AM Hello There, Guest! (LoginRegister)


Post Reply 
problem parsing html as php with .htaccess
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #11
RE: problem parsing html as php with .htaccess
Try to kill all the php-cgi processes of this domain and see if after respawning these issues are gone. I've never heard anything like that btw :S
01-21-2010 04:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
frankwth Offline
Newbie
*

Posts: 9
Joined: Dec 2006
Reputation: 0
Post: #12
RE: problem parsing html as php with .htaccess
Is there any solution to this?

I guess the default install is fast-cgi, right? I did this. So the question is how to get html-files parsed through php?

W have two settings here:
a) .htaccess
b) /etc/apache2/ispcp/domain.conf

In VHCS2, which I have used for years I had an extra entry in vhcs2.conf, which was simply "AddType application/x-httpd-php .phtml .htm .html .php". I remember that this was almost the same in Confixx.

I am really asking myself what kind of progress we have if there are only more and more problems if we change to a new system, which is obviously forcing me to change the setup. Yes, I am not a Linux Guru but I am trying to Google a lot. But if I spent days and more days on this I will be better off using an mature solution and pay for this.[/i]
06-07-2010 10:16 PM
Find all posts by this user Quote this message in a reply
wiktor Offline
Newbie
*

Posts: 5
Joined: Jun 2010
Reputation: 0
Post: #13
RE: problem parsing html as php with .htaccess
Hi guys,
I've got quite similar problem with configuration of my IspCP Panel. I'd like to enable permanently parsing .phtml files. I'm using fcgid. I would appreciate your help.

Cheers,
Wiktor
06-24-2010 09:15 PM
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: #14
RE: problem parsing html as php with .htaccess
Check the /etc/apache2/mods-available/fcgid_ispcp.conf

AddHandler fcgid-script .php .php5

add .phtml

/J
(This post was last modified: 06-24-2010 09:19 PM by joximu.)
06-24-2010 09:18 PM
Visit this user's website Find all posts by this user Quote this message in a reply
wiktor Offline
Newbie
*

Posts: 5
Joined: Jun 2010
Reputation: 0
Post: #15
RE: problem parsing html as php with .htaccess
Thanks for your reply. I already did it and now I'm getting Internal Server Error... If you're sure that's a right solution, I will look for some other reasons of the 500 error.
06-24-2010 09:40 PM
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: #16
RE: problem parsing html as php with .htaccess
Check the error.log (domain and default) and suexec.log

/J
06-24-2010 10:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
wiktor Offline
Newbie
*

Posts: 5
Joined: Jun 2010
Reputation: 0
Post: #17
RE: problem parsing html as php with .htaccess
Ok, it's something with ownership. That's what I get from suexec.log:
[2010-06-24 14:21:20]: uid: (2009/vu2009) gid: (2009/vu2009) cmd: addelement.phtml
[2010-06-24 14:21:20]: target uid/gid (2009/2009) mismatch with directory (2009/33) or program (2009/33)

For me, it looks like the file should belong to group vu2009. Now it belongs to group www-data.
06-24-2010 10:26 PM
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: #18
RE: problem parsing html as php with .htaccess
yes - all php files (or php5 or phtml) have to belong to vu2xxx:vu2xxx - the www-data readability is only for apache which needs to be able to read all static data (images, html files etc)

/J
06-24-2010 11:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
wiktor Offline
Newbie
*

Posts: 5
Joined: Jun 2010
Reputation: 0
Post: #19
RE: problem parsing html as php with .htaccess
Still get an error, this time (suexec.log):
[2010-06-24 15:30:48]: uid: (2009/vu2009) gid: (2009/vu2009) cmd: addelement.phtml
[2010-06-24 15:30:48]: (8)Exec format error: exec failed (addelement.phtml)
06-24-2010 11:47 PM
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: #20
RE: problem parsing html as php with .htaccess
but "normal" .php files are working?

is there a difference in the permissions or content of .phtml or .php files?

start with simple ones:

<?php
echo "hello"
?>


/J
06-25-2010 01:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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