Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Not sure how many here touch wordpress, but I have a test server running the latest wp, 5.5. Server is rhel 8 for wp, and I have a separate rhel 8 server for the mysql db.
Now, I can get through the setup and log into the admin console.
My issue is when I try to set the URLs for it.
Changing either/both of the ULRs causes the site to be unreachable.
Only thing I can think of is that I have not set up a vhost at all, and maybe that is the problem.
But I am wondering if anyone knows more about this issue?
I am also on the wp forums, but they are not heavily populated.
This is a shot in the dark, but in general, if you are going to use URLs, as opposed to ip addresses, you need some sort of DNS service to translate the URLs into ip addresses. It can be a local DNS or even hosts files for a local connection, but you still need something to translate the ip address into the URL.
I had also thought of dns, I will have to check into that.
I am going to be running multiple sites on 1 server, and they will be world accessible. This is also a replacement server, so I'd like to keep the same URLs. Right now, I am just trying to get a wordpress test fully functional.
As frankbell said, you will need to setup something to translate URLs to the server IP addresses.
But the site URLs are also managed within WordPress. I don't recall exactly where, but when changing a test site to a live site -- from testsite.com to livesite.com for example, we had to also change the base URL setting in the site configuration. wordpress.org documentation is your friend.
Bringing this back up, as I know a bit more about wp now.
So, still rhel 8, latest wp, but I doubt that matters much.
This will still be a replacement server, eventually.
So, I can get wp installed, and do multiple installs. These installs all work at first, before I touch anything for a vhost file.
So, ip/install name such as wptest/1/2.
So, I get through that and I can install plugins, ect.
Now, since multiple sites will run on 1 server, I need a vhost.conf and ssl. conf. Well, I think I need the ssl.conf, I installed the mod_ssl.
My work has internal dns, and that is all I am using for now. The world dns can wait for now.
So, I set a cname for both test installs, wptest and wptest2. I set up a vhost file with an entry for both sites. They are identical aside from of course the name, a 2 added, and the document root location.
Restart httpd, of course.
When I put in the first name, page comes up fine. Second name, not so much.
URL not found, and it shows the IP of the server and directory root.
I've tried to look at the current server, but it only provides part of the picture.
Ideas are welcome, as are sites that might describe a comprehensive setup.
Thanks!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.