Changes between Initial Version and Version 1 of doc/install/rhes/auth-server

Show
Ignore:
Timestamp:
09/11/06 17:57:21 (13 years ago)
Author:
benoitg
Comment:

Line-by-line instr. for RHES4, incl. PHP compile and postgres config

Legend:

Unmodified
Added
Removed
Modified
  • doc/install/rhes/auth-server

    v1 v1  
     1[[PageOutline(1-3)]] 
     2=  Introduction = 
     3These are step by step instructions to install an auth server installation on a virgin Red Hat Enterprise Linux 4 installation. 
     4 
     5= Step-by-step instructions = 
     6 
     7== Install prerequisites == 
     8{{{ 
     9up2date postgresql-client postgresql-server 
     10up2date gcc flex libxml2-devel postgresql-devel httpd-devel libtool libpng-devel subversion 
     11}}} 
     12 
     13== Install PHP5 from source == 
     14RHEL4 doesn't have a recent enough PHP to run the wifidog auth server.  We will have to compile one from source 
     15 
     16Download PHP5 sources http://www.php.net/get/php-5.1.6.tar.bz2/from/a/mirror: 
     17{{{ 
     18cd folder_where_you_downloaded 
     19tar -jxvf php-5.1.6.tar.bz2 
     20}}} 
     21Compile PHP with the required options: 
     22{{{ 
     23cd php-5.1.6 
     24./configure --with-pgsql --with-apxs2 --with-gettext --with-zlib --with-gd --enable-mbstring --with-config-file-path=/etc  
     25make 
     26sudo make install 
     27sudo cp php.ini-dist /etc/php.ini 
     28}}} 
     29 
     30== Install the auth server == 
     31{{{ 
     32svn checkout https://dev.wifidog.org/svn/trunk/wifidog-auth 
     33sudo mv wifidog-auth/ /var/www/ 
     34}}} 
     35 
     36== Install auth server external dependencies == 
     37Install required PEAR modules: 
     38{{{ 
     39sudo pear install --alldeps Image_Graph-alpha 
     40}}} 
     41 
     42FCKEditor 
     43{{{ 
     44wget http://umn.dl.sourceforge.net/sourceforge/fckeditor/FCKeditor_2.3.1.tar.gz  
     45tar -zxvf FCKeditor_2.3.1.tar.gz 
     46cd FCKeditor 
     47sudo mv * /var/www/wifidog-auth/wifidog/lib/FCKeditor/  
     48}}} 
     49 
     50== Configure apache == 
     51In file /etc/httpd/conf/httpd.conf: 
     52 
     53Add php to the DirectoryIndex directive: 
     54{{{ 
     55DirectoryIndex index.html index.html.var index.php 
     56}}} 
     57Add the following new directive: 
     58{{{ 
     59AddType application/x-httpd-php .php 
     60}}} 
     61Change DocumentRoot to  
     62{{{ 
     63DocumentRoot "/var/www/wifidog-auth/wifidog/" 
     64}}} 
     65 
     66=== Optional:  Setup a ssl self signed key === 
     67Make sure you don't already have a proper key, this will destroy it! 
     68{{{ 
     69cd /etc/httpd/conf/ 
     70rm ssl.key/server.key 
     71rm ssl.crt/server.crt 
     72make genkey 
     73cd /usr/share/ssl/certs 
     74make testcert 
     75cd /etc/httpd/conf/ssl.key 
     76cp server.key server.key.encrypted 
     77openssl rsa -in server.key.encrypted -out server.key 
     78chmod 400 server.key 
     79}}} 
     80== Configure postgresql == 
     81While Postgres 8+ would be much faster on modern machines, version 7.4 in RHEL4 is sufficient to run wifidog. 
     82Add the following line to /var/lib/pgsql/data/postresql.conf: 
     83{{{ 
     84tcpip_socket = true 
     85}}} 
     86Add the following lines to /var/lib/pgsql/data/pg_hba.conf: 
     87{{{ 
     88host wifidog wifidog 127.0.0.1/32            md5 
     89local wifidog wifidog           md5 
     90}}} 
     91 
     92== Setup cron jobs == 
     93Add the following lines to /etc/crontab: 
     94{{{ 
     95##Wifidog 
     96#Send status emails every two minutes 
     97*/2 * * * * apache /usr/local/bin/php 
     98/var/www/wifidog-auth/wifidog/cron/page.php 
     99#Vacuum the database every hour 
     10001 * * * * apache /usr/local/bin/php 
     101/var/www/wifidog-auth/wifidog/cron/vacuum.php 
     102}}} 
     103 
     104== Configure the auth server == 
     105 
     106Go to http://your_server_adress_here/install.php and follow the instructions.