BillHung.Net


powered by FreeFind     sms

Apache

11 Dec 2005

I just got the HTTP server running with Apache on my computer. The picture is a page requested from the Berkeley computer. The IP points to my home router, and HTTP requests (port 80) will be forwarded to my computer instead of my roommates' computers. Anyway, we are using not dynamic IP of this moment, so the ip shown in the picture will change. Now I can do all the SSL, SQL, shell all on my computer. The server for BillHung.net does not allow me to perform cp commands, that sucks.

10 Dec 2005

Finally got Apache running on my computer. Right now being able to go to http://localhost/ (http://127.0.0.1) to see my own webpage. I will be testing SQL and Perl scripts with this Apache. I will probably test out Apache 2 with the SSL.

Command Notes

1. Start/Stop Apache
/usr/sbin/httpd
/usr/sbin/apachectl start
/usr/sbin/apachectl stop
http://httpd.apache.org/docs/2.0/en/install.html

2. Two important files to keep track of activities
\cygwin\var\log\apache\error_log
\cygwin\var\log\apache\access_log

3. Apache HTTP setting file
\cygwin\etc\apache\httpd.conf

General Notes

/usr/local/apache2/bin/apachectl -f /usr/local/apache2/conf/httpd.conf
http://httpd.apache.org/docs/2.0/en/invoking.html

cygrunsrv -I service_name-p /usr/local/apache/bin/httpd.exe [-a arguments] \
      [-e VAR=VALUE] [-t auto|manual] [-u user] [-w passwd]
$ cygrunsrv -S service_name
 $ cygrunsrv -E service_name
 $ cygrunsrv -R service_name
http://apache.active-venture.com/cygwin.html#down

My Installation of Apache 2 on Windows XP

27 Dec 2005

Install Apache 2.0 on Windows XP
    Download
        apache_2.0.48-win32-x86-no_ssl.exe
        http://www.apache.org/dist/httpd/binaries/win32/
    Setting
        I just put whatever for the fields, after the installation, try http://localhost/ to test apache 2

Failed Installation

These versions didn't work with my Windows XP, but I got the Cygwin apache 1.3 works alright
        apache_1.3.34-win32-x86-no_src.exe
        apache_2.0.55-win32-x86-no_ssl.msi

Reference

1. Tutorial, some of the instructions didn't work for me http://www.mzmwired.net/resources/mjm-apache-windows.html