Go Back   HostGator Peer Support Forums > Public Forums > Pre-Sales Questions

Notices

Reply
 
Thread Tools
  #1  
Old 11-09-2007, 08:24 PM
Leopets Leopets is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 13
Unhappy .phtml files?

Hi there,

I recently signed up to host gator because my old host (lypha.com) was having horrible horrible down time.

I went to move my site over, however the majority of the extensions are .phtml, but for some reason any file with a .phtml is coming up with a 500 error.

See here: http://74.54.43.34/~leopets/test.phtml

Please help :-( I'm going to be kind of annoyed if I've changed hosts only to have to change again
Reply With Quote
  #2  
Old 11-09-2007, 08:32 PM
GvilleRick's Avatar
GvilleRick GvilleRick is offline
Emperor Croc
 
Join Date: Jan 2007
Location: Greenville, SC
Posts: 2,556
Default Re: .phtml files?

Have you checked the error logs in cPanel to see if there is information on exactly what the error is?
Reply With Quote
  #3  
Old 11-09-2007, 08:40 PM
Leopets Leopets is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 13
Default Re: .phtml files?

The errors that are occuring are:

[2007-11-09 20:10:52]: error: file has no execute permission: (/home/leopets/public_html/test.phtml)
[Fri Nov 9 20:10:52 2007] [error] [client 219.90.239.28] Premature end of script headers: /home/leopets/public_html/test.phtml

Although I have no idea why these are coming up?
Reply With Quote
  #4  
Old 11-09-2007, 08:55 PM
GvilleRick's Avatar
GvilleRick GvilleRick is offline
Emperor Croc
 
Join Date: Jan 2007
Location: Greenville, SC
Posts: 2,556
Default Re: .phtml files?

The first error sounds like a permission problem. I would try changing the permissions to 755. The second is pretty generic. Could be due to uploading in binary instead of ASCII format or vice-versa. I'm not familiar with the .phtml format but that error is common on cgi files uploaded incorrectly.
Reply With Quote
  #5  
Old 11-09-2007, 09:04 PM
Leopets Leopets is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 13
Default Re: .phtml files?

Thanks for that! I've changed the permissions to 755 and that has fixed the permissions issue! But it's still doing the same thing. I'm confused because it worked on my last server, but I'll try and figure it out.
Reply With Quote
  #6  
Old 11-09-2007, 09:06 PM
GvilleRick's Avatar
GvilleRick GvilleRick is offline
Emperor Croc
 
Join Date: Jan 2007
Location: Greenville, SC
Posts: 2,556
Default Re: .phtml files?

You might want to contact support for the encoding program as well. It could be that the problem is trying to run it using the IP address rather than the domain. Some scripts will not run correctly until the domain has propagated.
Reply With Quote
  #7  
Old 11-09-2007, 09:13 PM
Leopets Leopets is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 13
Default Re: .phtml files?

Ahhh thanks again.. I will wait until it propagates and then have a look. Although php scripts are running okay under .php extensions. http://74.54.43.34/~leopets/test.php works fine.
Reply With Quote
  #8  
Old 11-09-2007, 09:17 PM
Leopets Leopets is offline
Hatchling Croc
 
Join Date: Nov 2007
Posts: 13
Default Re: .phtml files?

Oh! I got it to work! There was no apache handler set up for .phtml files. Fixed now!

Thanks very much for your help kind sir!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 06:39 PM.

 
Forum SEO by Zoints