Topic on Project:Support desk

Mediawiki and CPanel Alias

14
SweeBill (talkcontribs)

Hi everyone, I am using Mediawiki on a hosted site that uses CPanel. We are attempting to set up an alias so that my users can go to a domain that we own as opposed to my hosted domain. We've set up the appropriate CNAME on our DNS for the url, and an alias in the cpanel. However, after going to the site, it does not retain the "normalized" url. My hosting site support says they think it's a configuration in the mediawiki settings that needs to be changed. Any thoughts on how to make this happen?

The site url we are attempting to use is https://constructionmanual.deldot.gov. It redirects to https://constructionmanual.deldot.a2hosted.com. Any help would be greatly appreciated!

MarkAHershberger (talkcontribs)
SweeBill (talkcontribs)

@wgServer is set to $wgServer = "https://constructionmanual.deldot.a2hosted.com"; Changing it to https://constructionmanual.deldot.gov takes me to a default a2hosting page. It's currently set like that right now, if you want to see what it's taking it to.

I'll be honest, I know just enough to be dangerous and don't have a ton of support from our IT section on this. They'd prefer I use Sharepoint's wiki, so they are relatively hands-off. I am not currently using short urls, but would be open to it if it'll fix it.

SweeBill (talkcontribs)

I have to walk away from my computer for a few hours, so I am going to change it back so that the site at least works for our users. Let me know if you'd like me to change it back so you can see what it's doing.

MarkAHershberger (talkcontribs)

Nice wiki!

I don't understand why it isn't behaving correctly. Let me know when you are around to change it back.

SweeBill (talkcontribs)

Hi Mark, I'm back. Thanks for the compliments. I've switched it back again to where it's "broken"

@MarkAHershberger

SweeBill (talkcontribs)

Also, just to make sure I mention it. Mediawiki isn't installed in it's default location. I created a subdomain that I installed it under. So, it's in a constructionmanual.deldot.a2hosted.com folder on the server. I hope that's the right way to explain it...

MarkAHershberger (talkcontribs)

I think @Bawolff is probably right. This sounds like a cpanel issue. It is probably related to the different directory names you mentioned.

SweeBill (talkcontribs)

Sorry, I ran out of time again and needed to set it back.

I may try to call A2Hosting support again just to make sure I have it all set up right and hope to get hold of someone in support that has some sort of mediawiki experience.

They seemed to think that there was something missing in the localsettings.php that I needed to set, but I'm starting to wonder now if there is just something set up incorrectly, or if I set something up incorrectly when I set the server up.

Bawolff (talkcontribs)

So when changing $wgServer and you get a default hosting page, sounds a lot like something wrong with your (apache) virtual host settings. Check if cpanel has something about virtual hosts.

SweeBill (talkcontribs)

So, just to update everyone. I had A2Hosting wipe the account and I started over from scratch. We set up the Primary Domain as deldot.gov and I create the constructionmanual subdomain under the public_html folder. Everything is working now like we want. Feel free to go to https://constructionmanual.deldot.gov to check it out.

Lady G2016 (talkcontribs)

@SweeBill I checked out your wiki.

Your footer links need content - "Privacy policy", "About", and "Disclaimers" all say "There is currently no text in this page."

This is MediaWiki's way to politely say "Page not found".

Also, consider updating to PHP 7.4. It's faster, but you'll need to consider compatibility with other applications which also run PHP on that server.

SweeBill (talkcontribs)

@Lady G2016 Thanks for the reminder. Although, I don't believe we require a Privacy Policy, but I'll double check with our group to make sure of that.

As far as PHP goes, I'm not sure I have control over that with this hosting solution, but I'll reach out and ask if it can be upgraded.

MarkAHershberger (talkcontribs)
Reply to "Mediawiki and CPanel Alias"