Steps needed to set up a web server Apache in Ubuntu desktop

papakota

Reputable
Jun 27, 2015
3
0
4,510
Hello!

I'm running Ubuntu 14.04 desktop ed. I'm about to set up LAMP. I wonder what would be the correct order of steps that should be taken. I've already got a static IP from my ISP.

My idea would be as such:
1) To set up a static IP in Ubuntu and router. To cancel DHCP in both Ubuntu and the router;
2) To configure a Firewall in Ubuntu;
3) To update registrar's DNS entries for my domain name (hostname). I already has both the registrar and my site's domain name. To input my ISP's two DNS servers' IP's and to update my hostname's A record by inputting my static IP into it. Probably I should also update other records if needed CNAME for www. and MX for MTA;
4) To install LAMP stack (I would need HTTPS, so do I need to make sure that Open SSL is being installed too OR it's done automatically by default?);
5) To place my script's files (in my case it's Joomla) into an appropriate Apache's folder (probably www, I think);
6) To set up SSL on Apache.
 
Solution
1. You don't have to disable DHCP on the router (and it should not be enabled on your Ubunty anyway). Just set your Ubuntu on static. But this static IP applies to your internal IP address only, it does not affect your public IP address (which is given by your ISP).

2. You have to set up port forwarding for ports 80 and 443 on your router. With your Ubuntu behind a router, you don't need Firewall on the Ubuntu,

3. You need to apply for static IP address from your ISP, and your contract should allow for local web hosting. This could cost you additional money.

If you haven't installed any specific apps on your Ubuntu, there are plenty of ready-made Unix distributions preconfigured for LAMP.
1. You don't have to disable DHCP on the router (and it should not be enabled on your Ubunty anyway). Just set your Ubuntu on static. But this static IP applies to your internal IP address only, it does not affect your public IP address (which is given by your ISP).

2. You have to set up port forwarding for ports 80 and 443 on your router. With your Ubuntu behind a router, you don't need Firewall on the Ubuntu,

3. You need to apply for static IP address from your ISP, and your contract should allow for local web hosting. This could cost you additional money.

If you haven't installed any specific apps on your Ubuntu, there are plenty of ready-made Unix distributions preconfigured for LAMP.
 
Solution