Link to home
Start Free TrialLog in
Avatar of Steve Williams
Steve WilliamsFlag for United States of America

asked on

How to fix Dual Server Conflict GitLab vs Apache2

I have a Linux Ubuntu Server 16.04.2 LTS(64bit) Installed on a small Zotac Mini PC for a small project I'm working on. I installed the Gitlab server on this so I can archive and maintain my projects in Visual Studio 2017. The Gitlab server works great I love it. I recently decided to start playing with PHP, MySQL and Apache Server. So I installed Apache on the same machine. I have this error show up when I check the status of the Apache2 Server:

● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: inactive (dead) since Fri 2017-04-21 12:14:27 EDT; 45min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 21048 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCES
  Process: 21029 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCC

Apr 21 12:14:27 UbuntuSvr1 apache2[21029]: (98)Address already in use: AH00072:
Apr 21 12:14:27 UbuntuSvr1 apache2[21029]: (98)Address already in use: AH00072:
Apr 21 12:14:27 UbuntuSvr1 apache2[21029]: no listening sockets available, shutt
Apr 21 12:14:27 UbuntuSvr1 apache2[21029]: AH00015: Unable to open logs
Apr 21 12:14:27 UbuntuSvr1 apache2[21029]: Action 'start' failed.
Apr 21 12:14:27 UbuntuSvr1 apache2[21029]: The Apache error log may have more in
Apr 21 12:14:27 UbuntuSvr1 apache2[21029]:  *
Apr 21 12:14:27 UbuntuSvr1 apache2[21048]:  * Stopping web server apache2
Apr 21 12:14:27 UbuntuSvr1 apache2[21048]:  *
Apr 21 12:14:27 UbuntuSvr1 systemd[1]: Started LSB: Apache2 web server.
Warning: apache2.service changed on disk. Run 'systemctl daemon-reload' to reload

Open in new window


I was wondering if there is a conflict between the Gitlab Server and the Apache Server both using the same port. If so does anyone know how to fix this issue?
ASKER CERTIFIED SOLUTION
Avatar of Dan Craciun
Dan Craciun
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Steve Williams

ASKER

Dan, That's what I did. I changed the port to 81 and now both are working just fine. I awarded you the most points because that was exactly what I did.

I awarded Arnold some of the points because his solution would work also, I just didn't think of it..

I appreciate both of your help and your time it's greatly appreciated.