HI, I am manually migrating from one server to another. Not too difficult.
Download database and files from old server, upload to new server.
However, the new server is going to have some different variables, such as database name, username and password. Easy right? Just change the .env file with the new information. Considering, my domain and file path all remain exactly the same.
However, I discovered, that can’t possibly be the only changes Because something isn’t working. I noticed all these fields that possibly need new paths and data. Is this accurate?
- PHPRC=
- PHPHANDLER=
- HTTP_HOST=
- HTTP_X_REAL_IP=
- SERVER_ADDR=
- SERVER_PORT=
- REMOTE_ADDR=
- DOCUMENT_ROOT=
- SCRIPT_FILENAME=
- REMOTE_PORT=
- DB_HOST=
- DB_DATABASE=
- DB_USERNAME=
- DB_PASSWORD=
Would I need to change all these fields too? And some of that information is hard to find, like remote port? remote address? are those necessary for me to access my program on a computer? What can I safely delete(optional)? What exactly needs changed?
I found all these old articles, but nothing that really covered exactly what should be changed in the file.
Is it possible to regenerate this content for the new server without compromising the current database? I assume .env must be created at setup since I couldnt’ find that file in a fresh download of invoice ninja.
Here is a picture of my current error, which I’m certain has something to do with the .env file not being populated with the correct content. https://imgur.com/LvjFmiF