Migrate a Wordpress App from Namecheap to railway
medaliorh
PROOP

10 months ago

Hi, i want to completely switch my hostings to railway , but to do that there's a mandatory WordPress website that i wanna host on railway first , i've downloaded the backup files using easyWP(No other choices), and i used a Wordpress+Mysql template , i've been able to dump the database , but the website stilll won't work without the files i guess(which i also have), i'm looking for someone who has knowledge on that matter to help me fully migrate the website and have it hosted and working on railway so i can move on into better projects please !

Solved

33 Replies

medaliorh
PROOP

10 months ago

i've read this documentation https://docs.railway.com/migration/migrate-from-digitalocean , but it looks like i'm still doing something wrong , can someone in this matter help me !


medaliorh
PROOP

10 months ago

The issue persists. At this point, I believe the problem is with the Railway service configuration itself. The WordPress site is working internally, but Railway is not properly serving it externally.

The real issue: Railway's Docker Image service is not properly configured to serve WordPress content externally. This is a Railway infrastructure issue, not a WordPress issue.

Here's what I recommend:

Try using Railway's WordPress template instead of a custom Docker setup

Or try a different deployment approach like using Railway's PHP service

Or consider using a different hosting platform that's better suited for WordPress

The WordPress migration itself is complete and working - the issue is with Railway's service configuration. Your WordPress site is fully functional internally, but Railway is not serving it properly externally.


10 months ago

Please break down your issue further. What’s the error you’re encountering?


medaliorh
PROOP

10 months ago

well i kinda took the app locally , then prepare a migration with plugin then migrate to railway , so the website works now , but now i need to transfer/use the domain i had for it ,it was first took from Godaddy and then i think they transfered it to Namecheap , if i can have some help for that please !


medaliorh
PROOP

10 months ago

1413131320149934172


medaliorh
PROOP

10 months ago

1413131468602871869


medaliorh
PROOP

10 months ago

i'm not that good on Networking , i don't wanna mess this up


medaliorh
PROOP

10 months ago

1413132687979450388


medaliorh
PROOP

10 months ago

1413132865985712289


medaliorh
PROOP

10 months ago

What is the best and safest way to get this done ?


10 months ago

You can find the docs for setting up a public domain here: https://docs.railway.com/guides/public-networking


10 months ago

If Namecheap doesn’t give you a CNAME record, transfer it to Cloudflare


medaliorh
PROOP

10 months ago

1413135925554446487


medaliorh
PROOP

10 months ago

1413136086401810533


medaliorh
PROOP

10 months ago

i guess i need to add a CNAME record for the root domain which is the one in the picture , please tell me if i get it right

1413136620508414052


medaliorh
PROOP

10 months ago

without having to change anything in the networking ??


10 months ago

you need to add a CNAME in namecheap, paste that CNAME into Railway, then it should propagate eventually


10 months ago

make sure to follow the step by step instructions in the docs


medaliorh
PROOP

10 months ago

i'll do that again


medaliorh
PROOP

10 months ago

DO i need to remove other record ??


medaliorh
PROOP

10 months ago

can you please walk me through each step !


medaliorh
PROOP

10 months ago

Ok i've managed to use the domain ! BUT , i wanna make the wp_admin access only by a production link and only by the devs , the fact that anyone can access the wp_admin . login page doesn't look secure to me ! right ?!


medaliorh
PROOP

10 months ago

i'm still playing with the varriables but it looks messy and poorly designed to me ! i've switching to railway cause i heard that i can custom/ control my routings freely , even if the website is on wordpress


medaliorh
PROOP

10 months ago

My idea is :

mydomain.com → Website only

docker-image-production-xxx.up.railway.app → Admin only (wp-login/ admin/ etc..)

IS this possible ? @Adam


10 months ago

It is possible if you use a Reverse Proxy like Caddy or Nginx, you can block the /wp-admin endpoint on your domain and allow it to be accessed only through the Railway provided domain.

I think you can also do this if you use something like Cloudflare WAF but I don't have much experience on it


medaliorh
PROOP

10 months ago

Interesting


medaliorh
PROOP

10 months ago

Do you agree with me that , that should be done for security reasons ? , or does hosting on railway already protects me from sqlinjection , ddos or other security vulnerability ?


medaliorh
PROOP

10 months ago

.


10 months ago

In my opinion: I get what you mean with this but I don't see how restricting access per-domain can be useful. Other thing, Railway itself is just a hosting provider, it doesn't block SQL injections (no hosting does that, it's up to you to prevent that at the application level). In Wordpress, you can do a few things to protect your application, such as not using third-party plugins, checking security settings...


medaliorh
PROOP

10 months ago

hmmm , is there at least a whitelist system that prevent people from going to the login page/ attempt logins ?


10 months ago


10 months ago

There's probably a wordpress plugin for that or you can use Nginx/Caddy for a IP whitelist of some sort (I would go with the wordpress plugin).


10 months ago

!s


Status changed to Solved medim 10 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...