Migrate a Wordpress App from Namecheap to railway
medaliorh
PROOP

3 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

0 Replies

medaliorh
PROOP

3 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

3 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.


adam
MODERATOR

3 months ago

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


medaliorh
PROOP

3 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

3 months ago

1413131320149934000


medaliorh
PROOP

3 months ago

1413131468602871800


medaliorh
PROOP

3 months ago

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


medaliorh
PROOP

3 months ago

1413132687979450400


medaliorh
PROOP

3 months ago

1413132865985712400


medaliorh
PROOP

3 months ago

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


adam
MODERATOR

3 months ago

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


adam
MODERATOR

3 months ago

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


medaliorh
PROOP

3 months ago

1413135925554446600


medaliorh
PROOP

3 months ago

1413136086401810400


medaliorh
PROOP

3 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

1413136620508414000


medaliorh
PROOP

3 months ago

without having to change anything in the networking ??


adam
MODERATOR

3 months ago

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


adam
MODERATOR

3 months ago

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


medaliorh
PROOP

3 months ago

i'll do that again


medaliorh
PROOP

3 months ago

DO i need to remove other record ??


medaliorh
PROOP

3 months ago

can you please walk me through each step !


medaliorh
PROOP

3 months ago

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


medaliorh
PROOP

3 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

3 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


medim
MODERATOR

3 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

3 months ago

Interesting


medaliorh
PROOP

3 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

3 months ago

.


medim
MODERATOR

3 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

3 months ago

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



medim
MODERATOR

3 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).


medim
MODERATOR

3 months ago

!s


Status changed to Solved medim 3 months ago


Loading...