Web Server Set Up Manual
The processing machine has all the web pages and images that are generated by the All Sky camera, when the computer is moved to a differant IP address it is necessary to change the web server configuration, this is done in the file httpd.conf which is located in the following directory /etc/httpd/conf/ . There is only one line that needs to be changed and that is
ServerName ctioy9 (This is the La Serena name for the computer, it will be differant on the mountain)
Here all you have to do is change the server name to the one that that you are going to use. After this save the file and stop httpd, this can be done in the following directory: /etc/rc.d/init.d here there is a daemon called httpd. Here you can type in the following:
./httpd stop This will stop the web server service
./httpd start This will start the web service, if httpd does not start on bootup you should go to this directory and start it manually with this command
./httpd status This tells you wether or not httpd is running or stopped and gives you an idea of whats happening.
The web pages are located in the /home/data/cloudweb/ directory and any new additions of html pages or images should be placed here. This directory is defined in the httpd.conf file as the home directory and cloudcam.htm is the homepage.
What happens if i have removed httpd from the computer?
If this is the case then you will have to reinstall it, find the RedHat 7.1 CDROM's find the httpd rpm which I believe is called (apache something or another??) this is installed using the following command.
rpm -i <filename>
This should install the package without any problems, you will then have to go to the /etc/httpd/conf/ directory and modify the httpd.conf file on the following lines that are in bold. This is how you set up the apache server. When all is working fine you can manually startup httpd using the above instructions.
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents.
# ServerName: allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., http://188.8.131.52/)
# anyway, and this will make redirections work in a sensible way.
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# This should be changed to whatever you set DocumentRoot to.
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.cgi
DirectoryIndex cloudcam.htm index.html index.htm index.shtml index.php index.php4 index.php3 index.cgi
How can I get httpd to startup automatically?
You have to make links in the following directories.
These both should have a link that goes like this
K15httpd -> /etc/rc.d/init.d/httpd
On startup these should allow the computer to automatically start up httpd.