Difference between revisions of "User:Djgreen/Cronserver:Setup"

From WolfTech
Jump to navigation Jump to search
m
Line 4: Line 4:
 
*libpng-devel
 
*libpng-devel
 
*libjpeg-devel  
 
*libjpeg-devel  
  (fixed libjpeg error)
+
(fixed libjpeg error)
 
*freetype-devel  
 
*freetype-devel  
  (fixed freetype2 error)
+
(fixed freetype2 error)
 
*libxml2
 
*libxml2
 
*libxml2-devel
 
*libxml2-devel
  (fixed libxml / xml installation issues)
+
(fixed libxml / xml installation issues)
 
*aspell-devel
 
*aspell-devel
  (fixed pspell issue)
+
(fixed pspell issue)
 
*net-snmp
 
*net-snmp
 
*net-snmp-devel
 
*net-snmp-devel
 
*php-snmp
 
*php-snmp
  (fixed snmp.h error)
+
(fixed snmp.h error)
  
 
Mkdir /opt/php5
 
Mkdir /opt/php5
  
Using:
+
Install PHP locally:
 
+
<pre>
chronos% ./configure --enable-cli --disable-cgi --prefix=/afs/.bp.ncsu.edu/contrib/php5/.install/linux --exec-prefix=/afs/.bp.ncsu.edu/contrib/php5/.install/linux --with-bz2 --with-kerberos=/usr/kerberos --with-zlib --enable-bcmath --enable-calendar --with-curl --enable-ftp --with-gd --with-ldap --with-snmp --enable-mbstring --with-gmp --with-ncurses --enable-exif --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-gd-native-tiff --enable-shmop --enable-yp --with-gettext --with-ttf --with-pear --enable-memory-limit --with-pic --with-ldap-sasl --with-pcntl --with-openssl --with-mysql=/usr/bin --with-mysqli=/usr/bin/mysql_config --enable-shared --with-sybase-ct=/opt/sybase-12.5/OCS-12_5
+
chronos% ./configure --enable-cli --disable-cgi --prefix=/opt/php5/ --exec-prefix=/opt/php5/ --with-bz2 --with-kerberos=/usr/kerberos --with-zlib --enable-bcmath --enable-calendar --with-curl --enable-ftp --with-gd --with-ldap --with-snmp --enable-mbstring --with-gmp --with-ncurses --enable-exif --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-gd-native-tiff --enable-shmop --enable-yp --with-gettext --with-ttf --with-pear --enable-memory-limit --with-pic --with-ldap-sasl --with-pcntl --with-openssl --with-mysql=/usr/bin --with-mysqli=/usr/bin/mysql_config --enable-shared --with-sybase-ct=/opt/sybase-12.5/OCS-12_5
 
 
  
 
chronos% make
 
chronos% make
Line 35: Line 34:
 
creating scripts/php-config
 
creating scripts/php-config
 
Installing helper programs:      /afs/.bp.ncsu.edu/contrib/php5/.install/linux/bin/
 
Installing helper programs:      /afs/.bp.ncsu.edu/contrib/php5/.install/linux/bin/
  program: phpize
+
program: phpize
  program: php-config
+
program: php-config
 
Installing man pages:            /afs/.bp.ncsu.edu/contrib/php5/.install/linux/man/man1/
 
Installing man pages:            /afs/.bp.ncsu.edu/contrib/php5/.install/linux/man/man1/
  page: phpize.1
+
page: phpize.1
  page: php-config.1
+
page: php-config.1
 
Installing PEAR environment:      /afs/.bp.ncsu.edu/contrib/php5/.install/linux/lib/php/
 
Installing PEAR environment:      /afs/.bp.ncsu.edu/contrib/php5/.install/linux/lib/php/
  
Line 61: Line 60:
 
Installing PDO headers:          /afs/.bp.ncsu.edu/contrib/php5/.install/linux/include/php/ext/pdo/
 
Installing PDO headers:          /afs/.bp.ncsu.edu/contrib/php5/.install/linux/include/php/ext/pdo/
 
chronos%
 
chronos%
 
+
</pre>
  
 
==LDAP==
 
==LDAP==

Revision as of 15:54, 27 April 2006

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)

Mkdir /opt/php5

Install PHP locally:

chronos% ./configure --enable-cli --disable-cgi --prefix=/opt/php5/ --exec-prefix=/opt/php5/ --with-bz2 --with-kerberos=/usr/kerberos --with-zlib --enable-bcmath --enable-calendar --with-curl --enable-ftp --with-gd --with-ldap --with-snmp --enable-mbstring --with-gmp --with-ncurses --enable-exif --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-gd-native-tiff --enable-shmop --enable-yp --with-gettext --with-ttf --with-pear --enable-memory-limit --with-pic --with-ldap-sasl --with-pcntl --with-openssl --with-mysql=/usr/bin --with-mysqli=/usr/bin/mysql_config --enable-shared --with-sybase-ct=/opt/sybase-12.5/OCS-12_5

chronos% make
chronos% make install

chronos% make install
Installing PHP CLI binary:        /afs/.bp.ncsu.edu/contrib/php5/.install/linux/bin/
Installing PHP CLI man page:      /afs/.bp.ncsu.edu/contrib/php5/.install/linux/man/man1/
Installing build environment:     /afs/.bp.ncsu.edu/contrib/php5/.install/linux/lib/php/build/
Installing header files:          /afs/.bp.ncsu.edu/contrib/php5/.install/linux/include/php/
(CONFIG_FILES=scripts/php-config CONFIG_HEADERS= /afs/bp/contrib/php5/src/php-5.1.2/config.status)
creating scripts/php-config
Installing helper programs:       /afs/.bp.ncsu.edu/contrib/php5/.install/linux/bin/
program: phpize
program: php-config
Installing man pages:             /afs/.bp.ncsu.edu/contrib/php5/.install/linux/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment:      /afs/.bp.ncsu.edu/contrib/php5/.install/linux/lib/php/


The context allocation routine failed when it tried to load localization files!!
One or more following problems may caused the failure

Your sybase home directory is /opt/sybase-12.5. Check the environment variable SYBASE if it is not the one you want!
Using locale name "en_US.UTF-8" defined in environment variable LANG
Locale name "en_US.UTF-8" doesn't exist in your /opt/sybase-12.5/locales/locales.dat file
[PEAR] Archive_Tar    - installed: 1.3.1
[PEAR] Console_Getopt - installed: 1.2
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
[PEAR] PEAR           - installed: 1.4.6
Wrote PEAR system config file at: /afs/.bp.ncsu.edu/contrib/php5/.install/linux/etc/pear.conf
You may want to add: /afs/.bp.ncsu.edu/contrib/php5/.install/linux/lib/php to your php.ini include_path
No log handling enabled - turning on stderr logging
read_config_store open failure on /var/net-snmp/snmpapp.conf
read_config_store open failure on /var/net-snmp/snmpapp.conf
read_config_store open failure on /var/net-snmp/snmpapp.conf
Installing PDO headers:          /afs/.bp.ncsu.edu/contrib/php5/.install/linux/include/php/ext/pdo/
chronos%

LDAP

MYSQL DRIVERS

Since PHP installs no longer bundle MySQL clients, I've had to locally install MySQL clients on CHRONOS. Anyone wishing to use MYSQL support with the PHP CLI, will need to have the MySQL client locally installed on the cron server running the PHP scripts.

You'll need to download the Mysql5 client RPMs from www.mysql.com -- RHEL doesn't have that version at the moment.

 rpm -Uvh MySQL-client-standard-5.0.20-0.rhel4.i386.rpm
 rpm -Uvh MySQL-devel-standard-5.0.20-0.rhel4.i386.rpm
 rpm -Uvh MySQL-shared-standard-5.0.20-0.rhel4.i386.rpm

Not entirely sure the latter two are needed.

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

Running

  export LANG en_US

would probably also work.

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.

Before running: setenv LANG en_US (or 'export LANG=en_US')

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.