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

https://www.openssl.org/
Install OpenSSL
# Download the latest OpenSSL
wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz
# Untar it
gtar xzvf openssl-1.0.1g.tar.gz
# Compile with install location /usr/local/ssl
cd openssl-1.0.1g
./configure
make
make install
Install APR and APR-Utilities

http://apr.apache.org/download.cgi
Install apr and apr-util
wget http://apache.01link.hk//apr/apr-1.5.0.tar.gz
gtar xzvf apr-1.5.0.tar.gz
cd apr-1.5.0
./configure
make
make install

wget http://apache.01link.hk//apr/apr-util-1.5.3.tar.gz
cd apr-util-1.5.3
./configure –prefix=/usr/local/apr-util –with-apr=/usr/local/apr
make
make install
Install Apache HTTP Server

http://httpd.apache.org/
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 \
–enable-proxy_scgi=shared
make
make install
Install Tomcat Connector

http://tomcat.apache.org/download-connectors.cgi
Install Tomcat Connector
wget http://apache.01link.hk//tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.39-src.tar.gz
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
make
# Copy the compiled module to Apache
cd native/apache-2.0/
cp mod_jd.so /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 預設的編輯器不知道是什麼!!

via: http://tw.myblog.yahoo.com/hermes-eagle/article?mid=144&prev=149&next=143&l=f&fid=20

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 laptop.electrictoolbox.com 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.

Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

Continue reading “Sendmail remote connection refused”