Installation
Back
Installation
Esehttpd is currently tested on GNU/Linux only. Some potions of the source code uses functions only in GNU libc, then, you may not be able to compile esehttpd on other platforms. You need OpenSSL to compile esehttpd even if you don't want to use SSL at all. If Ruby is installed, the ruby CGI module(cgiruby) is compiled also.
If your system accepts RPM packages, please use binary RPM package of esehttpd(if available), or build binary RPM package from the source tarball. When RPM binary package is used, most components of esehttpd will be installed in /usr/lib/esehttpd. Configuration files will be placed in /etc/esehttpd, and log files in /var/log/esehttpd.
Otherwise, you need to make esehttpd from the source tarball. In this case, all the files will be installed in /usr/local/lib/esehttpd.
How to make esehttpd from the source code
Extract the tarball(named esehttpd-?.???.tar.gz) first, and 'cd' into the created directory. Type
$ ./configure
$ make
. Become the super user(i.e., root), and type
# make install
. After esehttpd is installed, you can start/stop by
# /usr/local/sbin/esectl start
# /usr/local/sbin/esectl stop
. Errors are logged in /usr/local/lib/esehttpd/log/error_log.
How to install binary RPM package
If your system accepts RPM packages, you can use binary RPM package of esehttpd. To install a binary package, type
# rpm -Uvh esehttpd-????.i586.rpm
. To start/stop esehttpd, type
# /etc/rc.d/init.d/esehttpd start
# /etc/rc.d/init.d/esehttpd stop
. Errors are logged in /var/log/esehttpd/error_log.
How to make binary RPM package from the source code
Type
# rpm -ta esehttpd-????.tar.gz
and wait a while.
Start and stop
Please make sure no program is bind to the port 80, or esehttpd can't work. Then start esehttpd by the method mentioned above. Open http://localhost/ with your web browser, and you can see the test page.
Command line arguments
The commands 'esectl' and '/etc/rc.d/init.d/esehttpd' are wrapper scripts for the esehttpd daemon. Esehttpd daemon itself is placed in /usr/local/sbin/esehttpd or /usr/sbin/esehttpd. Esehttpd daemon accepts the following command line arguments.
- -n
- Don't fork. Run in foreground. If this option is not specified, esehttpd daemon forks and runs in background.
- -s
- Output errors to the standard error instead of the log file. If this option is specified, -n option is implied also.
- -d
- Runs in the debug mode. This option is effective only if esehttpd is build with '-DDEBUG' compile option. This option implies -s option.
- -l FILENAME
- Set lofile to FILENAME.
- -f FILENAME
- Read configuration from FILENAME
- -p
- Use the standard 'poll' method instead of POSIX realtime signals even when realtime signals is available.
Back
Akira Higuchi