ispCP - Board - Support
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)

Pages: 1 2 3


RE: problem parsing html as php with .htaccess - kilburn - 01-21-2010 04:51 AM

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


RE: problem parsing html as php with .htaccess - frankwth - 06-07-2010 10:16 PM

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]


RE: problem parsing html as php with .htaccess - wiktor - 06-24-2010 09:15 PM

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


RE: problem parsing html as php with .htaccess - joximu - 06-24-2010 09:18 PM

Check the /etc/apache2/mods-available/fcgid_ispcp.conf

AddHandler fcgid-script .php .php5

add .phtml

/J


RE: problem parsing html as php with .htaccess - wiktor - 06-24-2010 09:40 PM

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.


RE: problem parsing html as php with .htaccess - joximu - 06-24-2010 10:08 PM

Check the error.log (domain and default) and suexec.log

/J


RE: problem parsing html as php with .htaccess - wiktor - 06-24-2010 10:26 PM

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.


RE: problem parsing html as php with .htaccess - joximu - 06-24-2010 11:20 PM

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


RE: problem parsing html as php with .htaccess - wiktor - 06-24-2010 11:47 PM

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)


RE: problem parsing html as php with .htaccess - joximu - 06-25-2010 01:27 AM

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