Hi folks,

I'm using cubecart shopping cart software which uses zend optimizer. According to my server admin, Zend Optimizer 3.3 is installed, and he even sent me the log:

[Dec 27 16:46:59] Copying: ../data/5_2_x_comp/TS/ZendOptimizer.so to: /usr/local/Zend/lib/Optimizer_TS-3.3.0/php-5.2.x/ZendOptimizer.so
[Dec 27 16:46:59] Setting permissions on /usr/local/Zend/lib/Optimizer_TS-3.3.0/php-5.2.x/ZendOptimizer.so: mode=100755
[Dec 27 16:46:59] Added new extension to php.ini: zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
[Dec 27 16:46:59] Replaced line: zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0 by: zend_extension_manager.optimizer=/usr/local/Zend/li
b/Optimizer-3.3.0 in php.ini
[Dec 27 16:46:59] Replaced line: zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0 by: zend_extension_manager.optimizer_ts=/usr/loca
l/Zend/lib/Optimizer_TS-3.3.0 in php.ini
[Dec 27 16:46:59] Added new extension to php.ini: zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
[Dec 27 16:46:59] Replaced line: zend_optimizer.version=3.3.0a by: zend_optimizer.version=3.3.0a in php.ini
[Dec 27 16:46:59] PHP.ini re-ordered
[Dec 27 16:46:59] Backing-up file: /usr/local/Zend/etc/php.ini
[Dec 27 16:46:59] Copying: /usr/local/Zend/etc/php.ini to: /usr/local/Zend/etc/php.ini-zend_optimizer.bak
[Dec 27 16:46:59] Setting permissions on /usr/local/Zend/etc/php.ini-zend_optimizer.bak: mode=100644
[Dec 27 16:46:59] Saving PHP.ini file: /usr/local/Zend/etc/php.ini
[Dec 27 16:46:59] Open file: /usr/local/Zend/etc/php.ini for writing
[Dec 27 16:46:59] MSGBOX: "The following configuration changes have been made: - The original php.ini was backed up to /usr/local/Zend/etc/php.ini-zend_optim
izer.bak "
[Dec 27 16:46:59] ./dialog --clear --backtitle 'Zend Optimizer Installation' --title 'Zend Optimizer 3.3.0a' --msgbox ' The following configuration changes h
ave been made: - The original php.ini was backed up to /usr/local/Zend/etc/php.ini-zend_optimizer.bak ' 0 0
[Dec 27 16:47:05] MSGBOX: "The installation has completed successfully. Zend Optimizer is now ready for use. You must restart your Web server for the modific
ations to take effect."
[Dec 27 16:47:05] ./dialog --clear --backtitle 'Zend Optimizer Installation' --title 'Zend Optimizer 3.3.0a' --msgbox ' The installation has completed succes
sfully. Zend Optimizer is now ready for use. You must restart your Web server for the modifications to take effect. ' 0 0
[Dec 27 16:47:09] YESNO: Restart the Web server now?

But when I go to the homepage for the storefront, I get an error message that zend optimizer is not installed.

Where can I go to troubleshoot this? Zend says they don't support for installations not on one of their zend platforms, and running phpinfo(); was of very little help, even though that displays that the current PHP system is backed by the Zend Engine.

I'm on a bit of a time crunch and have no idea what to do 🙁

Edit: Installed PHP version is 5.1.6, mySQL is version 5 and apache is version 2 running on CentOS

    And the webserver was restarted after the installation. And the correct php.ini is being loaded?

      bpat1434 wrote:

      And the webserver was restarted after the installation. And the correct php.ini is being loaded?

      This is what the phpinfo(); is telling me, and I'm assuming that's correct:

      /usr/local/Zend/etc/php.ini

        From here it looks like everything should be okay. I'm not versed in zend Optimizer; however, I would look to see if the zend extension is infact loaded in the php.ini or not. Something could have gone awry and it not been caught.

          bpat1434 wrote:

          From here it looks like everything should be okay. I'm not versed in zend Optimizer; however, I would look to see if the zend extension is infact loaded in the php.ini or not. Something could have gone awry and it not been caught.

          At the very end of the ini file that PHP is loading, this is what I see:
          [Zend]
          zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0
          zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0
          zend_optimizer.version=3.3.0a

          zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
          zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

          Other references include this:
          ; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
          zend.ze1_compatibility_mode = On

            er, wait, I just noticed something

            inside usr/local/Zend/lib/Optimizer-3.3.0 are folders for the appropriate php version:

            if we change this to usr/local/Zend/lib/Optimizer-3.3.0/php-5.1.x/ZendOptimizer.so will that work?

              I'm not really sure.... Try changing the paths in zend_extension_manager.* to be:

              /usr/local/Zend/lib/php-5.1.x

              Other than that, I have no ideas....

              phpinfo() should spit out a section toward the end that looks like this:

              [b]Zend Optimizer[/b]
              Optimization Pass 1 	enabled
              Optimization Pass 2 	enabled
              Optimization Pass 3 	enabled
              Optimization Pass 4 	enabled
              Optimization Pass 9 	enabled
              Zend Loader	 	enabled
              License Path	 	no value
              Obfuscation level 	3
                bpat1434 wrote:

                I'm not really sure.... Try changing the paths in zend_extension_manager.* to be:

                /usr/local/Zend/lib/php-5.1.x

                Other than that, I have no ideas....

                phpinfo() should spit out a section toward the end that looks like this:

                [b]Zend Optimizer[/b]
                Optimization Pass 1 	enabled
                Optimization Pass 2 	enabled
                Optimization Pass 3 	enabled
                Optimization Pass 4 	enabled
                Optimization Pass 9 	enabled
                Zend Loader	 	enabled
                License Path	 	no value
                Obfuscation level 	3

                yeah I don't see that at all 🙁

                I just sent the suggestion to the server admin so we'll see in a little bit when the server restarts

                  5 days later

                  well we tried changing those paths and that did not work either...

                  I ran phpinfo on our old server that has the zend optimizer for PHP 4.3.x and it has the block described above for the Optimizer, but the one for the storefront server which runs PHP 5.1.6 doesn't have the block.

                  I'm starting to be at my wit's end and we're over deadline on this project 🙁

                    Write a Reply...