Install Apache Httpd Server

This document shows how to compile and install Apache Server from scratch with additional modules we used. Details of how to configure the server will not be shown here.
Install OpenSSL
Install OpenSSL
# Download the latest OpenSSL
# Untar it
gtar xzvf openssl-1.0.1g.tar.gz
# Compile with install location /usr/local/ssl
cd openssl-1.0.1g
make install
Install APR and APR-Utilities
Install apr and apr-util
gtar xzvf apr-1.5.0.tar.gz
cd apr-1.5.0
make install

cd apr-util-1.5.3
./configure –prefix=/usr/local/apr-util –with-apr=/usr/local/apr
make install
Install Apache HTTP Server
Install Apache HTTP Server
./configure –prefix=/usr/local/apache2_2.2.27 \
–with-apr=/usr/local/apr \
–with-apr-util=/usr/local/apr-util \
–with-perl \
–with-ssl=/usr/local/ssl \
–with-mpm=prefork \
–enable-so \
–enable-authn_file=shared \
–enable-authn_dbm=shared \
–enable-authn_anon=shared \
–enable-authn_dbd=shared \
–enable-authz_host=shared \
–enable-authz_groupfile=shared \
–enable-authz_user=shared \
–enable-authz_dbm=shared \
–enable-authz_owner=shared \
–enable-auth_basic=shared \
–enable-auth_digest=shared \
–enable-dbd=shared \
–enable-dumpio=shared \
–enable-ext_filter=shared \
–enable-include=shared \
–enable-filter=shared \
–enable-substitute=shared \
–enable-deflate=shared \
–enable-log_config=shared \
–enable-logio=shared \
–enable-env=shared \
–enable-expires=shared \
–enable-headers=shared \
–enable-setenvif=shared \
–enable-ssl=shared \
–enable-mime=shared \
–enable-dav=shared \
–enable-status=shared \
–enable-autoindex=shared \
–enable-asis=shared \
–enable-info=shared \
–enable-cgi=shared \
–enable-dav_fs=shared \
–enable-vhost_alias=shared \
–enable-negotiation=shared \
–enable-dir=shared \
–enable-actions=shared \
–enable-imagemap=shared \
–enable-speling=shared \
–enable-userdir=shared \
–enable-alias=shared \
–enable-rewrite=shared \
–enable-proxy=shared \
–enable-proxy_ajp=shared \
–enable-proxy_balancer=shared \
–enable-proxy_connect=shared \
–enable-proxy_ftp=shared \
–enable-proxy_http=shared \
make install
Install Tomcat Connector
Install Tomcat Connector
gtar xzvf tomcat-connectors-1.2.39-src.tar.gz
cd tomcat-connectors-1.2.39-src/
./configure –with-apxs=/usr/local/apache2_2.2.27/bin/apxs
# Copy the compiled module to Apache
cd native/apache-2.0/
cp /usr/local/apache2_2.2.27/modules/
Start the Apache HTTP Server
Start Apache HTTP Server
cd /usr/local/
# Create a symbolic link for the instance
ln -s apache2_2.2.27 apache2
cd apache2/bin
./httpd -k start

奇怪的solaris 9 crontab 設定

原先在solaris 9下 crontab -e 會出現不了 設定crontab 的編輯模式
應該是被轉到CDE 的文字編輯去了
下個參數 EDITOR =/usr/bin/nano;    (vi )
export EDITOR
我下載了nano 來用
直接去改 /var/spool/cron/crontab/ 的文字檔在sol 9 及10是不行工作的

所以 crontab -e 就可以進入編輯模式

原先solaris 預設的編輯器不知道是什麼!!


Sendmail remote connection refused

If you can connect to sendmail locally but not remotely then you need to modify the sendmail configuration slightly. For normal workstation use, you would not want sendmail to be opened up for remote connections but would if it is being used as a mail server. (Note remote connection issues can always be firewall related).

You can test connecting to sendmail locally by issuing the command

telnet localhost 25

Note that we are not actually telnetting but attempting to establish a connection on port 25, which is the port mail transfer agents listen on for incoming connections.

If you get something like the following then you were successfully able to connect. To disconnect from sendmail type "quit" and hit enter.

Connected to localhost.
Escape character is '^]'.
220 ESMTP Sendmail 8.12.8/8.12.8; Sun, 30 Nov 2003 13:19:45 +1300

If you could not connect then you’ll see something like the following instead. If you get this then you probably don’t have sendmail running, or the appropriate entry in your inetd or xinetd settings, depending on how your machine is configured. Fixing this sort of problem is not within the scope of this article.

telnet: connect to address Connection refused

Continue reading “Sendmail remote connection refused”