installing Zend Guard Loader on Mac os with PHP 5.3

General discussion on Zend Guard / Optimizer

installing Zend Guard Loader on Mac os with PHP 5.3

Postby habbalm on Fri Sep 09, 2011 8:50 pm

I have downloaded the file ZendGuardLoader.so for Php 5.3 and I placed in


/usr/bin/ZendGuardLoader.so

so now I'm trying to load it in php.ini:


zend_extension=/usr/lib/ZendGuardLoader.so
; Enables loading encoded scripts. The default value is On
zend_loader.enable=1



; Dsisable license checks (for performance reasons)
zend_loader.disable_licensing=0

; The Obfuscation level supported by Zend Guard Loader. The levels are detailed$
zend_loader.obfuscation_level_support=3

; Path to where licensed Zend products should look for the product license. For$
zend_loader.license_path=



But I'm still not able to see it in my PhpInfo();
habbalm
 
Posts: 2
Joined: Fri Sep 09, 2011 8:36 pm

Re: installing Zend Guard Loader on Mac os with PHP 5.3

Postby kentatzend on Fri Sep 09, 2011 9:16 pm

Is there a typo in your php.ini file? Above you saythe file is in /usr/bin/ but in your ini setting you have /usr/lib
User avatar
kentatzend
 
Posts: 1778
Joined: Thu Dec 11, 2008 1:08 pm

Re: installing Zend Guard Loader on Mac os with PHP 5.3

Postby habbalm on Sat Sep 10, 2011 9:57 pm

I checked the file and its located at the right path /usr/lib/Zend...so

but still not able to make it work!!
habbalm
 
Posts: 2
Joined: Fri Sep 09, 2011 8:36 pm

Re: installing Zend Guard Loader on Mac os with PHP 5.3

Postby kentatzend on Thu Sep 15, 2011 7:00 pm

please post your php info output and your entire php.ini file.
User avatar
kentatzend
 
Posts: 1778
Joined: Thu Dec 11, 2008 1:08 pm

Re: installing Zend Guard Loader on Mac os with PHP 5.3

Postby pavelzn on Tue Oct 04, 2011 2:21 pm

I have same problem on Mac OS X Lion:
And apache write error in log: Failed loading /usr/lib/php/extensions/ZendGuardLoader.so: dlopen(/usr/lib/php/extensions/ZendGuardLoader.so, 9): no suitable image found. Did find:
/usr/lib/php/extensions/ZendGuardLoader.so: mach-o, but wrong architecture

I have downloaded this file from your site just now.
pavelzn
 
Posts: 1
Joined: Tue Oct 04, 2011 2:17 pm

Re: installing Zend Guard Loader on Mac os with PHP 5.3

Postby ayoobi on Sat Oct 15, 2011 1:50 pm

I have the same problem exactly! Anyone was able to solve this mystery??

I am running Mac OS Snow Leopard, 10.6.8 Intel Core 2 Duo.. Using MAMP 2.0.3 and PHP 5.3.6

I am quite sure I configured it exactly as described yet I still have the same error:

Failed loading /usr/lib/php/extensions/ZendGuardLoader.so: dlopen(/usr/lib/php/extensions/ZendGuardLoader.so, 9): no suitable image found. Did find:
/usr/lib/php/extensions/ZendGuardLoader.so: mach-o, but wrong architecture


My php -v output shows:

PHP 5.3.4 (cli) (built: Dec 15 2010 12:15:07)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Is it normal that the above PHP version (PHP 5.3.4) is different from the one in (MAMP PHP 5.3.6)?

Attached is my php.ini and the apache error log..

I am attaching my php.ini and phpinfo
Attachments
apache_error.log
(142.31 KiB) Downloaded 492 times
php.ini
(40.49 KiB) Downloaded 615 times
ayoobi
 
Posts: 5
Joined: Tue Sep 27, 2011 10:50 am

Re: installing Zend Guard Loader on Mac os with PHP 5.3

Postby robert_kosek on Thu Oct 20, 2011 2:22 pm

Looks like the loader has been built for the wrong architecture. Hence the "no suitable image found".

Code: Select all
Failed loading /etc/modules/ZendGuardLoader.so:  dlopen(/etc/modules/ZendGuardLoader.so, 9): no suitable image found.  Did find:
   /etc/modules/ZendGuardLoader.so: mach-o, but wrong architecture


This is the problem, from the readme:

Code: Select all
======================
4. System Requirements
======================

- Supported operating systems:
  - Linux    x86
  - Linux    x86-64
  - Windows  x86 2000 / XP / 2003 / Vista
  - Mac OS X 10.4


In other words, till Zend updates their code to support OSX 10.6, 10.7... we're hung out to dry.
robert_kosek
 
Posts: 1
Joined: Thu Oct 20, 2011 2:15 pm

Re: installing Zend Guard Loader on Mac os with PHP 5.3

Postby kaorukobohj on Mon Feb 06, 2012 3:53 am

I have same problem,

Code: Select all
Failed loading /opt/local/packages/ZendGuardLoader-php-5.3-darwin-i386/php-5.3.x/ZendGuardLoader.so:  dlopen(/opt/local/packages/ZendGuardLoader-php-5.3-darwin-i386/php-
5.3.x/ZendGuardLoader.so, 9): no suitable image found.  Did find:
/opt/local/packages/ZendGuardLoader-php-5.3-darwin-i386/php-5.3.x/ZendGuardLoader.so: mach-o, but wrong architecture


on

Code: Select all
Mac OS X 10.6.8
Darwin Kernel Version 10.8.0: Tue Jun  7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64
Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/1.0.0d PHP/5.3.6  (everything from Macports)
kaorukobohj
 
Posts: 1
Joined: Mon Feb 06, 2012 3:51 am

Re: installing Zend Guard Loader on Mac os with PHP 5.3

Postby alex120 on Sat Apr 20, 2013 9:30 pm

Same problem here for macosx 10.6... I even think that 10.4 is not even supported by apple...
alex120
 
Posts: 1
Joined: Sat Apr 20, 2013 9:28 pm

Re: installing Zend Guard Loader on Mac os with PHP 5.3

Postby chri7854 on Thu May 16, 2013 10:41 pm

Hello,

I am facing the same issue. The pinned message "Zend Guard 5.5 package for OSX 10.7 Lion" from Roman Basayev does not exactly solve my problem as I am about to set up a server with software we bought requiring the installation of ZendGuard Loader, not ZendGuard itself. We are not developing Software and are not about to buy ZendGuard, I am just an admin who has to run a ZendGuard encoded webapp.

I downloaded <yourcompanyserver>/en/download/416, which is Zend Guard Loader (Runtime for PHP 5.3) 5.5.0 for MacOS 10.4 and later. I have put it into /usr/lib/php/extensions and adjusted /etc/php.ini accordingly. When requesting the index.php file from the webapp we bought, I get the following message in the browser: Zend Guard Run-time support missing! The apache error_log tells "Failed loading ZendGuardLoader_so: dlopen(ZendGuardLoader_so, 9): image not found" while starting apache. (I was forced by the bulletin board to replace the proper URL and the appearances of the filename within the log line to be able to post this information which btw discourages the provision of precise information.)

The Server machine is an XServe 2008 which does not allow for installation of any more recent Operating System than MacOS 10.7.5. This OS Version includes Apache/2.2.22 (Unix) PHP/5.3.15 with Suhosin-Patch mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2. All system requirements are met and there was no indication that the webapp could not be run on this machine. Replacing the OS supplied Apache with a selfcompiled version as a resort from my issue does not seem fit for a production machine.

Id expect to get a working copy of ZendGuardLoader without hassle for the Intel machine architecture, which is common to all Macintoshes since nearly seven years by now. With versions offered for either MacOS 10.4 and 10.8, it did not come to my mind during my thorough investigations I did in advance that Version 10.7 or 10.6, which are OS versions still supported by Apple could be unsupported by Zend. Nor did the software vendor, which in turn is a customer of Zend, anticipate such a pitfall. So please provide me an appropriate package to me and the general public.
chri7854
 
Posts: 2
Joined: Thu May 16, 2013 9:56 pm

Next

Return to Zend Guard / Optimizer

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests