<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Keith,<br>
<br>
I knew they existed, I didn't realise they would version-track too.
That's handy!<br>
*Feels a tweak to stage 2 of the Ubuntu Installer code coming on*<br>
<br>
What happens if you just install a bunch of metapackages when there
isn't a PHP on the system to start with?<br>
What version does it try to install?<br>
<br>
Thanks!<br>
Jules.<br>
<br>
<div class="moz-cite-prefix">On 02/06/2020 17:28, Keith Erekson via
ZendTo wrote:<br>
</div>
<blockquote type="cite"
cite="mid:WM!1fc768d701ed6b6d70b202f1230a037854c6e1fabcd0f937034556ec757aed8ae75962e41c1c6993038c820594012ab8!@mx.jul.es">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Note that Ubuntu (and Debian) have metapackages for all the php
packages, just called php-mbstring, php-ldap, php-sqlite3, etc.</p>
<p>Installing these will track the relevant specific versions of
the php7.3-whatever, php7.4-whatever, etc., as you upgrade
Ubuntu/Debian versions.</p>
<p>Saves a lot of headaches, and also makes documentation easier.</p>
<p>~Keith<br>
</p>
<div class="moz-cite-prefix">On 6/2/20 10:50 AM, Jules via ZendTo
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:WM!32d57109b140702e82029f1866b167a37dfad346fd287e55c73f946414b08f7562d4831c223b122c1000d9cc0dcb0c1ea7c21187b0fe483879a9710fa6280c22!@mx.jul.es">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
Jake,<br>
<br>
I did test it out on Ubuntu 20.04, but I started from a minimal
server install and let the ZendTo Installer set everything up
for me. That worked fine for me.<br>
<br>
There is a "mbstring" module for PHP, which you appear to be
missing.<br>
Like the sqlite module, it will be in a package named<br>
php7.x-mbstring<br>
where "x" is usually 2, 3 or 4 depending on your version of php
(php --version will tell you that).<br>
<br>
You should end up with these php packages installed (I got this
list from <tt>dpkg -l | grep php</tt> <br>
libapache2-mod-php7.4<br>
php-common<br>
php7.4<br>
php7.4-cli<br>
php7.4-common<br>
php7.4-curl<br>
php7.4-enchant<br>
php7.4-gd<br>
php7.4-imap<br>
php7.4-intl<br>
php7.4-json<br>
php7.4-ldap<br>
php7.4-mbstring<br>
php7.4-mysql<br>
php7.4-opcache<br>
php7.4-readline<br>
php7.4-sqlite3<br>
php7.4-xml<br>
<br>
Installing it on a fresh Ubuntu 20.04LTS server installed PHP
7.4.<br>
<br>
Cheers,<br>
Jules.<br>
<br>
<div class="moz-cite-prefix">On 02/06/2020 15:36, Sallee, Jake
via ZendTo wrote:<br>
</div>
<blockquote type="cite"
cite="mid:WM!35ffe218d87aae605c3f0f93017ec89d8d2ff5a56d7353134ecf15050045ddf34c5b35fd19afc6cd16a30f8c750338a9!@mx.jul.es">
<pre class="moz-quote-pre" wrap="">Sorry! My initial reply went to the wrong address:
Neil, you're a genius!
While that didn't completely fix the issue it did get rid of the HTTP 500 error, now in the log I get this:
=> /var/log/apache2/zendto_error.log <==
[Tue Jun 02 09:27:40.094119 2020] [php7:error] [pid 31158] [client 10.11.0.54:48300] PHP Fatal error: Uncaught Error: Call to undefined function mb_convert_encoding() in /var/zendto/templates_c/9da848d4b67ceaa147b62c8524dedce691bc7ce2_0.file.header.tpl.php:350\nStack trace:\n#0 /opt/zendto/lib/smarty/sysplugins/smarty_template_resource_base.php(123): content_5ed5319145bc90_56686873()\n#1 /opt/zendto/lib/smarty/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()\n#2 /opt/zendto/lib/smarty/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render()\n#3 /opt/zendto/lib/smarty/sysplugins/smarty_internal_template.php(385): Smarty_Internal_Template->render()\n#4 /var/zendto/templates_c/6589cea3d6fc662e66e11280f00e023cec6383d2_0.file.main_menu.tpl.php(28): Smarty_Internal_Template->_subTemplateRender()\n#5 /opt/zendto/lib/smarty/sysplugins/smarty_template_resource_base.php(123): content_5ed531913fcdb0_07262973()\n#6 /opt/zendto/lib/smarty/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()\n#7 /opt/zendt in /var/zendto/templates_c/9da848d4b67ceaa147b62c8524dedce691bc7ce2_0.file.header.tpl.php on line 350
Any ideas? I'm going to hit google as soon as I hit send on this : )
Jake Sallee
Godfather of Bandwidth
System Engineer and Security Specialist
University of Mary Hardin-Baylor
<a class="moz-txt-link-abbreviated" href="http://WWW.UMHB.EDU" moz-do-not-send="true">WWW.UMHB.EDU</a>
900 College St.
Belton, Texas
76513
Fone: 254-295-4658
Phax: 254-295-4221
________________________________________
From: <a class="moz-txt-link-abbreviated" href="mailto:zend.to@neilzone.co.uk" moz-do-not-send="true">zend.to@neilzone.co.uk</a> <a class="moz-txt-link-rfc2396E" href="mailto:zend.to@neilzone.co.uk" moz-do-not-send="true"><zend.to@neilzone.co.uk></a>
Sent: Tuesday, June 2, 2020 9:07 AM
To: ZendTo Users
Cc: Sallee, Jake
Subject: Re: [ZendTo] Error after upgrade to v6 AND ubuntu 20.04
EXTERNAL Exercise Caution
On 2 Jun 2020, at 14:59, Sallee, Jake via ZendTo <<a class="moz-txt-link-abbreviated" href="mailto:zendto@zend.to" moz-do-not-send="true">zendto@zend.to</a><a class="moz-txt-link-rfc2396E" href="mailto:zendto@zend.to" moz-do-not-send="true"><mailto:zendto@zend.to></a>> wrote:
==> /var/log/apache2/zendto_error.log <==
[Tue Jun 02 08:11:16.382445 2020] [php7:error] [pid 14685] [client 123.123.123.123:46880] PHP Fatal error: Cannot declare class Sql, because the name is already in use in /opt/zendto/lib/SQLite3.php on line 29
Do you have sqlite installed for your version of php?
(If not, perhaps apt-get install php7.x-sqlite will fix it, replacing x with your php7 sub-version.)
Neil
__________
_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to" moz-do-not-send="true">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://jul.es/mailman/listinfo/zendto" moz-do-not-send="true">http://jul.es/mailman/listinfo/zendto</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
'Is the Holocaust an aberration, or a reflection of who we really are?'
- Holocaust Museum, Berlin
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To" moz-do-not-send="true">www.Zend.To</a>
Twitter: @JulesFM
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to" moz-do-not-send="true">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://jul.es/mailman/listinfo/zendto" moz-do-not-send="true">http://jul.es/mailman/listinfo/zendto</a>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://jul.es/mailman/listinfo/zendto">http://jul.es/mailman/listinfo/zendto</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
'When a man points a finger at someone else, he should remember
that four of his fingers are pointing at himself.' - Louis Nizer
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
</pre>
</body>
</html>