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.



  • Posts

    • I had no problem with Windows 10.  However, I just completed the anniversary update and now the "Connector" won't run to conclusion.  It backs itself out and reports an unspecified error.
    • Apologies if I'm being stupid, but I'm having great trouble understanding how Lightsout backup and the Server Essentials 2012 backup work together (or fight with each other). I find the Lightsout documentation on this very unclear, and various threads have left me no wiser. I'd appreciate some help! Here's the setup: Lightsout is running nicely on the server. Before backups were set up, I established that the server hibernated when the clients were switched off. The server woke up when a client was powered up. (This behaviour broke when backups were set up.) The server is Essentials 2012, with a number of client laptops: a mix of Windows 7, 8 & 10. The Essentials backup window is 22:00 - 07:00. No backup settings are currently made in Lightsout. Here's what I'd like to achieve: At the end of the working day all the clients are put to sleep or hibernate (or switched off completely, I don't care which). Ten minutes after that, Lightsout hibernates the server. Sometime during the night (22:00 - 07:00) the server wakes up, then wakes up the various clients in turn, backs them up, and puts them back to sleep / hibernate / shutdown (I don't care which). Here's what actually happens (when I look at the uptime chart the next morning): At the end of the day (about 17:15) the clients are put to sleep / hibernate. (I tell the team not to shut down their client laptops because I assume the server can't wake a completely shut down client - is that correct?) The server does not hibernate. Approximately 90 minutes after the clients were put to sleep / hibernate, they all wake up simultaneously (around 18:45, but I don't know why this happens). The clients then stay awake all night. Later, from 22:00, some of the backups take place (but not all of them). The backups are spread wide apart in the 22:00 - 07:00 window with lots of time when nothing is going on at all. The clients do not go back to sleep / hibernate after their backups. ...can anyone suggest what combination of settings I should be using to get the desired behaviour? Here are the sort of things that are confusing me, but I can't find definitive answers (and each experiment I do takes 24 hours to give any results!): I know I can specify clients' individual backup times in Lightsout, but I don't know how long a client's backup will take, so I could have backups overlapping each other and causing a traffic jam. Should I worry about this? If I set Lightsout backups, what do I set for the Essentails backup window? What if it's not long enough to get all the backups done? If I make settings in the Lightsout backup dialog do I have to complete everything in that dialog box? Does this make the Essentials 2012 backup settings redundant? What about the Essentials 22:00 - 07:00 backup window, does that matter any more? I tried setting client backup times in Lightsout with an end action of 'sleep'. The backups didn't happen at all and clients all spontaneously went to sleep in the middle of the working day (the server / clients clocks all match, I checked). Can Lightsout wake up a client laptop that is completely shut down? Thanks for reading this long post and sorry if these seem like stupid questions. I already have WHS2011 / Lightsout running perfectly on another setup (where my backups take place during the day), but nocturnal backups are a new level of complexity for me!
    • Christopher wrote:  << And to clarify, if you want multiple backup drives to be cycled offsite, you MUST connect all of them at the same time when you set up the backups. >> I'm not clear about this. To the best of my recollection, I never connected both of my backup drives to the server at the same time,  For test purposes, I just initiated a recovery (using the WHS Installation Disk) with each of them hooked up.  The one that has been offsite and the one that backed up last night were both found by the "Repair an existing installation" procedure.  Perhaps I'm misreading your clarification.
    • Please check if task scheduler is still working. If not use this tool here https://repairtasks.codeplex.com/ If that does not help you may try to reinstall WHS Connector.
    • My WHS v1 (home build) starting misbehaving and finally needed a new system disk.
      After lots of threads, trial and errors, AF and non-AF drives, and lack of the Server Reinstallation choice it has finally progressed.
      Weeks of frustration. My recent attempts proceeded well but all ended up without the rebuilding of the Storage Pool (6 drives).
      The drives are detected and show up as "not added" in Server Storage and as "non managed" in Disk Management.
      There is no C:\fs on the SYS volume.
      It appears that the RebuildPrimary stage of the reinstallation, mentioned by some posters, was not successful. Has anyone found a way to force the rebuilding of the Storage Pool on reinstallation?
      I have tried X: Files v1.5.5 and the original Microsoft Disk with the same outcome. [My next step will be to migrate the "shares" and "folders" manually - it would have be quicker to have done this initially.]
       
  • Popular Contributors