XAMPP in Windows Server 2008 Enterprise

Problems with the Windows version of XAMPP, questions, comments, and anything related.

XAMPP in Windows Server 2008 Enterprise

Postby andreicek » 26. September 2009 09:13

Hello,
I have a problem with running a XAMPP in Windows Server 2008. The HTDOCS isn't accessible using the IP address of computer (192.168.1.3), but only from localhost form that computer. Is there something that I have to configure before using XAMPP. I am new to Windows Server 2008.

TNX for your help,
Andrei
andreicek
 
Posts: 16
Joined: 07. January 2009 20:59

Re: XAMPP in Windows Server 2008 Enterprise

Postby Nobbie » 26. September 2009 11:04

Edit the Apache configuration file httpd.conf and look for the "LISTEN" directive. Usually Apache listens on all IPs and all Ports, but if a LISTEN directive is supplied, it listens only on that IP (and/or Port).

Examples:

LISTEN 80 ----> Apache listens (still) on all IPs, but only on Port 80
LISTEN 127.0.0.1 ----> Apache listens only on 127.0.0.1 (localhost), but still on all Ports.
LISTEN 127.0.0.1:80 ----> Apache listens only on 127.0.0.1 and only on Port 80

You may specify more than one LISTEN directive, Apache will listen to all specified IPs/Ports. Probably your httpd.conf contains a LISTEN directive, which points to 127.0.0.1 (with or without port specification). Either delete that LISTEN directive (in that case you MUST be sure, that this is the only LISTEN directive in your configuration) or add one LISTEN directive which points to 192.168.1.3. Then restart Apache.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: XAMPP in Windows Server 2008 Enterprise

Postby xamppapache » 03. May 2012 10:34

Hi All,
What Nobbie mentioned here is exactly correct. Before proceeding further I thank Nobbie for his contribution and guidance. I also had the problem running XAMPP from another system in our LAN. As Nobie guided us, I made the following changes in C:\xampp\apache\conf\extra\httpd-xampp.conf file.

Note: - The xampp-win32-1.7.7-VC9-installer was installed in our Windows Server 2008 system.

*****************************************************************************************
#
# New XAMPP security concept
#

# Close XAMPP security section here
<LocationMatch "^/(?i:(?:security))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 192.168.3.5/32 192.168.3.26/32
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>

# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 192.168.3.5/32 192.168.3.26/32
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>

*****************************************************************************************
In the above configuration, the only change is that I've added "192.168.3.5/32 192.168.3.26/32" at the end of the line " Allow from ::1 127.0.0.0/8 ". Please note that after each IP address/mask there must be a space before entering the next IP or range of IPs. Also, I've used mask as /32 because I need to allow only specific IP's of the host computers which I access from and so it is more secure than simply commenting all and putting your computer security at risk.

If you want to specify a network then after "Allow from ::1 127.0.0.0/8" followed by a space (no quotes required), type in the network; for example:- If you want to have an enter 192.168.3.0 network then enter it as 192.168.3.0/24. It'll make sure that you'll be able to access XAMPP Server from the LAN which has any of the IP's in the range 192.168.3.1 - 192.168.3.254.
xamppapache
 
Posts: 1
Joined: 03. May 2012 09:56
Operating System: Windows 7/Windows Server 2008

Re: XAMPP in Windows Server 2008 Enterprise

Postby Bigdickau » 14. March 2014 05:33

Hi To All

i have the same problem I have server 2008R2 enterprise with ad and dns up but not configured yet. I have install xampp as instructed the program is a php program so i have a couple questions.
1. do i need to have iis7 installed also ports 80 and 443 are required forth program to get up and running.
2. iis 7 is needed what other sub programs are required

many thanks

Richard C :shock:
Bigdickau
 
Posts: 2
Joined: 31. January 2014 05:47
Operating System: Windows server 2008 r2

Re: XAMPP in Windows Server 2008 Enterprise

Postby Nobbie » 14. March 2014 12:35

Bigdickau wrote:1. do i need to have iis7 installed also ports 80 and 443 are required forth program to get up and running.


No, it is just vice verse, you MUST NOT run IIS7, as it collides with Apache, you can only run one application per Port. As you need Port 80 and 443 already for Apache, you cannot run IIS7 (and vice verse).
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: XAMPP in Windows Server 2008 Enterprise

Postby Bigdickau » 14. March 2014 22:59

many thanks

Richard C :D
Bigdickau
 
Posts: 2
Joined: 31. January 2014 05:47
Operating System: Windows server 2008 r2


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 95 guests