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

pobster’s picture

Isn't it supposed to be /drupal/login

Pobster

JanusCoriolanus’s picture

pobster’s picture

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

JanusCoriolanus’s picture

In the new site.

pobster’s picture

Ah okay... Have you remembered to put:

http://www.example.com/drupal

In your settings.php?

Pobster

JanusCoriolanus’s picture

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';

pobster’s picture

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

JanusCoriolanus’s picture

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.

JanusCoriolanus’s picture

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.

pobster’s picture

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

pobster’s picture

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

JanusCoriolanus’s picture

Yes, it an Apache error. I now added

<Directory /var/www/localhost/htdocs/drupal>
    AllowOverride all
</Directory>

and now it works. Thanks for help!

jfulton@drupal.org’s picture

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?

pobster’s picture

You haven't copied your .htaccess file across either; at all or properly (with the right permissions).

Pobster

jfulton@drupal.org’s picture

but your right, it was missing. Thanks!