After intalling Xampp on my Mac.
The address is http://192.168.64.2/dashboard
how can I make it to be accessible via localhost or 127.0.0.1 ?
You most likely installed the application that sets up a virtual machine. Revisit the download page and select the application without 'vm' at the end
here: https://www.apachefriends.org/download.html
Like Ab Ned said, you've probably installed the VM version. I guess that's a good thing because it might save your from unwanted side-effects. So, if you want to stick with it, just activate the port forwarding:
There's also a little walkthrough at https://www.apachefriends.org/faq_stackman.html.
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 am trying to make my static website in wamp public. In other tutorials, I saw that there's an option to make online/offline in httpd.conf. I dont see that now.
I changed the Listens 80 to Listens: 168.25.365..(private IP). But the wamp is yellow.
What do I need to make wamp server public?
You could make your wamp public, but it is ill advisable. WAMP is a developer's tool, to easily administer and install Apache, MySQL, and PHP on a windows machine.
To host your website, you need to host in on a publicly accessible host (still with a webserver (e.g. apache og nginx), with PHP and MySQL backend). This will require you to upload your code via scp or ftps and then configure your database via e.g. phpmyadmin.
If you REALLY want your wamp to be public, you need to keep your pc on, forward a port in your router (assuming something like NAT, unless your router gives you a publicly adressable IP), and opening firewalls etc. There are many reasons that this is a bad idea, among others that your PC is vulnerable to any attacks that the apache server in wamp is vulnerable to.
If you realise that this is not what you want to do, please rephrase your question to allow us to help you get an answer.
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.
Usually I prefer using Linux CentOS / Ubuntu for production server. However currently I got a customer who don't want to pay extra for hosting. In return he provides a server running windows server 2003. To save setting time, I would like to see if it is safe to use XAMPP as production server.
After some Google searches, many people says that it is not recommended, but usually with no reason given. The only exception is the official Q&A section, stating that there are the following security issue:
The MySQL administrator (root) has no password.
The MySQL daemon is accessible via network.
ProFTPD uses the password "lampp" for user "daemon".
PhpMyAdmin is accessible via network.
The XAMPP demopage is accessible via network.
The default users of Mercury and FileZilla are known.
So, if I am not installing ProFTPD and Mercury during XAMPP installation, setting a password for MySQL root account and set up a firewall that only allow public access on port 80, it seems that all 6 problems are solved?
If so, except the security issue listed above, are there any other security / performance issue that I should not be using XAMPP for production?
I think your approach is correct.
The most important points are to create a root password and configure the .htaccess file.
There are also guides how to make XAMPP more secure.
I have downloaded xampp and want to make some modifications in php system.
My question is about, if it is possible to make xampp inaccessible from network (network administration does not allow to provide any services in net) ? It would be nice if you could provide specific steps/folders/variables to change.
I work with ubuntu on xampp 1.8.3
Thanks
You can make xampp only bind to localhost as opposed to all interfaces, thus making it inaccessible from the network. In the httpd.conf file (I think in ubuntu, it's actually /opt/lampp/etc/extra/httpd-xampp.conf) where it says:
Listen 80
change it to:
Listen 127.0.0.1:80