Updated tonight and get Zend Optimizer screen

Hi – I went and update tonight and after doing that I cannot get back to the GUI. I have the following screen:

++++++++++++++++++++++++++

This file was encoded by the Zend Guard. In order to run it, please install the Zend Optimizer (available without charge), version 3.0.0 or later.

Seeing this message instead of the website you expected?

This means that this webserver is not configured correctly. In order to view this website properly, please contact the website’s system administrator/webmaster with the following message:

The component “Zend Optimizer” is not installed on the Web Server and therefore cannot service encoded files. Please download and install the Zend Optimizer (available without charge) on the Web Server.

Note: Zend Technologies cannot resolve issues related to this message appearing on websites not belonging to Zend Technologies.
What is the Zend Optimizer?

The Zend Optimizer is one of the most popular PHP plugins for performance-improvement, and has been available without charge, since the early days of PHP 4. It improves performance by scanning PHP’s intermediate code and passing it through multiple Optimization Passes to replace inefficient code patterns with more efficient code blocks. The replaced code blocks perform exactly the same operations as the original code, only faster.

In addition to improving performance, the Zend Optimizer also enables PHP to transparently load files encoded by the Zend Guard.

The Zend Optimizer is a free product available for download from Zend Technologies. Zend Technologies also developed the PHP scripting engine, known as the Zend Engine.

+++++++++++++++++++++++++

I do not know how to install the Zend Optimizer - I admit, I am not a Linux person so if someone could give me some steps I will resolve the issue.

I ma running PBXIAF.

If you could give me the root command line step by step I would greatly appreciate. I looked for this on Google and also here and cannot find one that works.

Try this - I had the same errors this AM after the update and found this and all came back up after a reboot…

http://support.velocityhost.com.au/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=31

I’m lucky - Just getting into Asterisk and this system is not live so I was not too nervous. I could have just reloaded from scratch if all failed.

I followed the directions at the link and it instaleld but after a reboot is till ahve the same screen.

Can anyone help me? I cannot get to the GUI and I need to do so ASAP.

I get this message when trying to install

ERROR with rpm_check_debug vs depsolve:
Package perl-DBD-MySQL needs libmysqlclient.so.15, this is not available.
-bash: ERROR: command not found
Package perl-DBD-MySQL needs libmysqlclient.so.15(libmysqlclient_15), this is not available.

What a mess. Anyone have any ideas how to disable Zend totally and get abck to the old system?

You are running PBX in a Flash, how did you update?
What script or command did you run to end up with the error?

I updated the regular way via the GUI, checked for upodates, installed the updates. And clicked the orange button to relaod and then this came up.

Any idea how I can undo? Besides this, my SIPSTATION trunks seem to be down (again) a continuous problem on SIPSTATION. But lets get this solved so i can at least see what’s goign on. Thanks Mikael for any help.

Can you run this in a shell:
/var/lib/asterisk/bin/module_admin list

Updated through Module Admin from the GUI and now getting this Zend Optimizer error. This, I’m sure, is very wide spread and only a few people have updated and/or reported it thus far.

root@pbx:~ $ /var/lib/asterisk/bin/module_admin list
no repos specified, using: [standard,extended,unsupported,commercial] from last GUI settings

Module Version Status


a2billing Not Installed (Locally available)
agentadministration Not Installed (Locally available)
announcement 2.9.0.2 Enabled
asterisk-cli 2.9.0.2 Enabled
asteriskinfo 2.9.0.3 Enabled
backup 2.9.0.3 Enabled
blacklist 2.9.0.1 Enabled
bosssecretary Not Installed (Locally available)
broadcast 2.9.0.6 Enabled
builtin Enabled
bulkdids 2.9.0.2 Enabled
bulkextensions 2.9.0.5 Enabled
callback 2.9.0.4 Enabled
callforward 2.9.0.1 Enabled
callwaiting 2.9.0.0 Enabled
cidlookup 2.9.0.5 Enabled
conferences 2.9.0.2 Enabled
configedit 1.0 Enabled
core 2.9.0.2 Enabled
customappsreg 2.9.0.1 Enabled
customcontexts Not Installed (Locally available)
dashboard 2.9.0.4 Enabled
dictate 2.9.0.0 Enabled
disa 2.9.0.4 Enabled
dundicheck 2.9.0.1 Enabled
enumplus 0.2.2 Enabled
extcfg 0.1 Enabled
fax 2.9.0.5 Enabled
faxpro 2.9.0.14 Enabled
featurecodeadmin 2.9.0.0 Enabled
findmefollow 2.9.0.6 Enabled
framework 2.9.0.7 Enabled
fw_ari 2.9.0.6 Enabled
fw_fop 2.9.0.1 Enabled
fw_langpacks 2.9.0.1 Enabled
hotelwakeup 1.2.3 Enabled
iaxsettings 2.9.0.4 Enabled
infoservices 2.9.0.0 Enabled
inventorydb 2.5.0.1 Enabled
irc 2.9.0.1 Enabled
ivr 2.9.0.5 Enabled
javassh 2.9.0.0 Enabled
keylock Not Installed (Locally available)
logfiles 2.9.0.1 Enabled
manager 2.9.0.3 Enabled
miscapps 2.9.0.2 Enabled
miscdests 2.9.0.1 Enabled
music 2.9.0.1 Enabled
outroutemsg 2.9.0.1 Enabled
paging 2.9.0.5 Enabled
parking 2.9.0.4 Enabled
pbdirectory 2.9.0.2 Enabled
phonebook 2.9.0.2 Enabled
phpagiconf 2.9.0.2 Enabled
phpinfo 2.9.0.1 Enabled
phpmyadmin 2.11.0 Enabled
pinsets 2.9.0.1 Enabled
printextensions 2.9.0.1 Enabled
qxact_reports 2.9.0.8 Enabled
recordings 3.3.11.2 Enabled
restart 2.9.0.2 Enabled
ringgroups 2.9.0.6 Enabled
setcid 2.9.0.1 Enabled
sipsettings 2.9.0.5 Enabled
superfecta 2.2.3 Enabled
sysinfo phpsysinfo 2.5.3 Enabled
teletorture 0.0.4 Enabled
vmnotify 2.9.1.7 Enabled
voicemail 2.9.0.5 Enabled
weakpasswords 2.9.0.1 Enabled
weather 1.0.0 Enabled
webcallback 2.9.0.6 Enabled

I can confirm this works:

wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh

yum install php-zend-optimizer

service httpd restart

After its done, run ‘php -v’ and you should see:

PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:37)
Copyright © 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright © 1998-2006 Zend Technologies
with Zend Optimizer v3.3.3, Copyright © 1998-2007, by Zend Technologies

yes here is my output

no repos specified, using: [standard,extended,unsupported,commercial] from last GUI settings

Module Version Status


a2billing 1.0 Enabled
announcement 2.9.0.2 Enabled
asterisk-cli 2.9.0.2 Enabled
asteriskinfo 2.9.0.3 Enabled
backup 2.9.0.3 Enabled
blacklist 2.9.0.1 Enabled
broadcast 2.9.0.6 Enabled
builtin Enabled
bulkdids 2.9.0.2 Enabled
bulkextensions 2.9.0.5 Enabled
callback 2.9.0.4 Enabled
callforward 2.9.0.1 Enabled
callwaiting 2.9.0.0 Enabled
cidlookup 2.9.0.5 Enabled
conferences 2.9.0.2 Enabled
configedit 1.0 Enabled
core 2.9.0.2 Enabled
customappsreg 2.9.0.1 Enabled
customcontexts 2.9.0.0 Enabled
customerdb 2.5.0.4 Enabled
dahdiconfig 2.9.0.1 Enabled
dashboard 2.9.0.4 Enabled
daynight 2.9.0.3 Enabled
dictate 2.9.0.0 Enabled
directory 2.9.0.10 Enabled
directorypro 2.9.0.12 Enabled
disa 2.9.0.4 Enabled
donotdisturb 2.9.0.1 Enabled
dundicheck 2.9.0.1 Enabled
endpointman 2.9.1.2 Enabled
extensionsettings 2.9.0.0 Enabled
fax 2.9.0.5 Enabled
faxpro 2.9.0.14 Enabled
featurecodeadmin 2.9.0.0 Enabled
findmefollow 2.9.0.6 Enabled
framework 2.9.0.7 Enabled
fw_ari 2.9.0.6 Enabled
fw_fop 2.9.0.1 Enabled
fw_langpacks 2.9.0.1 Enabled
gabcast 2.5.0.2 Enabled
iaxsettings 2.9.0.4 Enabled
infoservices 2.9.0.0 Enabled
inventorydb 2.5.0.2 Enabled
irc 2.9.0.1 Enabled
ivr 2.9.0.5 Enabled
javassh 2.9.0.0 Enabled
languages 2.9.0.3 Enabled
logfiles 2.9.0.1 Enabled
manager 2.9.0.3 Enabled
miscapps 2.9.0.2 Enabled
miscdests 2.9.0.1 Enabled
music 2.9.0.1 Enabled
outboundnotification2.9.1.1 Enabled
outroutemsg 2.9.0.1 Enabled
paging 2.9.0.5 Enabled
parking 2.9.0.4 Enabled
pbdirectory 2.9.0.2 Enabled
phonebook 2.9.0.2 Enabled
phpagiconf 2.9.0.2 Enabled
phpinfo 2.9.0.1 Enabled
phpmyadmin 2.11.0 Enabled
pinsets 2.9.0.1 Enabled
printextensions 2.9.0.1 Enabled
queueprio 2.9.0.1 Enabled
queues 2.9.0.12 Enabled
qxact_reports 2.9.0.8 Enabled
recordings 3.3.11.2 Enabled
restart 2.9.0.2 Enabled
ringgroups 2.9.0.6 Enabled
setcid 2.9.0.1 Enabled
sipsettings 2.9.0.5 Enabled
sipstation 2.9.0.1 Enabled
speeddial 2.9.0.1 Enabled
sysinfo phpsysinfo 2.5.3 Enabled
timeconditions 2.9.0.7 Enabled
vmblast 2.9.0.3 Enabled
vmnotify 2.9.1.7 Enabled
voicemail 2.9.0.5 Enabled
weakpasswords 2.9.0.1 Enabled
webcallback 2.9.0.6 Enabled

I get an error first, and the wrong php version

++++++++++++++++++

root@pbx:~ $ yum install php-zend-optimizer
Excluding Packages from CentOS-5 - Extras
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Excluding Packages from CentOS-5 - Addons
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
–> Running transaction check
—> Package php-zend-optimizer.i386 1:3.3.9-2.el5.art set to be updated
–> Processing Dependency: php-devel for package: php-zend-optimizer
–> Running transaction check
—> Package php-devel.i386 0:5.3.8-1.el5.art set to be updated
–> Processing Dependency: php = 5.3.8-1.el5.art for package: php-devel
–> Running transaction check
—> Package php.i386 0:5.3.8-1.el5.art set to be updated
–> Processing Dependency: php-cli = 5.3.8-1.el5.art for package: php
–> Processing Dependency: php-common = 5.3.8-1.el5.art for package: php
–> Running transaction check
—> Package php-common.i386 0:5.3.8-1.el5.art set to be updated
–> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-pdo
–> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-mysql
–> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-gd
–> Processing Dependency: php-common = 5.1.6-20.el5_2.1 for package: php-mbstring
—> Package php-cli.i386 0:5.3.8-1.el5.art set to be updated
–> Processing Dependency: libedit.so.0 for package: php-cli
–> Running transaction check
—> Package php-mysql.i386 0:5.3.8-1.el5.art set to be updated
–> Processing Dependency: libmysqlclient.so.16 for package: php-mysql
–> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: php-mysql
—> Package libedit.i386 0:3.0-2.20090923cvs.el5.art set to be updated
—> Package php-mbstring.i386 0:5.3.8-1.el5.art set to be updated
—> Package php-gd.i386 0:5.3.8-1.el5.art set to be updated
–> Processing Dependency: libt1.so.5 for package: php-gd
—> Package php-pdo.i386 0:5.3.8-1.el5.art set to be updated
–> Running transaction check
—> Package mysql-libs.i386 0:5.1.58-2.el5.art set to be updated
–> Processing Dependency: mysql = 5.1.58-2.el5.art for package: mysql-libs
—> Package t1lib.i386 0:5.1.2-2.el5.art set to be updated
–> Running transaction check
–> Processing Dependency: libmysqlclient.so.15 for package: mysql-server
–> Processing Dependency: libmysqlclient.so.15 for package: mysql-devel
–> Processing Dependency: libmysqlclient.so.15 for package: perl-DBD-MySQL
–> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: mysql-server
–> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: perl-DBD-MySQL
–> Processing Dependency: libmysqlclient_r.so.15 for package: mysql-devel
–> Processing Dependency: libmysqlclient_r.so.15 for package: mysql-server
–> Processing Dependency: libmysqlclient_r.so.15(libmysqlclient_15) for package: mysql-server
–> Processing Dependency: mysql = 5.0.45-7.el5 for package: mysql-devel
–> Processing Dependency: mysql = 5.0.45-7.el5 for package: mysql-server
—> Package mysql.i386 0:5.1.58-2.el5.art set to be updated
–> Running transaction check
—> Package mysql-devel.i386 0:5.1.58-2.el5.art set to be updated
—> Package perl-DBD-MySQL.i386 0:3.0007-2.el5 set to be updated
—> Package mysql-server.i386 0:5.1.58-2.el5.art set to be updated
–> Processing Conflict: php conflicts php-zend-optimizer
–> Restarting Dependency Resolution with new changes.
–> Running transaction check
–> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size

Installing:
php-zend-optimizer i386 1:3.3.9-2.el5.art atomic 2.2 M
Updating:
mysql i386 5.1.58-2.el5.art atomic 4.2 M
php i386 5.3.8-1.el5.art atomic 1.3 M
php-cli i386 5.3.8-1.el5.art atomic 2.6 M
php-common i386 5.3.8-1.el5.art atomic 979 k
Installing for dependencies:
libedit i386 3.0-2.20090923cvs.el5.art atomic 80 k
mysql-libs i386 5.1.58-2.el5.art atomic 2.1 M
php-devel i386 5.3.8-1.el5.art atomic 625 k
t1lib i386 5.1.2-2.el5.art atomic 194 k
Updating for dependencies:
mysql-devel i386 5.1.58-2.el5.art atomic 224 k
mysql-server i386 5.1.58-2.el5.art atomic 11 M
perl-DBD-MySQL i386 3.0007-2.el5 base 148 k
php-gd i386 5.3.8-1.el5.art atomic 205 k
php-mbstring i386 5.3.8-1.el5.art atomic 2.3 M
php-mysql i386 5.3.8-1.el5.art atomic 149 k
php-pdo i386 5.3.8-1.el5.art atomic 114 k

Transaction Summary

Install 5 Package(s)
Update 11 Package(s)
Remove 0 Package(s)

Total download size: 29 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
Package php conflicts with php-zend-optimizer.
Package perl-DBD-MySQL needs libmysqlclient.so.15, this is not available.
Package perl-DBD-MySQL needs libmysqlclient.so.15(libmysqlclient_15), this is not available.
Complete!
root@pbx:~ $ service httd restart
httd: unrecognized service
root@pbx:~ $ service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
root@pbx:~ $ php -v
PHP 5.1.6 (cli) (built: Jul 16 2008 19:53:00)
Copyright © 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright © 1998-2006 Zend Technologies
root@pbx:~ $

+++++++++++++++++++++++++++++++

It fails on the perl package not being correct.

@denislv run this in a shell:
/var/lib/asterisk/bin/module_admin disable broadcast
/var/lib/asterisk/bin/module_admin disable faxpro
/var/lib/asterisk/bin/module_admin disable qxact_reports
/var/lib/asterisk/bin/module_admin disable vmnotify
/var/lib/asterisk/bin/module_admin disable webcallback

Then test if it is working.

@Almoprocess run this in a shell:
/var/lib/asterisk/bin/module_admin disable broadcast
/var/lib/asterisk/bin/module_admin disable directorypro
/var/lib/asterisk/bin/module_admin disable faxpro
/var/lib/asterisk/bin/module_admin disable outboundnotification
/var/lib/asterisk/bin/module_admin disable qxact_reports
/var/lib/asterisk/bin/module_admin disable vmnotify
/var/lib/asterisk/bin/module_admin disable webcallback

Then test if it is working.

If not, then run the same again substituting disable with delete

and the results are this for each line:

+++++++++++++++++++++++++

root@pbx:~ $ /var/lib/asterisk/bin/module_admin delete webcallback

Zend Optimizer not installed

This file was encoded by the Zend Guard. In order to run it, please install the Zend Optimizer (available without charge), version 3.0.0 or later.

Seeing this message instead of the website you expected?

This means that this webserver is not configured correctly. In order to view this website properly, please contact the website's system administrator/webmaster with the following message:

The component "Zend Optimizer" is not installed on the Web Server and therefore cannot service encoded files. Please download and install the Zend Optimizer (available without charge) on the Web Server.

Note: Zend Technologies cannot resolve issues related to this message appearing on websites not belonging to Zend Technologies.

What is the Zend Optimizer?

The Zend Optimizer is one of the most popular PHP plugins for performance-improvement, and has been available without charge, since the early days of PHP 4. It improves performance by scanning PHP's intermediate code and passing it through multiple Optimization Passes to replace inefficient code patterns with more efficient code blocks. The replaced code blocks perform exactly the same operations as the original code, only faster.

In addition to improving performance, the Zend Optimizer also enables PHP to transparently load files encoded by the Zend Guard.

The Zend Optimizer is a free product available for download from Zend Technologies. Zend Technologies also developed the PHP scripting engine, known as the Zend Engine.

+++++++++++++++++++++

any ideas?

Ok, the do this:
Go to /var/www/html/admin/modules and delete the module directories manually, just those listed above.

NOTE: Just delete broadcast, faxpro, directorypro, outboundnotification, qxact_reports, vmnotify and webcallback directories, if they exist.

To avoid anyone installing commercial modules that do not have the proper zend optimizer in the future the commercial modules will no longer install if zend is not installed on your system. This should avoid anyone from doing this in the future by accident.

OK that worked. Now I have the GUI back but it says I have 7 broken modules.

I also last night downloaded the latest version of PBXIAF, installed it on another computer, went through the the entire install and upgrade process and arrived at the ZEND OPTIMIZER screen again. However it was fixed by running the commands

++++++++++++++++++

wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh

yum install php-zend-optimizer

service httpd restart

After its done, run ‘php -v’ and you should see:

PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:37)
Copyright © 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright © 1998-2006 Zend Technologies
with Zend Optimizer v3.3.3, Copyright © 1998-2007, by Zend Technologies

+++++++++++++++++++++

what should I do next to fix my system?

I now also have another warning after a shutdown and restart

++++++++++++++++++++++

Symlink from modules failed

retrieve_conf failed to sym link:
/etc/asterisk/logger.conf from core/etc
This can result in FATAL failures to your PBX. If the target file exists and not identical, the symlink will not occur and you should rename the target file to allow the automatic sym link to occur and remove this error, unless this is an intentional customization.
Added 35 seconds ago
(retrieve_conf.SYMLINK)

++++++++++++++++++++++++++++++

For those broken modules, just Uninstall them in Module Admin. It will complain about not being able to do so, but it will clean up the database.

As for the logger.conf, rename the file in /etc/asterisk and then trigger an Apply Changes in FreePBX to solve that.

You might want to check that the file /etc/asterisk/logger_logfiles_custom.conf contains:
full => notice,warning,error,verbose

Check all your /etc/asterisk/logger_* files so that you don’t have the above line in any of those file except for /etc/asterisk/logger_logfiles_custom.conf.

thanks all of that cleaned it up. I appreciate your help.

Is there an easy way to upgrade to 1.8 or is that a complete re install?