Run Apache2 server and XAMPP on same machine (Ubuntu) - apache

I have XAMPP installed on my machine. Additionally, I have also installed apache2 as a stand-alone web server. How do I run both on the server independently?

You just have to make sure they listen to different ports.
XAMPP:
Listen 80
APACHE2:
Listen 90

Related

Apache: You don't have permission to access / on this server

Just installed WAMP on a Windows 7 machine.
When I go to localhost / from the localhost, everything works. But when I try to go to the machine from another computer on the local network, I get the following error message:
Forbidden
You don't have permission to access / on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at 192.168.1.13 Port 80
How do I solve this?
See the below question. You have to allow access through port 80 to your Apache server in httpd.conf by making sure you have Listen *:80
How to access site running apache server over lan without internet connection
An additional resource with items to do when you install a fresh copy of WAMP
http://forum.wampserver.com/read.php?2,119754,119754
Click on wamp icon > Apache > Apache modules > rewrite module(enable this module)

GitLab: How to use ONLY Apache2 and skip nginx?

I am running GitLab on Port 81 today and I need it to run on Port 80 or 443 so that I can access it from office. Problem is that I already host other services using Apache2 on both those ports.
I have tried for hours and hours to do a proxy forward of GitLab from Apache2 host:80/gitlab to host:81 (where nginx is hosting gitlab) without success. I just keep getting problems thanks to the added folder /gitlab in the URL.
So I am in the idea of selfhosting gitlab under my Apache2 server instead. I am thinking of this approach:
Create symlink to webroot of gitlab from /home/www/sites/gitlab
Set up a vhost in Apache on port 81 to point to above symlink.
Enable Apache2 to listen on port 81.
Verify that GitLab functions properly on port 81 using Apache2.
Once confirmed, set up a proxy forward from my Apache2 Port 80 under subdir /gitlab to forward to the new Apache2 Port 81 now hosting GitLab.
What I need to know now is:
Is it possible to completely host gitlab on your own Apache2?
What is necessary to enable in Apache2 virtual host dir? Or other configs? Ruby etc?
Where is the webroot of github index documents etc?
What do you think of permission issues? Will I see any problems?
Thank you all in advance!

How to set up OpenSSL on Wamp with IIS?

I installed openssl on my Wamp Server following the instructions found at How to install: OpenSSL + WAMP. I have my setup in my http.conf file to currently listen to port 8080 in order to accommodate running Wamp along side IIS.
ServerName localhost:8080
However, I cannot get my wamp server to run after I edit the httpd-ssl.conf file according to the instructions.
So my question is how do I run openSSL on Wamp along side IIS?
Running 2 webserverse on the same server needs to have either different ports or differnet IPs.
You took the road using a different Port which is working but then you need to call your server with
https://localhost:8080/

How do I configure apache2 to a port other than port 80?

I have installed apache2 on ubunto and have messed around with the text on the localhost page. Now I'm being asked to show it running on a port other than port 80. How do I do that?
You should change the line Listen x in your httpd.conf where x is the port number. You'll need to restart your apache server after that.
In the file: /etc/apache2/httpd.conf
change the following line:
Listen 80
to:
Listen <NEWPORT>
After that you need to restart the apache server:
sudo service apache2 start
UPDATE: Looks like with Ubuntu, the default /etc/apache2/httpd.conf is empty and the recommended approach is to create a new .conf file under /etc/apache2/conf.d so that even with software updates, the user changes are persistent.
So just create a new file say /etc/apache2/conf.d/mycustomizations.conf
Listen <NEWPORT>

How to change apache's default tcp/ip port

How can I make apache use port 3000 instead of 80 to run my ruby on rails application on an external server?
Edit your httpd.conf Find the line that says Listen 80 and change the 80 to whatever port you want to use.
Don't forget to restart apache.
In
Server version: Apache/2.2.22 (Debian)
Server built: Feb 1 2014 21:26:04
There is file named ports.conf in /etc/apache2 dir and you can change listening ports from there.
On Ubuntu, it's /etc/apache2/ports.conf.