Topic on Project:Support desk

Setting up MediaWiki alongside another site

6
Arvz88 (talkcontribs)

I have an Ubuntu desktop PC running as a server, which has Gitlab installed (Through the instructions here: https://about.gitlab.com/installation/#ubuntu)

I followed the instructions on Manual:Running MediaWiki on Debian or Ubuntu but when I come to the part where it wants me to go to http://localhost/mediawiki it just takes me to Gitlab instead.

I followed the instructions to set up symbolic link /var/www/html/mediawiki to /var/lib/mediawiki but it doesn't work still.

Not really sure how to make both Gitlab and MediaWiki work side by side, but ideally I would want localhost/gitlab and localhost/mediawiki to go to the respective sites. How do I do this? Thanks!

Malyacko (talkcontribs)
Arvz88 (talkcontribs)

@Malyacko I don't have a LocalSettings.php yet in my mediawiki install folder, because I haven't gone through the set up for media wiki yet, well because I can't get to it from the browser

Arvz88 (talkcontribs)

So it seems like the problem is because Gitlab has installed its own version of Apache, which is already running, so whatever apache I installed for mediawiki isn't running? Something like that?

Arvz88 (talkcontribs)

Ok, I shutdown Gitlab and then restarted apache2, and Mediawiki can now be accessed from localhost/mediawiki, but I still need to figure out how to get both running at the same time through localhost/gitlab and localhost/mediawiki

Ciencia Al Poder (talkcontribs)

You can't have 2 apache (or any other webserver) running on the same port. HTTP uses port 80 by default.

One or another must be set up to use a different port, then both can be run but one on port 80 and the other on a different port (like port 81, 8080, etc).

If each application has different webserver requirements that require both apaches at the same time, one option is to set Gitlab to a different port and set apache to act as a proxy to the Gitlab application when accessing the Gitlab paths

Reply to "Setting up MediaWiki alongside another site"