User:Djgreen/Cronserver:Setup

From WolfTech
Jump to navigation Jump to search

PHP

Packages to add:

libpng-devel libjpeg-devel (fixed libjpeg error) freetype-devel (fixed freetype2 error) libxml2 libxml2-devel (fixed libxml / xml installation issues) aspell-devel (fixed pspell issue) net-snmp net-snmp-devel php-snmp (fixed snmp.h error)

LDAP

SYBASE DRIVERS

You'll need to install these drivers in /opt/sybase-12.5/ Replace the default interfaces with the one at /afs/bp/dist/sybase125/

Package provided by ITD - drivers (sybase125.lnx.tar) were in /afs/bp.ncsu.edu/dist/sybase125/src/ when I last looked. Once unpacked, move into the OCS folder, and run OCS.sh to configure the env variables. OK, so running that didn't seem to work... however, setting the following manually did (use only one of these, depending on the shell you're using):

export SYBASE=/opt/sybase-12.5; export SYBASE_OCS=OCS-12_5; export PATH=${SYBASE}/${SYBASE_OCS}/bin:$PATH; export LD_LIBRARY_PATH=${SYBASE}/${SYBASE_OCS}/lib:${LD_LIBRARY_PATH} setenv SYBASE /opt/sybase-12.5; setenv SYBASE_OCS OCS-12_5; setenv PATH ${SYBASE}/${SYBASE_OCS}/bin:$PATH; setenv LD_LIBRARY_PATH ${SYBASE}/${SYBASE_OCS}/lib:${LD_LIBRARY_PATH}

    • Micah has written a wrapper script to run in front of the php cmd so you can skip setting these variables. Be sure to move a copy of it local to the machine.

Also, add the following line to locales.dat (in the /opt/sybase-12.5/locales/ directory) under the linux/english section:

locale = en_US.UTF-8, us_english, utf8

SQSH

Download from www.sqsh.com. Install locally in /opt/sqsh/. Using the Linux binaries, run the ./install.sh script to install. Easy. When in doubt, go with the default.


CRONTAB

All cron files are located in /afs/eos/engrservers/cron/ece_cronjobs/

Be sure to run the CRONTAB BACKUP script (/afs/eos/engrservers/cron/ece_cronjobs/crontab/chronsave.php) so you always can restore the most recent version of the crontab.