How to make non-accessible xampp server from network? - php

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

Related

How to run both Microsoft IIS and WAMP on the same PC via localhost

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.

How to make my static website public in wamp

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.

xampp installed on Mac not accessible via localhost, only local ip

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.

Port Conflict with XAMPP Apache

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.

Zend Server and ASP.NET

I've installed Zend Server, and it works well - it's on localhost, port 81, with the admin interface/phpmyadmin on port 10081.
I'm not really sure how to get it working with ASP.NET as well as PHP, if that's possible.
How would you configure this with IIS.
I should add, I also have an existing Apache install on port 80 using Web-Developer Server Suite downloaded from sourceforge.net; should I move everything over to the Zend one, then change the Apache config to port 80, uninstall the old Apache?
As for aspx files, can they be run on Zend within the install (my directory for it's C:/websites1/, the Apache files residing in Apache2/htdocs in this directory), but where would you put IIS files and how would you be able to run both Apache and ASP.NET on port 80 in this - modaspdotnet?
Not sure what's the best way to do this, so advice is appreciated.
You can not run simultaneously two HTTP server on same port (Indeed there is no point in doing that).
I recommend continue using multiple port, it will work seamlessly.

Categories