|
#1
|
|||
|
|||
|
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
|
|
#2
|
||||
|
||||
|
Have you checked the error logs in cPanel to see if there is information on exactly what the error is?
|
|
#3
|
|||
|
|||
|
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? |
|
#4
|
||||
|
||||
|
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.
|
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
|||
|
|||
|
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.
|
|
#8
|
|||
|
|||
|
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! |
![]() |
| Bookmarks |
| Thread Tools | |
|
|