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

Show
Ignore:
Timestamp:
01/23/06 16:22:15 (16 years ago)
Author:
Pascal Leclerc
Comment:

--

Legend:

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

    v1 v1  
     1= Intro = 
     2 
     3This is a small documentation to install the database and the web server with PHP5. 
     4 
     5= PostgreSQL installation = 
     6 
     7To install the database server 
     8{{{ 
     9emerge -av dev-db/postgresql 
     10}}} 
     11 
     12To configure postgresql 
     13{{{ 
     14emerge --config =postgresql-8.0.4 
     15}}} 
     16 
     17To automise startup on boot 
     18{{{ 
     19rc-update add postgresql default 
     20}}} 
     21 
     22To start and test postgresql 
     23{{{ 
     24/etc/init.d/postgresql start 
     25}}} 
     26 
     27= Apache 2 installation = 
     28 
     29{{{ 
     30emerge -av net-www/apache 
     31}}} 
     32 
     33= PHP 5  installation = 
     34 
     35During the writing of this doc, PHP5 and PEAR packages are masked. You need to unmask them to allow their installation with '''emerge'''. 
     36 
     37Add the following lines to '''/etc/portage/package.keywords''' file 
     38 
     39{{{ 
     40=app-admin/php-toolkit-1.0-r2 
     41=dev-lang/php-5.1.1 
     42=dev-php/PEAR-PEAR-1.3.6-r3 
     43}}} 
     44 
     45'''Note''': If new packages version are available change them to the newest if you want. 
     46 
     47I don't know which libraries are specified in your '''USE''' variable (on your server in '''/etc/make.conf''' file), so you need to add missing libraries in '''/etc/portage/package.use''' to make PHP5 work with the auth-server. 
     48 
     49An example of line to add in '''package.use''': 
     50 
     51{{{ 
     52dev-lang/php apache2 postgres xml xmlrpc pear ssl 
     53}}} 
     54 
     55To install PHP5 
     56 
     57{{{ 
     58# emerge -av dev-lang/php 
     59 
     60These are the packages that I would merge, in order: 
     61 
     62Calculating dependencies ...done! 
     63[ebuild  N    ] dev-lang/php-5.1.1  -adabas -apache +apache2 -bcmath +berkdb -birdstep +bzip2  
     64-calendar -cdb -cgi -cjk +cli +crypt -ctype -curl -curlwrappers -db2 +dba -dbase -dbmaker -debug 
     65 -discard-path -doc -empress -empress-bcs -esoob +exif -fastbuild -fdftk -filepro -firebird  
     66-flatfile -force-cgi-redirect -frontbase -ftp +gd -gd-external +gdbm -gmp -hardenedphp  
     67-hyperwave-api -iconv -imap -informix -inifile -interbase -iodbc +ipv6 -java-external -kerberos 
     68 +ldap -libedit -mcve -memlimit +mhash -ming -msql -mssql -mysql -mysqli +ncurses +nls -oci8  
     69-oci8-instant-client -odbc -pcntl +pcre -pdo -pdo-external +pear -pic -posix +postgres -qdbm  
     70+readline -recode -sapdb -sasl -session -sharedext -sharedmem -simplexml -snmp -soap -sockets  
     71-solid +spell -spl -sqlite +ssl -sybase -sybase-ct -sysvipc -threads -tidy -tokenizer +truetype 
     72 -vm-goto -vm-switch -wddx +xml -xmlreader +xmlrpc -xpm -xsl -yaz -zip +zlib 0 kB 
     73[ebuild  N    ] dev-php/PEAR-PEAR-1.3.6-r3  150 kB 
     74[...] 
     75}}} 
     76 
     77== Apache and PHP == 
     78 
     79Now, you need to tell apache that PHP is installed and to use it. In the file '''/etc/apache2/httpd.conf''' you need to add "'''-D PHP5'''" to '''APACHE2_OPTS''' variable. If '''SSL''' is not set you can also add "'''-D SSL'''". 
     80 
     81To automise startup on boot 
     82{{{ 
     83rc-update add apache default 
     84}}} 
     85 
     86Start Apache web server 
     87 
     88{{{ 
     89/etc/init.d/apache start 
     90}}} 
     91 
     92== Test PHP == 
     93 
     94Create a PHP file with '''phpinfo''' command to test if PHP is working (and by the way see full informations about your PHP installation) 
     95 
     96In '''/var/www/localhost/htdocs/''' directory, create '''phpinfo.php''' file and add this lines : 
     97{{{ 
     98<?php 
     99phpinfo(); 
     100?> 
     101}}} 
     102 
     103Open the page in you browser : http://yourServer.com/phpinfo.php 
     104 
     105You should see tables formated informations. Delete the file you test PHP. 
     106 
     107= Auth-server installation = 
     108 
     109Go to [wiki:doc/install/auth-server Auth server Installation] page to continue with Wifidog portal installation. 
     110 
     111= Links = 
     112 
     113* http://gentoo-wiki.com/PHP 
     114 
     115