|Running a Webserver on a Tonido Plug - Installing the Apache Webserver|
|Written by Administrator|
|Tuesday, 16 November 2010 20:16|
Page 4 of 9Installing the Apache Webserver on your Plugbox Linux System
Arch Linux uses pacman instead of apt for package management. An excellent page for describing how to use pacman is here.
First, update your package sources
The first thing it will want you to do is update pacman itself.
[root@Plugbox ~]# pacman -S pacman
It will tell you that it wants to update pacman first, so you agree to cancel this update and install update pacman. OK, whatever. So you press capital Y. You may need to press capital Y again.
Once that is finished we can actually install apache.
[root@Plugbox ~]# pacman -S apache
On my plug, the apache configuration text file was placed in the following path:
I looked through this, it seemed pretty well setup to run. The default location for server content was set up to be:
The script to stop and start apache is in /usr/sbin:
To start the server:
apachectl -k start
apachectl -k stop
If you start the server with the command above, apache should start running. You can now use your pc to browse to the Tonido plug. Just type in the IP address of your plug into a web browser. Since there are no html files in your /srv/http folder yet, Apache shows a blank page like this.
So Apache is running. We'll look over the configuration a little later. For now I wanted to get some HTML going. I wanted at least one image in there too, so I wanted to bring some files in. One way to get web content onto the device would be to install an FTP server. Then I could access the content from anywhere.
Next page we can get an FTP server running, create an HTML file, and transfer them to the flash drive.
|Last Updated on Wednesday, 01 December 2010 14:06|