Wamp server installed on windows server 2008 r2 not accessible through WAN - wamp

Objective: make contents of wamp 2.5 (www) directory accessible to web users, installed on windows server 2008r2 data center (with evaluation keys.)
progress so far : i am able to view the directory in the LAN but but am unable to access it with my public ip.
Have changed listen in httpd.conf to my servers local ip
added inbound rules for port 1433,80 and 8081 in windows firewall (seems to be on 80)
port forwarded my router to port 1433,80 and 8081
and still cannot access contents of the www directory in wamp publicly
been at this for a while now could someone please tell me what i am missing?
Thanks!

Related

Local Server not loading in Ubuntu VirtualBox

I have laravel app which is running in my windows local server. This laravel app is running port:80. I want to load this app in my Ubuntu VirtualBox.
My IP Config:
IPv4 Address : 192.168.8.157
Subnet Mask : 255.255.255.0
Default Gateway: 192.168.8.1
I have config my virtualbox as Bridged Adapter. In my /etc/hosts (ubuntu virtualbox), I have this :
127.0.0.1 localhost
127.0.1.1 asus
192.168.8.157 v2.my.local
I have made a hello word app (node.js) in my local windows which is running on port :3000, and it is running in my VirtualBox by typing v2.my.local:3000, but if I type v2.my.local on my VirtualBox, it is not working (although app is running on windows local machine). it says:
This v2.my.local page can’t be found
Any suggestion? Thanks in Advance.
May be windows firewall blocking connections via port 80. turn off firewall and try it, if it works. Start windows firewall and add firewall rule to allow connections via port 80. If your windows version is 10 then, it will block all virtual box related connections. make sure to add correct rules.

WAMP Server - local server - 1 of 2 services running

I installed WAMP server and ran the applpication. The icon in the taskbar stays orange and says "local server - 1 of 2 services running" . Also, I am able to see the phpMyAdmin page in the browser but when I try to login it gives the following error:
#2002 - No connection could be made because the target machine actively refused it. <br />The server is not responding (or the local server's socket is not correctly configured).
I have tested port 80 and I got this response:
***** Test which uses port 80 *****
===== Tested by command netstat filtered on port 80 =====
Test for TCP
Your port 80 is used by a processus with PID = 6612
The processus of PID 6612 is 'httpd.exe' Session: Services
The service of PID 6612 for 'httpd.exe' is 'wampapache64'
This service is from Wampserver - It is correct
Test for TCPv6
Your port 80 is used by a processus with PID = 6612
The processus of PID 6612 is 'httpd.exe' Session: Services
The service of PID 6612 for 'httpd.exe' is 'wampapache64'
This service is from Wampserver - It is correct
===== Tested by attempting to open a socket on port 80 =====
Your port 80 is actually used by :
Server: Apache/2.4.18 (Win64) PHP/5.6.19
I believe that the above result means that there is no problem with the port. I even tried changing the port and still gives the same status - orange icon.
Note - When a prompt from Windows Firewall was shown after installing WAMP, I didn't give access to both private and public networks, i.e. I unchecked both the options.
Kindly help me to run both the services in the local server.
Thank you!
Click on the WAMP icon in the tray and go to Apache > service Administration and check if the service is installed or if it isn't running . You can even reinstall it by removing and installing it again. Do the same with MySQL . Go to MySQL > Service Administration and do the same things . In my case Apache service wasn't installed and Installing it did the trick. check the image below.
See this image
Most of the answers given on the Internet say to change the port used by Apache but that is not the solution in most of the cases.
Actually, start the WAMP server->right click on the icon -> tools -> use a port other than 3306 -> click on this -> set on 3308.
Hopefully, this will resolve the error.
I had the same problem but only Skype was using port 80. I just changed port 80 from Skype and make it use another one. OR you can change port 80 used by Apache. To do this go to WAMP -> Apache -> http.conf and change Listen 80 with Listen 81 for eg.
The same with me but in my case I installed mysql after installing wampserver so there was a port conflict between the integrated version and the independent version of mysql for the port 3306, so the problem could resolved either by changing one of ports
If you want to change wampserver's mysql's port go to the taskbar icon right click and the go to tools select: use a port rather than xxxx(3306 in my case)
This thread helped me.
How to change port number for apache in WAMP
Thread Details below
Just go to httpd.conf file, for ex. under WAMP environment its situated at:
C:\wamp\bin\apache\apache2.2.22\conf\httpd.conf
go to line no. 46 and edit Listen 80 to your requirement for ex.
Listen 8383
newer versions of WAMP uses these 2 lines:
Listen 0.0.0.0:8383
Listen [::0]:8383
Next go to line no. 171 and edit ServerName localhost:80 to your requirement for ex.
ServerName localhost:8383
Restart Apache and its done !!
Now, you can access with your URL:
http://localhost:8383 or http://192.168.1.1:8383
Hope it helps to people looking for solution here.
No need to remove and reinstall WAMP or edit Host file or change any port. this problem happens when Internet Information Services (IIS) Manager service is running. you need just stop IIS to run wampapache service without any problem.
press start then type iis and run Internet Information Services (IIS) Manager and in right panel press stop. then click on wamp icon on system tray and choose start all services.
this is all you need.
I had the same issue some time back. Tried all kinds of things and finally found the link below. Basically the issue was:
A parameter in your 'my.ini' file (C:\Wamp\bin\mysql\mysql<version>) called 'lower_case_table_names'
If there, comment it out and restart MYSQL again."
If I recall, also did a computer restart also just for good measures.
http://forum.wampserver.com/read.php?2,136457
This might be because php is not working because the default port 80 is taken so u need to change the port follow these steps
1. Click the wamp icon from the bottom right corner
2. Go to Apache->httpd.conf and open this file
3. Search for word Listen in the file and change these two lines
Listen 0.0.0.0:8018 (u can use any digits instead of 18 )
Listen [::0]:8018
4. Now search for the word localhost and change this line
ServerName localhost:8018
5. Restart wamp
6. Go to your default browser and type http://localhost:8080/ this will open the wamp menu
It's either your WAMP Apache port is clashing with IIS (if that is installed and running), or MySQL port is clashing with another MySQL install.
Edit your WAMP > Apache > httpd.conf by hovering cursor over Apache inside WAMP tray icon. Change port 80 to an available port like 8181. Restart all services.
I had the same issue, where only 1 service out of 2 was running. But my issue was not a port issue.
I had previously zipped up a bunch of .conf files in the alias directory to share them with a colleague, and I left the .zip file there. This caused an error in Apache as it tried to use the .zip file as an alias.
Once I removed the .zip file from the alias directory, my Apache services were working fine.
Bit of an 'outside the box' answer, but this was my issue with the same symptoms!
Maybe it is not a port problem.
if you had a problem because msvcr110.dll is missing
so after you setup the library you will get this problem service 1 of 2
so in this case you have to reinstall the wamp server.
I had faced similar similar issue where the server was not starting up with the following message - "local server - 1 of 2 services running" , with server icon in Orange color.
With nothing updated in the error logs. Finally was able to track issue through -
Wamp server icon -> Apache -> Service Administration 'wampapache64' -> install service
Error message : WAMP - 'Your port 80 is actually used - Error'
Resolution : Change the port number of the wamp server to some other number,for example 5050.
Go to: C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf
In that file change the listen port to 5050.
#Listen 12.34.56.78:5050
Listen 0.0.0.0:5050
Listen [::0]:5050
Save and Restart. Now you can see the server started successfully with green icon.
Following threads helped me to resolve this issue :
How to change port number for apache in WAMP
WAMP - Your port 80 is actually used - Error
GO to run type Services and enter
check these two services must start

How to access local host from vmware on mac?

How can I access local host from vmware on mac? I have Modern IE image running in vm ware. I want to be able to access localhost address from the iE.
I have the following in my /etc/hosts file on my mac:
127.0.0.1 example.example.com
127.0.0.1 beta-example.example.com
I want to be able to access beta-example.example.com from vmware VM.
(update: I just did a test on my IE11 - Win8.1 from modern.ie without Charles running for a local domain and it works. Charles is only needed for me when I'm trying to access a Vagrant VM that has a unique IP)
I've been using Charles with macOS and Vagrant, but you can do this without Charles for localhost macOS domains.
If you look at your local /etc/hosts file for your domains it's going to have the 127.0.0.1. For example, mine has:
# local macOS /etc/hosts
127.0.0.1 workalicious.dev
::1 workalicious.dev
Take a look at your local macOS > System Preferences > Network and grab your IP address, currently mine is 10.1.10.146. In the VM run Notepad as the Administrator and open C:\Windows\System32\drivers\etc\hosts
In that hosts file on the VM add that IP address you just got from the local macOS and include it with your localhost domain in you VM's hosts file, for example:
# VM's C:\Windows\System32\drivers\etc\hosts
10.1.10.146 workalicious.dev
You should be able to browse to your localhost domain name on the VM, it's linked through the VM's hosts file and your local IP address. Make changes to the files and see the updates on the VM. Great for testing in IE or other browsers on the VM.
(next bit only if you are using a VM with Vagrant, you don't need Charles for localhost domains)
Start Charles and allow proxying. Now that you have the local IP in the VM hosts file, open up IE and go to the gear (top right for IE11) select Internet Options > Connections > LAN settings then check the Proxy server and add your local macOS IP to Address: XX.X.XX.XXX with the Port: 4444
Then when you browse to your domain, Charles on the macOS should alert and you can allow, then you should see your local macOS domain on your VM's browser. You can make changes locally and refresh and see the changes on the VM.
The only bummer is Charles isn't free, but worth the $50. It's great for doing a similar approach on a mobile browser within the your local network, only easier!
I started using Charles for mobile then thought I'd try for VMs using Vagrant, works great with the Proxy settings in IE.

Access rails server from host machine

My rails server (WEBrick 1.3.1) is set on the virtual machine (ubuntu 12.04) and use NAT. The default IP address is 10.0.2.15 with port 3000. How can I access from my host machine (win8) ?
I have tried to use port forwarding but it doesn't work.
Settings -> Network -> Port forwarding
Protocol | Host IP | Host Port | Guest IP | Guest Port
TCP 127.0.0.1 3308 10.0.2.15 3000
By setting your port forwarding as you did, you are telling your host PC that when you visit 127.0.0.1 at port 3308 in your browser, you want that resolved to be your guest virtual machine's I.P. address at port 3000.
With your virtual machine's Rails server running, open a browser on your host PC and navigate to 127.0.0.1:3308.
If your browser doesn't render your guest server's web pages, I'd suspect you have a port conflict (that port 3308 may already be in use). In that case, search for ways to view what ports are currently in use on your PC. Find a port which is not in use and use that in your port forwarding's host port settings.
If anyone faces the same problem, after port forwarding, I resolved this problem running the server binding the ip address of the virtual machine like this:
rails server -b 10.0.2.15

WAMP changed port but the application link wont update from localhost to localhost:8080

WAMP changed port 80 to 8080 in Apache > httpd.conf but the application link won't update from localhost to localhost:8080
And so I have to type :8080 when starting the application over and over again...
The Question is:
Is there any way to make wamp application link to localhost and localhost/phpMyAdmin to localhost:8080 and localhost:8080/phpMyAdmin so I don't have to type this all the time ?
Thx :)
Edit c:/wamp/wampmanager.tpl file so the WAMP menu points to localhost:81.
Find http://localhost and change it to htttp://localhost:81
also, if you think something else has already grabbed port 80, that is why its not working..,then,
Run wampmanager->Apache->Service->Test port 80
This will launch a command window and tell you what is using port 80.
Whatever it is will need to be re-configured to use another port or for example if its IIS and you dont use IIS it should be un-installed.