running webserver on 10.10 desktop install

Asked by Frank Stevenson

I just loaded Desktop 10.10 version and I am enjoying exploring capabilities. I would also like the machene to serve as a web server. I read a FAQ that said (for an earlier version) that the server capabilities are contained in the desktop distro.
I cannot find it in the loaded apps or in the software download section.
I am somewhat new to Linux so I could use some help finding and loading the server drivers.
I played with another Linux flavor some time ago and was able to load and run the webserver (Apache) and SQL software while keeping the desktop environment intact.
Can I do this with UBUNTU?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apache2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jonas Keinholz (inyono) said :
#1

Yeah, for sure. As an introduction: https://help.ubuntu.com/community/ApacheMySQLPHP

I think that the Desktop and Server edition even have the same repositories, you only have another "default setup". But I can be mistaken.

Revision history for this message
Senthil Kumar_Webrsk (webrsk-ideas) said :
#2

You are ready to go with webserver by entering the following command in the terminal.
sudo tasksel install lamp-server

Once installed check the apache working fine from your browser :
http://Iocalhost (or) http://hostname

More information : http://www.unixmen.com/linux-distributions/4-ubuntu/1239-install-lamp-with-1-command-in-ubuntu-1010-maverick-meerkat

Revision history for this message
Frank Stevenson (frank-mouseworks) said :
#3

So far so good. I get to the default webpage from the computer that has the server loaded.
Now, I would like to access the webserver from other computers on my home network, all connected through a Cisco WRT54GL router. I will tackle access from outside my home network later.
I assume that the DMZ setting is only for allowing access from outside my home network?

I can't seem to access from within the network. The router has assigned a dynamic IP to the Linux server (192.168.1.106). I'm also not sure how to address the webserver through the default port (80).

Also. If I re-boot the Linux machine, do I have to re-run Apache or will it start automatically?

Thanks

Revision history for this message
Jonas Keinholz (inyono) said :
#4

Typically you can access the Server within the network with the following address: http://[IP]:[Port]. In your case: http://192.168.1.106:80

If you can't access it within your network, check the file /etc/apache2/ports.conf

Listen 127.0.0.1:80 means, you can only access the server from the localhost (127.0.0.1). If there's Listen 80, you can access the server outside localhost. If you want to access the server outside the network, you have to open the port 80 in your router firewall, so that other computers can connect to it.

You don't need to re-run Apache after a reboot, it should be started automatically as a daemon.

Can you help with this problem?

Provide an answer of your own, or ask Frank Stevenson for more information if necessary.

To post a message you must log in.