Installing Apache Web Server:
written by EON Mar 07, 2012 (Estimated Time: 5 mins)
EON 1.0 and higher no longer embeds Apache or Perl. These applications are optional installs, and can now be upgraded and are full user modifiable versions.
Let's show how to install and run the Apache Web Server. With this EON release, 2 programs were introduced to make things easier. One is the internet package installer, "rail" and the other "emp" is a program to start/stop/restart all the various programs.
Pre-requisite(s): The Binary Kit must be installed. PHP
must be installed.
This assumes Internet connectivity is working and the binary kit has already been installed. So, let's install the Apache Web Server.
rail install apache
install apache ...
download ok: /usr/local/.store/apache-2.2.21.tgz
found local /usr/local/.store/apache-2.2.21.tgz
(md5 pass: a48e75b02749eeddfcfae7dcfc00908f)
installing: /usr/local/.store/apache-2.2.21.tgz ... done
That's it, Apache 2.2.21 is installed. Now let's start the Apache web server, with "emp". Then, point your favorite browser to the IP address of your EON Server and you should see
emp apache start
Let's view the running Apache processes.
emp apache show
1971 /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf
1972 /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf
1973 /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf
1974 /usr/local/apache/bin/httpd -f /usr/local/apache/conf/httpd.conf
To see other options, simply run "emp". The highlight shows, for apache, lighttpd, and nginx the options start, stop, restart and show are possible.
usage: /usr/bin/emp name [ action ]
afp [ start | stop ]
apache | light | nginx [ start | stop | restart | show ]
bind | dhcpd [ start | stop | restart ]
daap | mtomb [ start | stop ]
ndd [ start ]
nfs [ start | stop | restart ]
hotplug | powerd [ start | stop ]
java [ start | show ]
nscd | ntpd [ start | stop | restart ]
osx [ start | stop ]
postfix [ start | stop ]
rsyncd [ start | stop | restart ]
sabnzb | sickbeard | couchpotato [ start | stop ]
transmission [ start | stop ]
zswap | zdump [ start | stop | show ]
The Apache web server is pre-configured with a self-signed CA certificate. You can (and should) generate your own unique self-signed CA cert using "certgen.sh"
EON Storage self signed CA certificate generator
usage: /usr/local/bin/certgen.sh [ a | l | n ]
a = apache | l = lighttpd | n = nginx
To generate a certificate for Apache. The highlight shows the pre-configured certificate, already exist.
EON Storage self signed CA certificate generator [apache]
apache certificate/key: exist already
exiting: NO changes made
To remove the pre-configured certificate and generate a unique certificate.
Configuration file location(s):
Log file location(s):