Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By JanusCoriolanus on
I am considering to update my site to 4.7.3, but first I copied my files to my home computer following the instructions . However, I am using the login menu. When I try to login it says that "The requested URL drupal/login was not found on this server." but it works on my live site. I suppose there is something I have not considered. Apache perhaps?
Comments
Isn't it supposed to be
Isn't it supposed to be /drupal/login
Pobster
Sure,
Sure, http://localhost/drupal/login
That wasn't quite what I
That wasn't quite what I meant! ;o)
Erm, the site that reports the 'missing' link - is it the new site or the old one?
Pobster
In the new site.
In the new site.
Ah okay... Have you
Ah okay... Have you remembered to put:
http://www.example.com/drupal
In your settings.php?
Pobster
Do you mean the base_url
Do you mean the base_url variable? The main site does not have that set, but my test site still does not work when I add
$base_url = 'http://localhost/drupal';
Erm... Hmmm...
Yep that was what I meant ;o)
Erm... Hmmm... This is possibly a stupid question, but... You have put the login menu code into the new sites user module as well? ...And enabled it?
Pobster
I used the backup and
I used the backup and restore scripts to copy my site. The loginmenu.module is there. It is enabled in the main site, but since I cannot login to my test site I cannot verify it in there.
Now that I look at it, it
Now that I look at it, it seems that I get "not found" for all other pages except the frontpage. I don't think it is the database since the user, database and password are set in settings.php.
Okay... But always best to
Okay... But always best to check these things first ;o) Thing is, if it were an apache error then you'd get a proper 'page cannot be displayed' error - but the way you described it was like a Drupal admin-type error? It says to me that the menu_hook isn't being called? Either that or your permissions for the item are wrong.
Pobster
Hmmmm wait, I didn't read
Hmmmm wait, I didn't read your reply properly... Are you getting an apache error? If so, have you defined
<Directory>
in your vhosts/ httpd.conf file?Pobster
Yes, it an Apache error. In
Yes, it an Apache error. I now added
and now it works. Thanks for help!
Getting the same error on upgrade to 4.7.3
I can get the home page but can only access other pages directly by typing the url in as
http://domain/?q=pagename
All the links on my site are formed as
http://domain/pagename
so I get a Apache 404 for everything. I don't think this is vhosts issue for me. I'm on a box that I routinely set up new virtual hosts and do new installs of drupal on, I'm only getting the problem when copying over an old site and upgrading.
any ideas?
You haven't copied your
You haven't copied your .htaccess file across either; at all or properly (with the right permissions).
Pobster
I thought for sure I had
but your right, it was missing. Thanks!