Jump to content

Cannot migrate from local to live


alanxptm
 Share

Recommended Posts

Hi, I have already tried in different ways and many times to migrate but I always have issues at the end.

Here's what I have done so far:

 

case 1:

1. Install PW on live server (all normal)

2. Import local DB into live DB

3. Front page site seems to work but I cannot login into admin page

case 2 (I'm currently on this stage):

1. Copied all files from local to live server

2. Import local DB into live empty DB

3. Front page works, but any other page and admin page are 404

 

In both cases:

- I have changed config.php info accordingly to live server (DB name, DB user and pwd, userauthsalt code)

- Uncommented RewriteBase / and RewriteBase /pw/ lines on .htaccess

- applied owner and group permissions to www-data for PW location

- applied permissions to folders and files accordingly

- applied a2enmod rewrite to apache2 on live server and restarted service

 

I have read some posts (Ryan's too) about migration and it seems to me that I'm doing it fine, don't know what it fails-

I'm on VMWare machine, Ubuntu Server 18.04, php 7.2, phpMyAdmin 5.0.1

Hope you can help me, thanks in advance

Link to comment
Share on other sites

11 minutes ago, alanxptm said:

I have changed config.php info accordingly to live server (DB name, DB user and pwd, userauthsalt code)

The userauthsalt has to be the same as on the dev environment if you copy the DB over!

If only the home page works, it's most likely a rewrite issue. If you installed in the root directory, RewriteBase is not needed. Otherwise, set it to the subdirectory your PW installation resides in.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...