This page provides information on how to upgrade from VCL 2.2 to VCL 2.3. Please note it only applies for the upgrade from 2.2 to 2.3, this may or may not work for other versions.
tar xjf apache-VCL-2.3.tar.bz2
Shutdown the httpd and vcld services
service httpd stop or /etc/init.d/httpd stop
service vcld stop or /etc/init.d/vcld stop
We will create a backup of the vcl database. This will provide a restore point if necessary.
mysqldump vcl > ~/vcl-pre2.3-upgrade.sql
cd /root/apache-VCL-2.3
mysql vcl < mysql/update-vcl.sql
$vclhost = 'localhost';
$vcluser = 'vcluser';
mysql
GRANT CREATE TEMPORARY TABLES ON `vcl`.* TO 'vcluser'@'localhost';
exit
This step we will move the 2.2 web directory out of the way, so we can copy in the new web code base. After copying in the new code, we will migrate your configuration changes. These instructions assume that you installed the vcl web code at /var/www/html/vcl. If you installed it elsewhere, replace /var/www/html/vcl with your vcl web root.
cd /var/www/html
mv vcl ~/vcl_2.2_web
cd /root/apache-VCL-2.3
cp -r web /var/www/html/vcl
cd ~/vcl_2.2_web/.ht-inc
cp conf.php secrets.php pubkey.pem keys.pem /var/www/html/vcl/.ht-inc
ps aux | grep httpd
chown apache /var/www/html/vcl/.ht-inc/maintenance
vi /var/www/html/vcl/.ht-inc/conf.php or nano /var/www/html/vcl/.ht-inc/conf.php
$blockNotifyUsers
$userlookupUsers
define("DEFAULTLOCALE", "en_US");
define("ALLOWADDSHIBUSERS", 0);
"lookupuserbeforeauth" => 0,
"lookupuserfield" => '',
$affilValFunc
$affilValFuncArgs
$addUserFunc
$addUserFuncArgs
$updateUserFunc
$updateUserFuncArgs
$affilValFunc = array(); $affilValFuncArgs = array(); $addUserFunc = array(); $addUserFuncArgs = array(); $updateUserFunc = array(); $updateUserFuncArgs = array(); foreach($authMechs as $key => $item) { if($item['type'] == 'ldap') { $affilValFunc[$item['affiliationid']] = 'validateLDAPUser'; $affilValFuncArgs[$item['affiliationid']] = $key; $addUserFunc[$item['affiliationid']] = 'addLDAPUser'; $addUserFuncArgs[$item['affiliationid']] = $key; $updateUserFunc[$item['affiliationid']] = 'updateLDAPUser'; $updateUserFuncArgs[$item['affiliationid']] = $key; } elseif($item['type'] == 'local') { $affilValFunc[$item['affiliationid']] = create_function('', 'return 0;'); $addUserFunc[$item['affiliationid']] = create_function('', 'return NULL;'); $updateUserFunc[$item['affiliationid']] = create_function('', 'return NULL;'); } }
service httpd start or /etc/init.d/httpd start
This step will make a backup copy of the 2.2 vcl code base and then copy the new code over the existing code to preserve any drivers or other files you've added.
cd <your vcl MN code root path>
ie. cd /usr/local/
cp -r vcl ~/vcl_2.2_managementnode
/bin/cp -r /root/apache-VCL-2.3/managementnode/* /usr/local/vcl
/usr/local/vcl/bin/install_perl_libs.pl
service vcld start or /etc/init.d/vcld start