| 
					problem parsing html as php with .htaccess
				 | 
		
			| Author | Message | 
		
	
	
		
	
		| frankwth   Newbie
 
  
 Posts: 9
 Joined: Dec 2006
 Reputation: 0
 | 
			| 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 |  | 
	
		| wiktor   Newbie
 
  
 Posts: 5
 Joined: Jun 2010
 Reputation: 0
 | 
			| 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 |  | 
	
		| wiktor   Newbie
 
  
 Posts: 5
 Joined: Jun 2010
 Reputation: 0
 | 
			| 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 |  | 
	
		| wiktor   Newbie
 
  
 Posts: 5
 Joined: Jun 2010
 Reputation: 0
 | 
			| 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 |  | 
	
		| wiktor   Newbie
 
  
 Posts: 5
 Joined: Jun 2010
 Reputation: 0
 | 
			| 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 |  | 
	 
	
	
		
	
	
		
 
 
	 
	
	
	
	
	
	
	
		
		
	
	
	
User(s) browsing this thread: 2 Guest(s)