Sign in to follow this  
Followers 0
cjp87

Xampp On Whs 2011, Port Access

9 posts in this topic

Hello all,

I've recently built a home server using WHS 2011, and I've run into a bit of a problem while trying to set up an Apache/MySQL/php server using XAMPP. Prior to installing XAMPP, the port-forwarding features I had working were remote access (port 443) and the mstcs.exe remote desktop access (either port 3389 or 4125, not positive). Both worked fine, either way. Oddly, port 80 (http://... access to remote desktop) never worked, but I didn't worry too much since 443 did work.

However, after installing XAMPP, and assigning Apache to use port 81 (so as not to interfere with what WHS 2011 wanted to do with port 80), some issues arose. For one, port 443 closes when I have Apache running as a service, despite the two not being on the same ports. So I lose the remote web client when Apache is on (the remote desktop client remains active). If I disable Apache and restart, 443 becomes active again.

In all of this, however, 81 is never open to remote access. I can only access 81 from localhost:81.

I'm rather new to this stuff, so sorry if I'm not providing all the necessary information, but I would appreciate any help.

Thanks!

Share this post


Link to post
Share on other sites

Upgrade to a WGS Supporter Account to remove this ad.

Why bother with apache? Seriously? IIS supports PHP and works pretty well. In fact, if you use the Web Platform Installer, it will install PHP for you, and can install a number of other packages.

And if you absolutely need mod_rewrite support, there are a number of very good solutions and I've had best success (on v1 at least) with Helicon Ape (which has a free "3 site" version). Worth checking out, and no need to worry about more ports and such.

Share this post


Link to post
Share on other sites

I was using Apache under the assumption that the remote access page was the only external website WHS would set up by default. PHP and MySQL are really the things I need, and so long as I can copy the php and database files I've already got, it doesn't matter too much what avenue I go through to put it online.

Is there some issue with WHS 2011 and Apache compatibility? As a check, I installed XAMPP on my Macbook Pro, port forwarded port 81 (and changed the httpd files to direct to 81), and I have external access with no problem. So the disconnect is between the router and WHS (or rather, WHS and Apache, I imagine).

I will continue to look into the alternatives you suggested as well. Thanks for your time!

Share this post


Link to post
Share on other sites

WHS2011's IIS setup is "unique" and cause issues with other web servers from what I've seen. If you have mysql installed, you can probably just leave it (or copy the data files), but you'll want to "reinstall" php.

Head over to iis.net for details on how to install PHP and the like. And yes, you can use your existing data. :)

Share this post


Link to post
Share on other sites

Hi again. So, I followed several different sets of instructions to set up IIS with php/mysql, and while it would allow the website to appear through the WAN, the php was not translated into HTML (that is, it was broken images and a short line of php code). I'm pretty sure everything was properly configured, as I double checked every setting page with screenshots in various how-tos. Never did get the php translated.

Reinstalled XAMPP and tried a few things, like adding exceptions to the firewall. No matter what I do, it works on localhost/..., but will not work from the external IP or URL. Canyouseeme.org reports that the specified port is closed, despite having it open on the router and forwarded to the WHS machine, and then having the firewall exception and httpd file set to open and listen on port 3307. Seems no matter what I do, I can't get anything to work from all directions.

Of note, when I had things set up through IIS, phpmyadmin was available from the WAN. I have a friend who knows php and server side maintenance stuff, and he was able to access phpmyadmin when it was routed through IIS, but the webpage (which works in XAMPP/localhost) was still broken when accessed anywhere.

Any suggestions on what I should try next? I feel like either method is so close to success, but I haven't been able to figure out what component is missing from either.

Share this post


Link to post
Share on other sites

If phpMyAdmin was working just fine, and you had broken images and such, then it sounds like it was requiring mod_rewrite support. FastCGI sort of supports it, but not well. That may be the issue. Have you tried using one of the several mod_rewrite tools for IIS? (Helicon APE is the best IMO, and "free for 3 sites").

Share this post


Link to post
Share on other sites

I installed Helicon APE, but I'm somewhat lost as to what I'm supposed to do with it. Sorry for the noobishness, but I'm kindof fumbling around in the dark if I don't have something to try and replicate from a how-to or I can't treat it as I did in an earlier attempted method. Am I supposed to change anything with the configuration after installing Helicon APE?

Edit: After allowing directory browsing on the server, phpinfo now works correctly, via localhost or WAN. It seems this website is the only thing not working correctly, despite working fine under XAMPP (localhost).

Here's the broken front page, by the way.

OEV7B.png

Share this post


Link to post
Share on other sites

Hey again,

Just wanted to close this up by saying we figured out the problem. I guess XAMPP is okay with the short tag <?= (rather than <?=php), while IIS didn't like it quite as much (apparently due to potential XML confounding), and so it was not accepting the short tags as PHP code. So while the Apache/WHS issue was never resolved, it is working just fine through IIS, and all is well.

Thanks again for the help!

Share this post


Link to post
Share on other sites

Yeah, though you can manually edit the php.ini and turn on "short tags". I've noticed a lot of gallery type stuff want it enabled. For the most part, it should definitely be fine. :)

And glad that you got it working through IIS. Better to have everything working on one web server than have to have two running. IMO. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Similar Content

    • By alfio
      Hi
      since 4 weeks my server WHS 2001  is no longer updating the IP on the GoDaddy domain.
      The wizard set up and the repair function state that the account or the password are incorrect ( indeed they are the right one and I can access my account on GoDaddy).
       
      I tried to reset even the registry but no result so far and checked online forum but no workaround succeded
       
      Thanks or any ideas or suggestion
    • By HalTX
      I setup my WHS system in 2013 as an upgrade from an old SharePoint server. The system was used for backups and media archival. All my usage was from my home networked attached computers and everything worked as expected. I am now trying to connect to this network remotely. Specifically to remotely connect to 2 computers attached to the WHS.
       
      I followed several postings and the basic setup seems ok. On remotely connecting to the WHS site I get a certification error: "Security certificate presented to this website was issued for a different Websites address". On remote access, I can ignore this error and sign in to my WHS. After sign in on my HomePage I see on the local computers and the WHS server with all the correct status on each. When trying to connect to any computer I get a get an error, " Remote Gateway Server address and the certificate subject name do not match".
       
      Any ideas on how to fix this and what I did incorrectly in the setup?
       
      Note my configuration will be primarily:
         Remote computers running Windows 8.1
         Local computers running Windows 7 Pro or Ultimate
       
      I also tried connecting between computers when all computers are on the local network. The windows 8 machine will allow not me to login. I get the same mismatch address error.
    • By Sailwithed
      I appear to have stepped into it once again.  For a reason that doesn't deserve explaining, I disabled the "Administrator" account on my WHS box (using cmd "net user Administrator \active:no").  Now, I can't get into the server with Remote Desktop Connection (when I try to connect to the server, it won't let me log into the administrator account (well, duh, that's what I disabled) and, because the guest account is disabled, there appears to be NO way to get into the server.  Jeez, the Home Server Dashboard doesn't even get into the server.  Help!  Does anybody know how I can re-enable the administrator account?  Obviously, if I could get into the administrator account, I could run the elevated command "net user administrator \active:yes," but unfortunately, I can't get into the account to do that.  Sometimes I amaze even myself!  Ed
    • By toyboy
      I have an acer H340 upgraded to win 2011.  I got a better router and lost the ability to use remote access.  The router is a Hawking Tech HD45R.  
       
      I am not what I would call network saavy but have computer skills so I did a lot of googling and tried a lot of settings to no avail.  If anyone has experience with these routers, I could use some assistance.
       
      Thanks in advance,
       
      Scott
    • By ncarty97
      Having a strange error.  I set up my brother as a user so he can access some things for our business.  His login works fine on any of my machines, on his iPad or on his laptop using Firefox or Chrome.  However, using IE (he has 11 with the most recent update) on the laptop, he can log in, he briefly sees the screen where you see the folders, PC's, etc., then it flashes to a 404 error.
       
      I can't replicate this on any other machine.  I have the exact same version of IE running on two machines (I checked the extended version number) and it doesn't happen.  I had him clear everything out of IE (using the delete history screen), didn't fix anything. 
       
      I googled the probem and found this:  http://support.microsoft.com/kb/2885314  but I already have the update it talks about installed.
       
      Anyone else ever had this issue?  It wouldn't be that big of a problem except that we are using the RemoteApp for Quickbooks and unfortunately that requires IE.
       
      Thanks!


Upgrade to a WGS Supporter Account to remove this ad.