![]() |
Incorrect URLs/paths in error logs
Hello,
I just moved my site to a new server. i used the same files and db backup from the old server. They both are Apache. As a result, my product pages and categories aren't being found and I get 404 errors. Here's an example of the errors from the error log: HTML Code:
[Sun Feb 19 09:53:07 2012] [error] [client 66.249.71.44] File does not exist: /var/www/html/panda-antivirus-2012-p-5090.html |
Do you have those pages on your site? Are they in a sub folder named "html", and are they working? If your renamed the folder, possibly even to upper case "HTML", then it could cause that error. Also, if you moved those pages, same result.
|
Quote:
Yes those pages are on my site which is built with PHP. They are located in the "html" folder with all lower case. Since I used the db backup from the previous server, I didn't move the pages. |
What would cause the php files to be downloaded instead of displaying in the browser?
|
Did you recently change your domain name?? It's a possibility that if you did, peolple are clicking those links (old bookmarks and search engine finds, or such). If you're running this site in a virtual directory on your webserver, those links could be defaulting to var/www.
So, are you running a virtual directory for this site, or are your files all located in var/www ?? |
Quote:
Thanks |
Are you sure PHP is installed? When I've seen browsers ask to download a PHP page instead of display it, that has been the cause.
You can write this code in notepad (or related) and save it as checking.php: PHP Code:
So, you're SURE those files exsist? You can go to http://yourdomain/html/mission-combat-force-p-4158.html and it will display that certain page?? Edit: In the php.ini file (I do believe), you can define what pages the server will look for PHP on, such as .html and .htm files. That might be some of your problem. |
Sorry!! I typoed that code:
PHP Code:
|
I was wondering why the page was blank. I'll try the new code later.
|
I do have wordpress but I must upgrade php to 5.2.6. My website is powered by oscommerce.
|
Quote:
|
On my php coded site, I use mod that changes the extensions from .php to .html. On wp I have no such plugin.
Thanks |
I corrected the checking.php file and loaded it in my browser. if you want to view the results go here: http://www.discxpress.com/checking.php
|
I found the solution! zlib wasn't enabled. I need to upgrade php. Any easy way to do that?
Thanks |
Good work man!! Glad you got that sorted out. You should remove that checking.php file (or rename it).
As for upgrading PHP, I'm not as familiar with Centos as other linux distros, and never used a control panel, but it shouldn't be anything a yum install can't fix. Try this link here. |
| All times are GMT -4. The time now is 11:58 AM. |
Powered by vBulletin
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
© WebHostingTalk, 1998 - 2011. All Rights Reserved.