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

01/23/06 16:22:15 (16 years ago)
Pascal Leclerc



  • doc/install/gentoo/auth-server

    v1 v1  
     1= Intro = 
     3This is a small documentation to install the database and the web server with PHP5. 
     5= PostgreSQL installation = 
     7To install the database server 
     9emerge -av dev-db/postgresql 
     12To configure postgresql 
     14emerge --config =postgresql-8.0.4 
     17To automise startup on boot 
     19rc-update add postgresql default 
     22To start and test postgresql 
     24/etc/init.d/postgresql start 
     27= Apache 2 installation = 
     30emerge -av net-www/apache 
     33= PHP 5  installation = 
     35During the writing of this doc, PHP5 and PEAR packages are masked. You need to unmask them to allow their installation with '''emerge'''. 
     37Add the following lines to '''/etc/portage/package.keywords''' file 
     45'''Note''': If new packages version are available change them to the newest if you want. 
     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. 
     49An example of line to add in '''package.use''': 
     52dev-lang/php apache2 postgres xml xmlrpc pear ssl 
     55To install PHP5 
     58# emerge -av dev-lang/php 
     60These are the packages that I would merge, in order: 
     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 
     77== Apache and PHP == 
     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'''". 
     81To automise startup on boot 
     83rc-update add apache default 
     86Start Apache web server 
     89/etc/init.d/apache start 
     92== Test PHP == 
     94Create a PHP file with '''phpinfo''' command to test if PHP is working (and by the way see full informations about your PHP installation) 
     96In '''/var/www/localhost/htdocs/''' directory, create '''phpinfo.php''' file and add this lines : 
     103Open the page in you browser : 
     105You should see tables formated informations. Delete the file you test PHP. 
     107= Auth-server installation = 
     109Go to [wiki:doc/install/auth-server Auth server Installation] page to continue with Wifidog portal installation. 
     111= Links =