Install Local Version on WAMP
2 posts by 2 authors in: Forums > CMS Builder
Last Post: November 6, 2012 (RSS)
By gversion - November 5, 2012
Hello,
I am trying to install cmsAdmin on my local computer which is running WAMP server.
Can you please tell me where I need to make the changes to the appropriate files so that this works?
Currently I am receiving the error:
Thank you,
Greg
I am trying to install cmsAdmin on my local computer which is running WAMP server.
Can you please tell me where I need to make the changes to the appropriate files so that this works?
Currently I am receiving the error:
Couldn't load viewer library, check filepath in sourcecode.
Thank you,
Greg
Re: [gversion] Install Local Version on WAMP
Hi Greg,
Assuming that you've installed CMSB on your WAMP server, at the top of your viewer pages, you may need to change the dirsToCheck path.
Both my CMSB installation and viewer files are in my C:/wamp/www/SIGNUP directory, so my load viewer library call looks like this:
Hope that helps,
Jerry Kornbluth
Assuming that you've installed CMSB on your WAMP server, at the top of your viewer pages, you may need to change the dirsToCheck path.
Both my CMSB installation and viewer files are in my C:/wamp/www/SIGNUP directory, so my load viewer library call looks like this:
<?php
// load viewer library
$libraryPath = 'cmsAdmin/lib/viewer_functions.php';
$dirsToCheck = array('C:/wamp/www/SIGNUP/','','../','../../','../../../');
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }
?>
Hope that helps,
Jerry Kornbluth
The first CMS Builder reference book is now available on-line!
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php