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 !
0 Replies
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 !
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.
3 months ago
Please break down your issue further. What’s the error you’re encountering?
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 !
3 months ago
You can find the docs for setting up a public domain here: https://docs.railway.com/guides/public-networking
3 months ago
If Namecheap doesn’t give you a CNAME record, transfer it to Cloudflare
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

3 months ago
you need to add a CNAME in namecheap, paste that CNAME into Railway, then it should propagate eventually
3 months ago
make sure to follow the step by step instructions in the docs
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 ?!
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
My idea is :
mydomain.com → Website only
docker-image-production-xxx.up.railway.app → Admin only (wp-login/ admin/ etc..)
IS this possible ? @Adam
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
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 ?
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…
hmmm , is there at least a whitelist system that prevent people from going to the login page/ attempt logins ?
3 months ago
You can read more about it in this docs page: https://docs.railway.com/reference/production-readiness-checklist#security
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).
3 months ago
!s
Status changed to Solved medim • 3 months ago




