Difference between revisions of "User:Bootiack/AOLserver"

From ArchWiki
Jump to: navigation, search
Line 1: Line 1:
Aolserver is "20x the speed of apache" a web server with tcl compiled in with 1 pooled db connection 2 single process multiple threads 3 cache-ing of pages and db return results in memory.  Powers www.aol.com and is massively scalable.
+
MORE INFO
 +
what are the advantages over any other web server?
  
I refer to Prof P Greenspun of MIT http://philip.greenspun.com/wtr/aolserver/introduction-1.html
+
faster and massively scalable, and has all the features of an appserver builtin.
  
The README has install instructions as well.
+
Phil Greenspun said it best:
 +
http://philip.greenspun.com/wtr/aolserver/introduction-1.html
  
install tcl with threads per the readme
+
notes on Installation: (read README)
pacman -Sy tcl
+
  
grab aolserver and untar
+
compile your own tcl: (example)
 +
./configure --prefix=/opt/tcl --enable-threads --enable-shared
 +
make
 +
make install
  
wget http://aolserver.com/files/aolserver-HEAD-src.tar.gz
+
I pop it in my path:
 +
ln -s /opt/tcl/bin/tclsh8.4 /usr/bin/tclsh
  
untar aolserver
+
was a real bitch for me on archlinux this time around after it was easy before; until a guy named frankie on irc chat #aolserver (freenode server) gave me the following:
  
tar xzvf wget http://aolserver.com/files/aolserver-HEAD-src.tar.gz
+
In aolserver-4.5/configure, comment out the below lines, and add right below them:
  
cd into new install dir, create a target home dir for aolserver, and
+
# case "$LDLIB" in
compile into a new target home dir:
+
# *gcc*)
 +
# LDLIB="$LDLIB -nostartfiles"
 +
# ;;
 +
# esac
 +
LDLIB="$LDLIB -nostartfiles"
  
mkdir (whatever; example /opt/aolserver)
+
this now works:
 +
/path/to/tclsh8.4 nsconfig.tcl -install /aolservers_new_dir
 +
make
 +
make install
  
/usr/bin/tclsh ./nsconfig.tcl -install (whatever you want example: /opt/aolserver)
+
In /etc/hosts you must have the ip of your nic matching `uname -n`
  
make install clean
+
after you cp base.tcl to nsd.tcl; you must chown -R your_user: /aolservers_new_dir before bin/nsd -ft nsd.tcl -u your_user will start the server on port 8000.
  
[from README]
+
then tune into http://your_ip:8000 and blam! your in bizness
3d.    Once the binaries are built and installed, create and edit
+
        a config file, nsd.tcl by convention.  A sample is provided
+
        to get started:
+
  
        % cd (target home dir for aolserver)
 
        % cp base.tcl nsd.tcl
 
        % vi nsd.tcl (nothing really needs to be changed until you learn config stuff, defaults to port 8000)
 
 
        Additional configuration examples can be found in the
 
        examples/config directory.
 
 
3e.    Try running the server in a shell window:
 
 
        % cd (target aolserver home)
 
        % bin/nsd -ft nsd.tcl -u (a user you like)
 
 
http://localhost:8000
 
 
#place new pages you wget and rename xyz.html in the pages directory
 
 
(aolserver target homdir)/servers/server1/pages
 
 
www.aolserver.com has more
 
 
see tcl for web nerds and www.tcl.tk for tcl programming info
 
 
www.postgresql.org is a nice database (years ahead of mysql many say)
 
  
 
[[Category: HOWTOs (English)]]
 
[[Category: HOWTOs (English)]]
 
[[Category: Daemons and system services (English)]]
 
[[Category: Daemons and system services (English)]]

Revision as of 23:14, 30 October 2007

MORE INFO what are the advantages over any other web server?

faster and massively scalable, and has all the features of an appserver builtin.

Phil Greenspun said it best: http://philip.greenspun.com/wtr/aolserver/introduction-1.html

notes on Installation: (read README)

compile your own tcl: (example) ./configure --prefix=/opt/tcl --enable-threads --enable-shared make make install

I pop it in my path: ln -s /opt/tcl/bin/tclsh8.4 /usr/bin/tclsh

was a real bitch for me on archlinux this time around after it was easy before; until a guy named frankie on irc chat #aolserver (freenode server) gave me the following:

In aolserver-4.5/configure, comment out the below lines, and add right below them:

  1. case "$LDLIB" in
  2. *gcc*)
  3. LDLIB="$LDLIB -nostartfiles"
  4.  ;;
  5. esac

LDLIB="$LDLIB -nostartfiles"

this now works: /path/to/tclsh8.4 nsconfig.tcl -install /aolservers_new_dir make make install

In /etc/hosts you must have the ip of your nic matching `uname -n`

after you cp base.tcl to nsd.tcl; you must chown -R your_user: /aolservers_new_dir before bin/nsd -ft nsd.tcl -u your_user will start the server on port 8000.

then tune into http://your_ip:8000 and blam! your in bizness