XCach downloading error OLS 1.4.21

14 views
Skip to first unread message

Earl Cannons

unread,
Aug 8, 2016, 5:09:39 AM8/8/16
to OpenLiteSpeed Development
I get an error when xcatch downloading.
Running OLS 1.4.21

Please check attachment
bug.jpg

David

unread,
Aug 8, 2016, 10:26:00 AM8/8/16
to openlitespee...@googlegroups.com
HI,

This bug was fixed and will be in the next release, if you want to fix it for you now, you may want to update the file
/usr/local/lsws/admin/html/lib/util/build_php/buildfunc.inc.php
with the below patch,

diff --git a/lib/util/build_php/buildfunc.inc.php b/lib/util/build_php/buildfunc.inc.php
index 6d46936..c893a76 100644
@@ -671,10 +671,11 @@ class BuildTool
   $this->ext_options['APC'] = $ext;
 
   $ext = array('__extension_name__' => 'XCache');
-  $ver = 'xcache-' . BuildConfig::GetVersion(BuildConfig::XCACHE_VERSION);
+  $ver0 = BuildConfig::GetVersion(BuildConfig::XCACHE_VERSION);
+  $ver = 'xcache-' . $ver0;
   $ext['__extension_dir__'] = $ver;
   $ext['__extension_src__'] = $ver . '.tar.gz';
-  $ext['__extension_download_url__'] = 'http://xcache.lighttpd.net/pub/Releases/' . XCACHE_VERSION . '/' . $ver . '.tar.gz';
+  $ext['__extension_download_url__'] = 'http://xcache.lighttpd.net/pub/Releases/' . $ver0 . '/' . $ver . '.tar.gz';
   $ext['__extract_method__'] = 'tar -zxf';
   $ext['__extension_extra_config__'] = '--enable-xcache';



Thanks.
David
--
You received this message because you are subscribed to the Google Groups "OpenLiteSpeed Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openlitespeed-deve...@googlegroups.com.
To post to this group, send email to openlitespee...@googlegroups.com.
Visit this group at https://groups.google.com/group/openlitespeed-development.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages