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.
Related
I am new to all things servers but I am competent enough to understand. Please point me in the right direction.
At school, we have a 'shared drive'. I downloaded, set-up, and ran a WAMP server. I created HTML pages with PHP code to send/retrieve data from the database. I didn't want it on the internet, only locally accessible.
I then decided to move this to the 'shared drive' so that everyone on the school network could access it by simply going to their favorite browser on a school computer and typing 'localhost:8080/' like I do on mine.
I copied and pasted everything, the entire 'Wamp64' folder with all my changes included, onto a folder in the shared drive. I modified the 'http-vhost.conf' file
DocumentRoot "I:/Laboratory/Internal/Server/wamp64/www/project1/"
Directory "I:/Laboratory/Internal/Server/wamp64/www/project1/"
as follows with the new path. Still, nothing when I got onto a PC and typed 'localhost:8080/'
This is all I've done. Every single step.
I understand how naive my understanding may seem. Please, point me in the right direction.
I think you are missing the point of what a web server is i.e. Apache.
It is a software server and as such can sit on any PC in your network, which could be the server or the little old box in the corner that no one ever uses because it is a bit out of date.
It sits on that PC and listens for things trying to connect to it, usually on port 80, but could be any port like your 8080.
So, placing it on the hardware server itself is not necessary.
And, just copying an install to a shared drive and expecting an PC on the network to be able to then us it is just not possible.
Also, its always best to install WAMPServer i.e. Apache, where you want it to be located. Copying an installed version from one drive to another never works, as the install modifies path data all over the place and of course the Apache and MySQL services are installed (windows service installed) from the original drive and folder. So your moving the wamp folder to another machine will definitely not work.
I suggest you install a WAMPServer on a PC that is left on all the time, using port 80, I am guessing that the school wont let you install it on their server for obvious reasons.
Then copy your site code to this new installation.
Then backup you database, and restore it to the new machines WAMPServer (MySQL)
Then amend the Apache config to allow access from the schools local network but not the internet, by amending the httpd.conf or if you are using WAMPServer 3 by amending the httpd-vhost.conf file, there are many answer available on that subject.
Next, if the school has a DNS Server, I would ask for a domain name to be added to that, pointing to the ip address of the PC you installed WAMPServer on. The domain can be anything but something like davidproject.school could be used.
Then you create a Virtual Host in WAMPServer using the ServerName = davidproject.school and ServerAlias = www.davidproject.school
Then people will access it from any browser in the school with the url davidproject.school
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.
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
I tried Google and it failed.
I want to set up a localhost website from my computer that people from the Internet can access...
I am using Windows Vista (64-bit). I use WAMP but am open to others... I plan on using no-ip.org for DNS.
If anyone knows of a definitive guide.. please let me know -- thanks
If you are able to setup WAMP and access your webserver using "localhost," you will need your IP. If people cannot access the IP, make sure you allow these daemons to run through Windows Firewall and if you have a router, you may need to do some port forwarding (very simple) or, if this computer is always public access, look into DMZ (demilitarized zone) to remove the computer from the router's firewall.
An easy WAMP solution is using XAMPP which is an all-in-one package.
Step-by-step guide:
http://www.dkszone.net/install-xampp-windows-step-step-guide
You need:
a webserver,know your IP adress.
If dynamic.. Dynamic DNS, this will bind your new routerIP to a domainname
make sure your router allow traffic by the port 80 and you are done!
ppl will access your home server just by setting the dynamicDNS domain.
Key points-
0) To install IIS on vista: http://www.howtogeek.com/howto/windows-vista/how-to-install-iis-on-windows-vista/
1) Your cable/dsl company has to open port 80 for you, or else it will not be accessible outside of your house.
2) You're router will have to forward port 80 to the server. You can find out how to do that here: http://portforward.com/english/routers/port_forwarding/Linksys/BEFSR41/BEFSR41index.htm
3) before picking a dns service, check if your router supports one, it is the easiest way to maintain it.
So I'm using this website:
http://www.howtoforge.com/ubuntu_debian_lamp_server
to setup LAMP on my Ubuntu Virtual Machine.
Here is my question though,
This will enable me to program and test through localhost. How can I set this up so anyone on the web can access my .php pages from any Internet capable device, and they will still interact with my local database, etc?
If you open port 80 in your firewall to your local machine, it should be available to the outside world via your ip address. You will need to check your router settings to figure out how to do this, but usually it's called port forwarding.
You could then use a free service like dyndns to give yourself a domain name that you can then type into your browser such as
myserver.dyndns.org
You have a couple of options...
1) Find a site that hosts LAMP and put you site up there. Many of them allow you to register a domain name and they manage the machine.
2) Do what Ben Rowe suggested, use a DNS forwarding service (Some are free, some not). Host the site on your own machine, some ISPs do not allow you to use port 80, you might need to use another port.