What is the best (and easiest) way to set these up on Windows 7? I have tried Xampp and WAMP but all I get after installing them is a blank local host. So I create a php info file using the following code:
<?php
phpinfo();
?>
Put it in the httpdocs folder, call it using http://localhost/info.php and I get a 404 file not found error. Even though I followed the typical install settings.
Are you by any chance running Skype in the background? Skype claims port 80 and port 443 as a firewall workaround. You can disable this in the advanced options -> connection.
This happens to me almost all the time I set up a new PC...
The problem was not with either xampp or wamp. The problem was with the proxy that is installed where I was using the internet. It has blocked access to the localhost. Bypassing the proxy for localhost in Internet options -> Connections -> LAN Settings -> Proxy Server does not fix this for wireless so to access the webserver I have to disconnect from the network to what I need to do and then reconnect.
The web server worked fine when I was on other non proxy networks.
Related
I have recently enabled IIS by going to the Add/Remove Programs option in the Windows Control Panel and enabled IIS via the “Turn Windows features on or off” checklist.
I also want to install PHP for Windows on the same laptop and have downloaded XAMPP but I have yet to actually install it. Is it possible to do this and run them both from http://localhost/ - or is that not possible?
If so, great stuff... but if not, can you please give me some helpful pointers on how to achieve both IIS and PHP/MySQL running locally from the same PC?
You can have multiple servers on one physical machine, but you can only have one server running on one port. The default HTTP port is 80 and the default HTTPS port is 443. If IIS is running on 80 & 443, then WAMP will have to run on another port, and vice-versa. To access web servers on another port, you use the address http://localhost:PORT.
To change the ports of either web server see these questions:
How to change port number for apache in WAMP
How do I Change IIS Express 8 port 80 to 8080
In theory, it is possible to run two different web servers in the same machine. The only trick you need to consider for this is adjusting the reach points which are ports.
So the answer of your question is both yes and no. You can run them together in your localhost but if you want to access them both from http://localhost/ it is not possible. you need to provide the ports they've using to do that like http://localhost:5000/
To achieve this, you just need to adjust some settings files in your XAMMP etc. Change the default port and it should work.
I've installed XAMPP (Apache, MySQL, FileZilla, Mercury, Tomcat) Control Panel to my Windows 7 Professional which has IIS (ASP Server Service) turned on. It fails to start the Apache server saying that PID 4 (IIS Service, probably) is blocking my access activate the server. I've looked into netstats that there are IP addresses that are under PID 4 and it turns out that when I open those they browser shows me the welcome page of IIS/ASP server.
What could be the fix to this port conflict / port overriding of XAMPP's Apache Server to the IIS / ASP Server?
It would be a great helped if answered and the answer make it work.
P.S.: I can't provide log data due to it saying that the logs for Apache are not found. It did not start from the moment ever since I've installed it.
read the below article:
http://techbrij.com/setting-up-xampp-apache-iis-windows
you can use IIS and Xampp together by changing their port. by default both of them are listening 80 port and on the same local IP.
Go to the location of apache file and find the "httpd-ssl.conf"
You will find it here
"C:\xampp\apache\conf\extra" My installing location is C drive. You may put the location drive
Then Edit "httpd-ssl.conf" by using notepad and find "Listen 443" and replace 443 to 4430 to the whole documents and save. After that restart the XAMPP and hopefully it will start.
I am new to alot of things with WAMP/XAMPP, so i followed a few tutorials online, which required me to go to localhost/phpmyadmin. But every time i open the "webisite" i get an Error 404. As far as i know, no ports are blocked for either of the programs. when i start both apache and mysql on XAMPP it is highlighted green, and the ports are
Apache : 80, 443
MySQL : 3306
When i go to the WAMP icon, and test the port for Apache it says:
your port 80 is actually used by :
Server: Apache/2.4.12 (Win32) OpenSSL/1.01l PHP/5.6.8
which in my eyes isn't a problem.
I installed XAMPP for limesurveys, which i want to host locally. So everytime i open localhost in my browser it loads a website where i can choose from surveys. This list is obviously empty, but the important information is, THAT the webisite is available. now when i try open localhost/phpmyadmin i get a website telling me about Error 404 and stuff. I have checked, that phpmyadmin is installed when i installed WAMP, and also, that the alias in C:/wamp/alias/phpmyadmin.conf directs to the correct folder C:/wamp/apps/phpmyadmin4.1.14/. What im wondering is, why i cant open phpmyadmin...
If you have installed both xampp and Wamp on your machine try uninstalling one and just work with either one, I would recommend xampp. Make sure you move all your work files from htdocs or www, if your are uninstalling xampp or wamp respectively. Then try turning apache and mysql on and see if it works.
Good luck!
You can of course keep both XAMPP and WAMP running together keeping in mind that you have changed the default ports for either of it to some other ports rather than 80,443 and 3306, but sometimes it could create conflict as when you install some other third party softwares or enable certain services that run on port 80,443,3306.
The best alternative here would be to install one of the servers inside a virtual machine with network configured as "host-only-adapter" so that from the base machine you could access XAMPP/WAMP installed on the virtual machine by just pointing the ip-address of the virtual machine through a web-browser.
or,
If you want to run both XAMPP and WAMP together on the same machine but access only one of the servers at a time then you could go ahead installing both of them one after another. But, keep in mind that before installing the other server you have to completely stop all the services running from the XAMPP or WAMP control panel then quit the application. After this step you can go ahead installing the other server without changing any configurations or port numbers. This is because in this case we assumed that only one of the servers would be accessed at a time. Hence, before launching the other server one has to completely quit the application that is running currently by stopping all of it's services. If skype is installed then one has to change the default incoming connection ports to other than port 80 and 443.
Like mentioned above, if at all the intention is to access both servers up and running concurrently then taking advantage of a virtual machine would be the best to avoid conflicts and a long-term troubleshoots eventually.
If you messed up changing ports and config files then you could end up with the following error while trying to access phpmyadmin from XAMPP control panel:
**mysql said: Cannot connect: invalid settings. xampp**
note: while launching the servers , run it as administrator else some services will not start properly.
"I TRIED INSTALLING BOTH XAMPP AND WAMP ON WINDOWS 10 AS SUCH AS POINTED BY MANY THREADS I CHANGED THE DEFAULT PORTS FOR MYSQL & APACHE XAMPP AS IT WOULD CONFLICT WITH WAMP ALREADY INSTALLED ONLY ENDING UP UNABLE TO ACCESS PHPMYADMIN FROM XAMPP CONTROL PANEL. THEN REINSTALLED XAMPP WITHOUT CHANGING ANY CONFIGS OR PORTS. STOP THE WAMP SERVICES, QUIT THE APP AND THEN LAUNCH PHPMYADMIN FROM XAMPP CONTROL PANEL. AT LAST IT WORKED!. THE PROCESS LOOKS SHORT THOUGH WHEN IN REALITY IT TOOK ME COUNTLESS HOURS AND PAIN RESEARCHING ON THE WEB AND TESTING FOR A POSSIBLE SOLUTION UNTILL I CAME UP WITH THIS."
Hopes, this quick tips and guides would be helpful.
Stop all IIS services and Skype with generally use the same ports.
I'm trying to connect to my laptop's WAMP localhost from an Android device. But I still couldn't get it through.
Both machines are connected to the same wifi, and I think it should be okay since it shares the same router.
I've tried using my laptop's IP address, but it couldn't find the wamp index page.
I know there has been a lot of similar questions before, I've tried numerous solutions but still cannot make it work.
I'm using WAMP 2.5 with
Apache Version :2.4.9
PHP Version: 5.5.12
Server Software: Apache/2.4.9 (Win64) PHP/5.5.12
MySQL Version: 5.6.17
Here is my httpd.conf config file: Link to pastebin
Some things to try:
1. Make sure the firewall on the laptop will allow the android device through. You might just need to add an ip exception.
2. Make sure the firewall will allow for the service on the laptop to be accessed. It might just be allowing port 80 (or whatever port the WAMP server is set up on). It might also mean the WAMP executable.
3. Make sure the android is on the same subnet as the laptop. If not, and you cannot change it, you may need to do port forwarding on any routers between the android and laptop. (Forward to the port the WAMP server is listening on.)
4. Try other things that you know work - e.g. a different laptop/computer on the same subnet trying to access the WAMP server; try to access the WAMP server on the same laptop using the ip address and port for the WAMP server instead of localhost.
Just be fully aware of the security implications of the above. Opening firewall ports and having a web server on your laptop increase security risks. You might want to make sure the WAMP server is only running while you are testing, and you change your firewall back after testing.
I have opened a micro instance on AWS with a Windows_Server-2008-R2_SP1-English-64Bit-Base-2013.11.13 (ami-1e53c82e) virtual machine. RDS is open and I have connected with remote desktop connection. Additionally, at initialization I set HTTP (port 80), and HTTPS (port 443) although I do not know how to verify that now. From within the VM I navigated to XAMPP and installed a default installation (minus MySQL). I then navigated to XAMPP control panel V3.2.1 and started Apache. I set a password on XAMPP directory. I set a "Hello World" test txt file in htdoc and that loads in the VM browser. However, when I try to access the pubic IP, my local browser times out.
I think I covered the first three checks on
"xampp configuration in windows server 2008 r2 ec2 instance" post
but not sure how to change the elastic or private IP response if that is relevant.
If you're using VPC, you have to allow both inbound/outbound in the network ACL and inbound for the security group. You probably also have to open the ports in the windows firewall.
Edit: You definitely don't want to disable the firewall altogether. Also, it doesn't matter whether you use public ips from within AWS. And public host names resolve locally anyway.