Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite

 AfterLogic Forum : AfterLogic WebMail Lite
Subject Topic: Error update to 8.5.2 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
gppixelworks
Newbie
Newbie


Joined: 22 August 2020
Location: United Kingdom
Online Status: Offline
Posts: 11
Posted: 10 November 2020 at 2:45am | IP Logged Quote gppixelworks

[Edit: Just tried to roll back to the prior version of WebMail Lite but see there is only the current version available in the repository. It would be helpful to keep at least one prior version we could roll back to if needed.]

Just updated from the prior version of WebMail Lite and received this error:

Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.1.0". You are running 5.6.40-38+0~20201103.42+debian9~1.gbpb211e0.

The default PHP version for this machine is PHP 7.3.

Any assistance with how to proceed would be most appreciated.

update-alternatives --config php
There are 6 choices for the alternative php (providing /usr/bin/php).

Selection    Path                  Priority   Status
------------------------------------------------------------
0            /usr/bin/php.default   100       auto mode
1            /usr/bin/php.default   100       manual mode
2            /usr/bin/php5          50        manual mode
3            /usr/bin/php5.6        56        manual mode
4            /usr/bin/php7.0        70        manual mode
* 5            /usr/bin/php7.3        73        manual mode
6            /usr/bin/php7.4        74        manual mode


Here's the info on WebMail Lite on the server:

Package: afterlogic-lite
Version: 8.5.2
Priority: extra
Section: web
Maintainer: AfterLogic Support <support@afterlogic.com>
Installed-Size: 64.6 MB
Depends: apache2, php, libapache2-mod-php, php-xml, php-mysqlnd, php-curl, php-mbstring, mysql-server | default-mysql-server, sudo
Conflicts: afterlogic-lite-7
Download-Size: 12.6 MB
APT-Manual-Installed: yes
APT-Sources: http://apt.afterlogic.com/stable Packages


Back to Top View gppixelworks's Profile Search for other posts by gppixelworks
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 10 November 2020 at 2:49am | IP Logged Quote Igor

Is my understanding correct that you were upgrading with "apt-get update" & "apt-get upgrade"?

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
gppixelworks
Newbie
Newbie


Joined: 22 August 2020
Location: United Kingdom
Online Status: Offline
Posts: 11
Posted: 10 November 2020 at 3:00am | IP Logged Quote gppixelworks

Igor wrote:
Is my understanding correct that you were upgrading with "apt-get update" & "apt-get upgrade"?


That is correct. Actually using 'apt upgrade' to be 100% accurate.   
Back to Top View gppixelworks's Profile Search for other posts by gppixelworks
 
gppixelworks
Newbie
Newbie


Joined: 22 August 2020
Location: United Kingdom
Online Status: Offline
Posts: 11
Posted: 10 November 2020 at 3:15am | IP Logged Quote gppixelworks

Igor,

I'd edited my initial post with a WebMail repository suggestion and copied it below in case you missed it ... simply because you were so incredibly quick in reading the post.

[Edit: Just tried to roll back to the prior version of WebMail Lite but see there is only the current version available in the repository. It would be helpful to keep at least one prior version we could roll back to if needed.]
Back to Top View gppixelworks's Profile Search for other posts by gppixelworks
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 10 November 2020 at 3:31am | IP Logged Quote Igor

OK that makes sense, have just updated the repository so v8.5.1 of the products is included as well.

I'm checking with the developers regarding the composer-related issue, will post back once there's a response.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
gppixelworks
Newbie
Newbie


Joined: 22 August 2020
Location: United Kingdom
Online Status: Offline
Posts: 11
Posted: 10 November 2020 at 3:41am | IP Logged Quote gppixelworks

Igor wrote:
OK that makes sense, have just updated the repository so v8.5.1 of the products is included as well.


Thanks so very much! I'm extremely impressed with you and Afterlogic!   

Just noted the prior version in the repository seconds before your post.

To be honest I've looked into a paid version of WebMail, but the limits on the number of accounts just doesn't work in my case as it's a personal, extended family server. Is there a way to show my support or make a donation?
Back to Top View gppixelworks's Profile Search for other posts by gppixelworks
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 10 November 2020 at 4:21am | IP Logged Quote Igor

I just spoke to the developers. As of 8.5.2, we're using v2 of Composer and it now performs platform-check, which can be disabled in Composer configuration:

Composer 2: Platform Check

Still it doesn't explain why your system reports running PHP 5.6 rather than 7. If you run php -v, or better yet, run the following PHP script from command line:

Code:
<?php echo PHP_VERSION;


- which version is reported there?

Quote:
To be honest I've looked into a paid version of WebMail, but the limits on the number of accounts just doesn't work in my case as it's a personal, extended family server.


Well, we offer 5 users license as a personal-level offer. And each of those users can add any number of email accounts under their primary account, and that would still count as one user.

Quote:
Is there a way to show my support or make a donation?


Sure, you can send a donation to paypal@afterlogic.com, or just make a post about our product in Facebook/Twitter, we'll gladly share one.

--
Regards,
Igor, Afterlogic Support

Back to Top View Igor's Profile Search for other posts by Igor
 
gppixelworks
Newbie
Newbie


Joined: 22 August 2020
Location: United Kingdom
Online Status: Offline
Posts: 11
Posted: 10 November 2020 at 5:27am | IP Logged Quote gppixelworks

Igor wrote:
Still it doesn't explain why your system reports running PHP 5.6 rather than 7. If you run php -v, or better yet, run the following PHP script from command line:


Here's what php -v returns:

php -v
PHP 7.3.24-3+0~20201103.72+debian9~1.gbp945915 (cli) (built: Nov 3 2020 14:33:23) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.24, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.24-3+0~20201103.72+debian9~1.gbp945915, Copyright (c) 1999-2018, by Zend Technologies


Back to Top View gppixelworks's Profile Search for other posts by gppixelworks
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 10 November 2020 at 5:57am | IP Logged Quote Igor

Alright, let's try to follow the same approach the package installer uses. Somewhere under /usr/share/afterlogic directory, create a file, say, version.php with the following content:

Code:
<?php echo PHP_VERSION;


then run it as follows:

Code:
sudo -u www-data php /usr/share/afterlogic/version.php


What's the output in that case?

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
gppixelworks
Newbie
Newbie


Joined: 22 August 2020
Location: United Kingdom
Online Status: Offline
Posts: 11
Posted: 10 November 2020 at 7:33am | IP Logged Quote gppixelworks

Igor,

Sorry to be the bearer of bad news, but here's the output:

sudo -u www-data php /usr/share/afterlogic/version.php
7.3.24-3+0~20201103.72+debian9~1.gbp945915



Back to Top View gppixelworks's Profile Search for other posts by gppixelworks
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 10 November 2020 at 8:34am | IP Logged Quote Igor

Quote:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.1.0". You are running 5.6.40-38+0~20201103.42+debian9~1.gbpb211e0.


Did you get that error in console upon the upgrade, or in web browser when opening WebMail? If that's the latter, create /usr/share/afterlogic/info.php file with:

Code:
<?php phpinfo();


and open it in the browser, by appending /info.php to WebMail Lite URL. What version does it show there?

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
gppixelworks
Newbie
Newbie


Joined: 22 August 2020
Location: United Kingdom
Online Status: Offline
Posts: 11
Posted: 11 November 2020 at 3:47am | IP Logged Quote gppixelworks

Igor wrote:
Quote:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.1.0". You are running 5.6.40-38+0~20201103.42+debian9~1.gbpb211e0.


Did you get that error in console upon the upgrade, or in web browser when opening WebMail? If that's the latter, create /usr/share/afterlogic/info.php file with:

Code:
<?php phpinfo();



The error message was returned from the command line/console and was the result of running:

apt update -f

I've done some investigation into this.

From the CLI (Command Line Interface) I entered:

sudo -u www-data php -v
PHP 7.3.24-3+0~20201103.72+debian9~1.gbp945915 (cli)


Apache's default PHP version the version above as indicated by the '*' upon running update-'alternatives --config php' :

Selection    Path                  Priority   Status
------------------------------------------------------------
0            /usr/bin/php.default   100       auto mode
1            /usr/bin/php.default   100       manual mode
2            /usr/bin/php5          50        manual mode
3            /usr/bin/php5.6        56        manual mode
4            /usr/bin/php7.0        70        manual mode
* 5            /usr/bin/php7.3        73        manual mode
6            /usr/bin/php7.4        74        manual mode


To verify the version of PHP being used I created the version.php as you suggested earlier to return the PHP version.

Keeping in mind WebMail was installed via apt and, thus, resides in the /usr/share/afterlogic directory.

Here is what I discovered:

1) When loading the version.php from any web/http directory, using a web browser, it returns:


7.3.24-3+0~20201103.72+debian9~1.gbp945915


2) However, when loaded from /usr/share/afterlogic/version.php with a URL such as this: https://domain.com/afterlogic/version.php we discover this:

5.6.40-38+0~20201103.42+debian9~1.gbpb211e0

So it appears the MailWeb install is doing it's job verifying the proper version of PHP is running.

Now I need to figure out how to get the default Apache version of PHP (v7.3) to run when using the /usr/share/afterlogic directory.

If you know off hand how to accomplish this, I'd love to know. I've taken a quick read and didn't find out how to do so just yet ... but I will.

Thanks so much for your assistance.

Back to Top View gppixelworks's Profile Search for other posts by gppixelworks
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 11 November 2020 at 4:27am | IP Logged Quote Igor

Interesting find indeed! As for webserver setup, WebMail Lite places Apache config file /etc/afterlogic/apache.conf, and I imagine that's where you'd need to set the correct PHP handler.

Also, since WebMail Lite can actually work just fine with PHP 5.6 (Dropbox integration aside), you can disable the check by commenting out or removing the following part of /usr/share/afterlogic/vendor/composer/platform_check.php file:

Code:
if (!(PHP_VERSION_ID >= 70100)) {
    $issues[] = 'Your Composer dependencies require a PHP version ">= 7.1.0". You are running ' . PHP_VERSION  .  '.';
}


Hope this helps. And I've asked the developers to research a more long-term solution, but for now this should do.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide