Fedora Installation

From DocMGR

Jump to: navigation, search

HOW-TO - DocMGR

Contribued by tjkushner

This how to uses DocMgr 0.49.1

  • Packages you will need:
    • gocr-0.39.tar.gz
    • httpd-2.0.52.tar.gz
    • xpdf-3.00pl2-linux.tar.gz
    • tiff-3.7.1.tar.gz
    • php-4.3.10.tar.gz
    • postgresql-7.4.6.tar.gz
    • docmgr-0.49.2.tar.gz


Create Basic Server Installation(Fedora Core 1)

  • Step 1 - Boot to CD.
  • Step 2 - Choose Installation type - custom
  • Step 3 - Disk partitioning
    1. Choose Automatically partition.
    2. Choose remove all partitions (if there are any.)
  • Step 4 - Boot loader configuration.
    1. Use GRUB
    2. No boot loader password.
  • Step 5 - Configure Network Devices
    1. Edit IP Settings - For a server, turn off DHCP and manually enter appropriate IP settings
    2. Set the hostname
      1. Check Manually and enter server01 (or whatever is appropriate)
  • Step 6 - Firewall Configuration
    1. No Firewall
  • Step 7 - Set the root password
    1. Set it to password
  • Step 8 - Package Group Selection
    1. Desktops
      1. X-windows (use defaults)
      2. GNOME (use defaults)
    2. Applications
      1. Editors - Install Emacs, Xemacs, and vim-enhanced
      2. Graphical Internet - Install mozilla and evolution
      3. Office Productivity - Install openoffice.org and gpdf
    3. Servers
      1. Windows File Server (if applicable)
      2. Network Servers - Install vnc-server
    4. Development
      1. Development tools - Install just the base packages
      2. Kernel Development - Install just the base packages
    5. System
      1. Administration tools - Uncheck redhat-config-kickstart, redhat-config-language, and redhat-config-soundcard. Install all other packages.
      2. System tools - Install ethereal, ethereal-gnome, tsclient, rdesktop, nmap-frontend, nmap, samba-client, screen, and vnc
      3. Printing support - Install cups and hpijs
  • Step 9 - Create Boot Disk - NO
  • Step 10 - Create User Account
    1. Username: username
    2. Full Name: full username
    3. Password: password
  • Install ImageMagick
    1. yum install ImageMagick
  • Install GOCR
    1. Obtain latest gzip version
tar xzvf gocr-x.xx.tar.gz 
cd gocr-x.xx 
./configure 
make 
make install 

  • Install PostgreSQL
    1. Obtain latest gzip version
    2. tar xzvf postgresql-x.x.x.tar.gz
    3. cd postgresql-x.x.x
./configure 
gmake 
gmake install 
adduser postgres 
passwd postgres (set to same as root password) 
mkdir /usr/local/pgsql/data 
chown postgres /usr/local/pgsql/data 
su - postgres  
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data 
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1& (Take note of spaces) 
/usr/local/pgsql/bin/createdb docmgrdb (skip if rebuilding) 
    1. exit (switch back to root)
    2. Switch back to root - type "exit"
    3. Add the following line to /etc/rc.local
su -c '/usr/local/pgsql/bin/pg_ctl start -D /usr/local/pgsql/data' postgres 
    1. Modify /usr/local/pgsql/data/postgresql.conf and uncomment the following lines:
port = 5432 
tcpip_socket = true  (for older versions of postgresql)
listen_addresses='localhost' (for newer versions of postgresql)

  • Install Apache
tar xzvf httpd-2.0.NN.tar.gz 
cd httpd-2.0.NN 
./configure 
make 
make install 
cd /usr/local/apache2 
    1. Modify /usr/local/apache2/conf/httpd.conf as necessary
./bin/apachectl start 
    1. Modify /etc/rc.local to include "/usr/local/apache2/bin/apachectl start"
    2. Modify the httpd.conf file and add the following lines:
<FILES *.docmgr> 
Order allow,deny 
Deny from all 
</FILES> 

  • Install PHP
tar -xvzf php-VERSION.tar.gz 
cd php-VERSION 
./configure --prefix=/usr/local/php --with-pgsql --with-apxs2=/usr/local/apache2/bin/apxs 
make 
make install 
cp php.ini-dist /usr/local/php/lib/php.ini 
cd /usr/local/apache2/conf 
    1. Edit the httpd.conf file to include the following lines in the appropriate areas:
LoadModule php4_module modules/libphp4.so 
AddType application/x-httpd-php .php .phtml .html 
AddType application/x-httpd-php-source .phps 
/usr/local/apache2/bin/apachectl stop 
/usr/local/apache2ctl start 
cat /usr/local/apache2/logs/error_log  
    1. Verify the last line should indicate that PHP is configured
    2. Modify /usr/local/php/lib/php.ini and change the following line:
upload_max_filesize = 150M 

  • Install Tiff
    1. Obtain tiff-3.7.1.tar.gz
tar -xzvf tiff-3.7.1.tar.gz 
cd tiff-3.7.1 
./configure 
make 
make install 
    1. Type tiffinfo to verify installation
  • Install XPDF
    1. Obtain xpdf-3.00pl2-linux.tar.gz
tar -xzvf xpdf-3.00pl2-linux.tar.gz 
cd xpdf-3.00pl2-linux 
./configure 
make 
make install 
    1. Type xpdf to verify installation xpdf GUI window will pop up
      • Important

Make sure these files are in /usr/bin copy or create sym links for them but they have to be accessible to apache . They should be executable for the "nobody" user. convert mogrify montage tiffsplit tiffinfo pdftotext pdfimages pdftoppm gocr enscript gs

  • Install DocMGR
    1. Obtain the lastest gzip version
tar xzvf docmgr-x.xx.tar.gz 
cd /usr/local/apache2/htdocs 
mkdir doc  
cd doc 
cp -R /download/doc/* . 
    1. Modify config/config.inc.php as appropriate
mkdir /home/samba/docmgr/import 
su postgres 
cd /usr/local/pgsql/bin 
./psql -d docmgrdb -f/usr/local/apache2/htdocs/doc/scripts/docmgr.pgsql 
    1. exit
cd /usr/local/apache2/htdocs/doc/files/
chmod -R 777 data 
chmod -R 777 tmp
chown nobody thumbnails 

  • Install Tsearch2
cd /download/postgres-x.x.x/contrib/tsearch2 
make 
make install 
su postgres  
cd /usr/local/pgsql/bin 
./pg_ctl stop -D /usr/local/pgsql/data 
./pg_ctl start -D /usr/local/pgsql/data 
./psql -d docmgrdb -f/usr/local/apache2/htdocs/doc/scripts/docmgr-tsearch2.sql 
    1. Modify /usr/local/apache2/htdocs/doc/include/config.inc.php to uncomment the following line:
define("TSEARCH2_INDEX","1");
Personal tools