• Resolved guarnif

    (@guarnif)


    Description
    I am trying to move a WordPress-based website from a Shared Hosting to a Cloud VPS with a multi-site apache server set up. The main page does correctly show up, as well as the login page (wp-login). However I cannot:

    1) see any other page (such as https://www.domain.com/anypage) – it gives an apache error “Not Found – The requested URL was not found on this server.”
    2) log in the dashboard – even if the password is correct, it tells me that the password entered is not correct.

    Steps I took
    1) I downloaded all files from the first server and grouped them into a zip (see step 11).
    2) I created a folder in the /var/www/ apache folder, moved the zip via scp and unzipped all files there.
    3) I gave permissions 755 to folders and 644 to files and ownership to www-data (temporary).
    4) I imported the database and changed the wp-config to match the new server address and mysql user credentials.
    5) I enabled the domain in apache.
    6) I tested the site and see the problems as in the Description.
    7) I tried to change the password on the wp-login page but it failed to send an email (perhaps because to mail server is installed yet).
    8) I changed the password of a user in phpmyadmin.
    9) The login still tells me it is not the right password.
    10) I tried to do a fresh change of core files (WordPress 8.5) but did not solve.
    11) I deleted the old folder, and moved once more all downloaded files via ftp (except wp-config), and still did not solve.

    Configuration
    Apache/2.4.41 (Ubuntu).

    • This topic was modified 3 years, 6 months ago by guarnif.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    In the config for this virtual host, add

    <Directory /path/to/wordpress>
       AllowOverride All
    </Directory>

    the default is “none”, and that disables use of .htaccess. Be sure to restart or reload Apache after making the change.

    I would recommend trying out the following steps:

    1. Open your MySQL database in PHPMyAdmin
    2. Go to your wp-config.php file
    3. In wp-config, find this line: $table_prefix = ‘your_prefix’; change ‘your_prefix’
    to something new, for example ‘your_new_prefix’.
    4. Visit any page on your site. WordPress will start a new installation process. It
    will create a whole new set of database tables. During installation, type in your
    CURRENT user name and password.
    5. In PHPMyAdmin, open your [your_new_prefix]_users table, copy your password hash
    from the user_pass column.
    6. Open your your_prefix_users (i.e. the old) table. Find your user and paste the
    password hash you have copied to its user_pass column.
    7. In wp_config, type in your previous prefix. Now you should be able to log in
    properly.
    8. Delete temporary tables from your database.

    Thread Starter guarnif

    (@guarnif)

    Great. Thanks, Steve. That worked regaridng the files, but not for the login issues.

    Thread Starter guarnif

    (@guarnif)

    @kuldeep – thanks for the info.

    I did it in a different way – I went to phpMyAdmin and in the “Function” entry at “user_pass” I selected MD5. It encrypted the password and then worked correctly.

    Thanks everyone! [SOLVED]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot login and see pages after server change’ is closed to new replies.