I had to reinstall a website. After a fresh install, I uploaded all of the modules from a particular date and then imported the sql script from the same date.
Problem - I cannot access any pages or the site at all. Calling example.comredirects immediately to example.com/home that also serves up this error page.
Not Found The requested URL/home was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Things I have tried
I enabled error reporting by writing this into the top portion of index.php, but it does not display any errors.
error_reporting(E_ALL); ini_set('display_errors', TRUE); ini_set('display_startup_errors', TRUE);
I checked my error logs, but it just reports what is occurring.
[Wed Apr 28 07:04:43 2010] [error] [client 24.252.155.156] File does not exist: /home/drini/public_html/home [Wed Apr 28 07:04:37 2010] [error] [client 24.252.155.156] File does not exist: /home/drini/public_html/home [Wed Apr 28 07:02:35 2010] [error] [client 24.252.155.156] File does not exist: /home/drini/public_html/home [Wed Apr 28 07:01:37 2010] [error] [client 24.252.155.156] File does not exist: /home/drini/public_html/home [Wed Apr 28 06:49:33 2010] [error] [client 24.252.155.156] File does not exist: /home/drini/public_html/home [Wed Apr 28 06:49:28 2010] [error] [client 24.252.155.156] File does not exist: /home/drini/public_html/home
Using php.ini EZConfig within my cPanel I did the following actions -
enabled output buffering checked memory limit 96M checked max_execution_time 30 enabled display_errors enabled display_startup_errors enabled log_errors
I cleared the cache table.
I disabled unused modules in the system table.
I rebuilt permissions using a script
I visited #drupal-support and got this advice - see what the front page currently is? SELECT * FROM variable WHERE name='site_frontpage'; And I got this result - s:4:"node"; which I do not know how to interpret.
This is my general server information - Operating system - Linux Service Status Click to View Kernel version - 2.6.33.1 Machine Type - i686 Apache version - 2.2.11 PERL version - 5.8.8 Path to PERL - /usr/bin/perl Path to sendmail - /usr/sbin/sendmail PHP version - 5.2.9 MySQL version - 5.1.30 cPanel Build - 11.25.0-STABLE 44718
I am really at a loss as to how to solve this problem. Any help will be greatly appreciated.
I had to reinstall a website. After a fresh install, I uploaded all of the modules from a particular date and then imported the sql script from the same date.
Problem - I cannot access any pages or the site at all. Calling example.com redirects immediately to example.com/home that also serves up this error page.
Not Found The requested URL/home was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
What do you see at example.com/index.php ?
On Wed, 28 Apr 2010, James Stone wrote:
I had to reinstall a website. After a fresh install, I uploaded all of the modules from a particular date and then imported the sql script from the same date.
What does the root web directory look like? I.E. what files are there?
Problem - I cannot access any pages or the site at all. Calling example.comredirects immediately to example.com/home that also serves up this error page.
Not Found The requested URL/home was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
This sounds very much like a webserver configuration issue.
As such, the most likely thing that could be effecting that is a .htaccess file.
So, what kind of .htaccess file are you using in the web root directory?
My guess is that you're using none, which is the problem. Drupal has a rather extensive one which it requires.
At the least, the .htaccess file should be making certain that index.php is the file accessed upon indexpage requests. It sounds like your web server is configured to attempt to access "home" in this case, which is strange but possible.
So, what's in the .htaccess file?
Regards,
Luke
Le mercredi 28 avril 2010 à 11:51 -0400, James Stone a écrit :
I had to reinstall a website. After a fresh install, I uploaded all of the modules from a particular date and then imported the sql script from the same date.
Problem - I cannot access any pages or the site at all. Calling example.com redirects immediately to example.com/home that also serves up this error page.
Not Found The requested URL/home was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I think this is an Apache RewriteRules problem. Check your apache configuration, if the rewrite rules are in a .htaccess file, then it might be that apache either does not finds the file, either does not have permission to read it.
To be sure this is the problem, troubleshooting is the following: aptempt to go to http://example.com/index.php?q=user
If it works, then it's an Apache RewriteRules configuration problem.
Pierre.