View Full Version : Error on Web Page After FTP Upload
keira
03-19-2008, 10:13 AM
Whenever I upload files using an FTP client (it doesn't matter which one I use, I have three different ones on my computer and the same thing happens if I use any of them) I get errors on the page(s) I uploaded when I go to them in my browser. I usually get this:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, {it puts an email address in here: webmaster@whatever domain the page is on} and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at {the domain the file is on}
But I sometimes get another one that is just one line and has square brackets around it, but I'm not getting that one right now and I don't remember what it says.
It only seems to effect HTML and PHP files, or any other text based file, but not image files. When I use the file manager from the cPanel I have no problems (except that I find it more time consuming, which is why I use FTP). I keep trying to get into the Unlimited FTP from the cPanel but I can't. There seems to be something wrong with that as well. But these errors are more important to me right now.
This has been happening for quite some time now, but I've been too busy with other things to deal with it, and it's finally angering me enough to try and find out why.
Does anyone have any idea why this is happening or know how I can fix it?
redsox9
03-19-2008, 04:12 PM
Is the site 2006.fading-flowers.com? I just tried it and it seems to work just fine.
keira
03-19-2008, 08:58 PM
I know it works, because I had to upload through the file manager to get it to work. I said in my original post that it works when I upload from the file manager, but not with FTP.
(I meant to take the address out as well because it happens on all of my domains and subdomains, not just that one)
felgall
03-19-2008, 09:02 PM
Can you upload a page using FTP and supply the address so that we can see what is happening when you upload that way. Without actually being able to examine the page it is extremely difficult to guess at possible causes.
keira
03-19-2008, 09:32 PM
I was trying to get it to work, or rather not work, for 15 minutes (trying it on each of my domains) but it kept working the way it's supposed to.
But I just got the other error that I was getting sometimes:
[an error occurred while processing this directive]
It's on this page: http://88.fading-flowers.com/about.php
greenman
03-20-2008, 11:11 AM
A couple thoughts:
Did you upload your ascii files as binaries by mistake?
Are your includes and mysql set properly for the new host in your config files?
keira
03-20-2008, 12:23 PM
Did you upload your ascii files as binaries by mistake?
I don't think so. I'll have to double check my settings, but it happens in any of the FTP applications that I use, not just one of them, so it seems odd that it would be something that simple.
Are your includes and mysql set properly for the new host in your config files?
I'm not entirely sure what you mean by that.
But when I upload using the file manager I have no problems, so your first thought makes more sense. I think I may have looked into that before though so I'm not sure that it's the problem. But I'll double check.
keira
03-20-2008, 12:32 PM
Everything was set to auto but I played around with it in all my FTP apps and changed it to ASCII but it didn't make any difference.
greenman
03-21-2008, 08:58 AM
If you had your php includes set up manually for another host with a different path to your user home and then transferred it to this host, it could be what causing some types of errors.
For instance - suppose your website were previously on a host that used the hsphere control panel by psoft. Then your php includes, if set manually or hard-wired in a config file, would use "/hsphere/local/home/user/domain.com/assets/footer.php" rather than "/home/user/public_html/assets/footer.php" as used in the cpanel found on bluehost.
Ideally, to keep this from happening, you would use "$_SERVER['DOCUMENT_ROOT']" for the equivalent of "/home/user/public_html" in a config file or template on BH.
So your footer variable would be:
<php? $ myFooter = $_SERVER['DOCUMENT_ROOT'] . "/assets/footer.php"; ?>and your call for the footer would be:
<?php include($myFooter); ?>or
<?php require_once($myFooter); ?>in your config file or template - a format that should be entirely transferrable from one host to another without any editing.
Could this be the problem?
keira
03-22-2008, 10:06 AM
If you had your php includes set up manually for another host with a different path to your user home and then transferred it to this host, it could be what causing some types of errors.
For instance - suppose your website were previously on a host that used the hsphere control panel by psoft. Then your php includes, if set manually or hard-wired in a config file, would use "/hsphere/local/home/user/domain.com/assets/footer.php" rather than "/home/user/public_html/assets/footer.php" as used in the cpanel found on bluehost.
Ideally, to keep this from happening, you would use "$_SERVER['DOCUMENT_ROOT']" for the equivalent of "/home/user/public_html" in a config file or template on BH.
So your footer variable would be:
<php? $ myFooter = $_SERVER['DOCUMENT_ROOT'] . "/assets/footer.php"; ?>and your call for the footer would be:
<?php include($myFooter); ?>or
<?php require_once($myFooter); ?>in your config file or template - a format that should be entirely transferrable from one host to another without any editing.
Could this be the problem?
Not likely. I mean I don't think so anyway. I've never used that for includes, but I was pretty sure that this had happened with html files too, not just php files. Although most of my pages are php now anyway.
Usually all I do for includes is:
<?php include("footer.php"); ?>
because I keep the files in the same directory, at least for smaller sites, and it works fine.
But the the sites that I've been having the most issues with (they seem to be the ones that I upload files to more often) are running from a script that I didn't write, but I've never had issues with the script and I've been using it for almost two years (it's been updated too). But it's not only those sites that are having this problem. I'm having it with sites that aren't running on a script.
But a lot of my stuff I started from scratch when I moved to Bluehost from my old web host.
It's not just that subdomain that's having this problem. It's also sites that I've made brand new since switching to Bluehost.
Actually, I just remembered, I was also having problems uploading .swf files using my FTP client as well. They would just stay white on the page, but when I uploaded from the file manager they worked perfectly. I haven't tested this in a few months now but I guess it's the same problem.
I think this is why I had originally thought it was a software problem with my FTP client, but the fact that the same thing happens in three different FTP clients made by different companies made me think it was something with Bluehost. But I'm still not entirely sure.
I've been using Bluehost since September 2007. I didn't have any problems at all, until about the end of December/beginning of January. So I don't see how it could have been anything to do with my computer or any software or anything. So I'm still leaning towards it being an issues with the server or something. I really don't know, but it's driving nuts.
Although, I did get a new computer for Christmas. But everything was working fine for the first couple weeks, as far as I can remember. Could switching from Windows XP to Mac OS X have effected anything? It doesn't really make sense, but you never know, I guess. I haven't uploaded anything using Windows since Christmas. Maybe I should test it.
I got that original error from the first post on another page now: http://holmesonhomes.fading-flowers.com/about.php
alemcherry
03-22-2008, 01:52 PM
Have you contacted support? Actually the server logs will give you the description of error. That should help. It could be a permission problem or something.
keira
03-22-2008, 01:59 PM
Have you contacted support? Actually the server logs will give you the description of error. That should help. It could be a permission problem or something.
No I haven't had a chance to. I was hoping it would be an easy fix and I wouldn't have to contact them. If it's still happening by the end of April, when my semester is over, and I'm not worrying about school work and stuff, I will call them, because I will be needing to upload stuff more frequently then.
puppydazzles
12-10-2008, 05:31 PM
Whenever I upload files using an FTP client (it doesn't matter which one I use, I have three different ones on my computer and the same thing happens if I use any of them) I get errors on the page(s) I uploaded when I go to them in my browser. I usually get this:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, {it puts an email address in here: webmaster@whatever domain the page is on} and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at {the domain the file is on}
But I sometimes get another one that is just one line and has square brackets around it, but I'm not getting that one right now and I don't remember what it says.
It only seems to effect HTML and PHP files, or any other text based file, but not image files. When I use the file manager from the cPanel I have no problems (except that I find it more time consuming, which is why I use FTP). I keep trying to get into the Unlimited FTP from the cPanel but I can't. There seems to be something wrong with that as well. But these errors are more important to me right now.
This has been happening for quite some time now, but I've been too busy with other things to deal with it, and it's finally angering me enough to try and find out why.
Does anyone have any idea why this is happening or know how I can fix it?
I am getting the same message. I am totally new to this system. This year I just learned how to make a website with SiteCreatorPlus, and it worked well, except they do not have ftp. So I have been trying to learn this for the past month or so. I thought I finally got it, and then I got the same message as above: Internal error, 500 etc. I am frustrated. If there is some kind soul who has the patience to work with a newbie, I will be very grateful. I could not sleep last night, so I have been awake for almost 36 hours. I need to figure this out, so I can get some Christmas going. Thank you for your willingness to work with me. I am afraid that I may have messed the whole thing up. I have my websites, but just cannot upload it. Maybe I am not naming it correctly. HELP.
Early Out
12-10-2008, 07:12 PM
There really isn't anything complicated or mysterious about it. When you create a website, the main page should be called index.html. Most packages will automatically give that name to the starting page of the website. You just need to upload that file, and whatever files and folders are associated with it, to the public_html directory on your hosting account.
So, if the website you've created on your PC has an index.html file, and maybe some pictures in an "images" directory, those all need to be copied to the public_html directory:
public_html/index.html
public_html/images/mydog.jpg
public_html/images/mycat.jpg
How the files and folders are set up depends on the software used to create the web site - there's no "right way" to do it.
Then, to access that main page, you just point your browser to www.example.com. The "index.html" part is implied (it's the default name, the file the server looks for automatically). You could enter www.example.com/index.html, which would take you to the same place.
There's nothing fancy about "uploading" or "publishing" - all you're doing is copying stuff from one computer to another. You can use any number of programs to do the copying. A standalone FTP client program like FileZilla or WS_FTP will do the job nicely. Those are just programs for copying files from one place to another.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.