Fedora Installation
From DocMGR
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
- Choose Automatically partition.
- Choose remove all partitions (if there are any.)
- Step 4 - Boot loader configuration.
- Use GRUB
- No boot loader password.
- Step 5 - Configure Network Devices
- Edit IP Settings - For a server, turn off DHCP and manually enter appropriate IP settings
- Set the hostname
- Check Manually and enter server01 (or whatever is appropriate)
- Step 6 - Firewall Configuration
- No Firewall
- Step 7 - Set the root password
- Set it to password
- Step 8 - Package Group Selection
- Desktops
- X-windows (use defaults)
- GNOME (use defaults)
- Applications
- Editors - Install Emacs, Xemacs, and vim-enhanced
- Graphical Internet - Install mozilla and evolution
- Office Productivity - Install openoffice.org and gpdf
- Servers
- Windows File Server (if applicable)
- Network Servers - Install vnc-server
- Development
- Development tools - Install just the base packages
- Kernel Development - Install just the base packages
- System
- Administration tools - Uncheck redhat-config-kickstart, redhat-config-language, and redhat-config-soundcard. Install all other packages.
- System tools - Install ethereal, ethereal-gnome, tsclient, rdesktop, nmap-frontend, nmap, samba-client, screen, and vnc
- Printing support - Install cups and hpijs
- Desktops
- Step 9 - Create Boot Disk - NO
- Step 10 - Create User Account
- Username: username
- Full Name: full username
- Password: password
- Install ImageMagick
- yum install ImageMagick
- Install GOCR
- Obtain latest gzip version
tar xzvf gocr-x.xx.tar.gz cd gocr-x.xx ./configure make make install
- Install PostgreSQL
- Obtain latest gzip version
- tar xzvf postgresql-x.x.x.tar.gz
- 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)
- exit (switch back to root)
- Switch back to root - type "exit"
- Add the following line to /etc/rc.local
su -c '/usr/local/pgsql/bin/pg_ctl start -D /usr/local/pgsql/data' postgres
- 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
- Modify /usr/local/apache2/conf/httpd.conf as necessary
./bin/apachectl start
- Modify /etc/rc.local to include "/usr/local/apache2/bin/apachectl start"
- 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
- 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
- Verify the last line should indicate that PHP is configured
- Modify /usr/local/php/lib/php.ini and change the following line:
upload_max_filesize = 150M
- Install Tiff
- Obtain tiff-3.7.1.tar.gz
tar -xzvf tiff-3.7.1.tar.gz cd tiff-3.7.1 ./configure make make install
- Type tiffinfo to verify installation
- Install XPDF
- Obtain xpdf-3.00pl2-linux.tar.gz
tar -xzvf xpdf-3.00pl2-linux.tar.gz cd xpdf-3.00pl2-linux ./configure make make install
- 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
- 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/* .
- 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
- 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
- Modify /usr/local/apache2/htdocs/doc/include/config.inc.php to uncomment the following line:
define("TSEARCH2_INDEX","1");

