Problems with PHP, Zend and Ioncube

netboss99
netboss99 used Ask the Experts™
on
I am attempting to move a (working) installation of CubeCart (an ecommerce program) from one server to another.  The original location is a "full service" hosting service.  The new location is  dedicated FreeBSD server which I am suppose to administer.  I'm moderately competent in FreeBSD and Apache.  Extremely limited experience with PHP.  40+ years experience with computers in general (started on a IBM 360 card system, first microcomputer was Imsai [Intel 8080] with front panel loader switches).

I've installed PHP via the FreeBSD ports system.  I THOUGHT I had also installed Zend and Ioncube.

*******************
Pertinent info from "server-status":

Server Version: Apache/2.2.3 (FreeBSD) mod_ssl/2.2.3 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.10 with Suhosin-Patch
*************************
Installation program for CubeCart returns the following:

CubeCart Requirements Test
Not AvailableIoncube Loader:
Not AvailableZend Optimizer:
Version 2GD Image Library:
5.2.10PHP e 4.3.0:
5.1.34MySQL e 4.1.0:
CubeCart v4 will not run on your server without either Zend Optimizer or Ioncube

PHP Configuration
EnabledZip:
2Mupload_max_filesize:
****************************
phpinfo can be run at http://www.mypage.net/phpinfo.php
*****************************
I have attached php.ini file.
**************************
Pertinent php lines from httpd.conf

LoadModule php5_module        libexec/apache22/libphp5.so

<IfModule dir_module>
    DirectoryIndex index.html index.htm home.html home.htm index.shtml index.php
</IfModule>

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
******************************
There are a number of zendxxx.h files in /usr/local/include/php/Zend/
******************************
find / -name "ion*"  returns:

/usr/src/contrib/ipfilter/lib/ionames.c
/usr/obj/usr/src/rescue/rescue/usr/src/sbin/ipf/ipf/ionames.o
/usr/obj/usr/src/sbin/ipf/libipf/ionames.o
***********************
That's all I know to provide without some further direction.

php.ini.txt
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
I'm generally not a big fan of installing PHP via any sort of package system (FreeBSD ports, RPMs, Yum, APT, etc) because you don't get to choose some of the configuration options (the ones that I think are kind of important). I used to use ports back in 2001 to set up servers, but after a while I realized that I got better results and control by compiling from the source.

I'd recommend uninstalling the PHP port, downloading the source tarball and compiling the source. Once you get used to the configuration process, it's pretty easy and you get a better idea of what's on the system and how everything links together. Plus, the resulting build is usually optimized for your specific system, and Zend should be included automatically in the build.

On a side note - why FreeBSD?

Author

Commented:
Thanks for the comments on not building from ports.  I'll give your suggestion a try.  If it gets me to Zend, I'll issue partial points to you.  If it gets me both Zend and Ioncube, you've won them all.

Why FreeBSD?  I've used FreeBSD since about 1994 and I'm too lazy to switch.

As for Windows, I've just never been a fan of it for anything beyond workstations and home computers.
Commented:
It won't get you Ioncube loader. Ioncube is a company that makes a product that encrypts PHP code for commercial distribution. You need to download their loader separately. While I was looking up their URL to get the loader, I found a guide that walks you through installing it:

http://www.webhostgear.com/77.html

Re: FreeBSD, I wasn't suggesting Windows. I've tried all sorts of flavors of Linux for servers, including FreeBSD, and I've come to love CentOS (I currently run CentOS 5.2 on about 12 servers, half of them LAMP and the other half miscellaneous roles). I still don't use its Yum package installer for the important stuff (PHP, Apache, MySQL) but it works great for just about everything else. It's really just a frontend for RPM management, but it works quite nicely, and the OS is pretty secure and stable. You should give it a try (just a suggestion coming from a former fan of FreeBSD).
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

Author

Commented:
gr8gonzo,

Looks as if it worked.  I'm awarding the points.  Thanks for your help and especially for your courteous communications.  You were very complete in your instructions and expanded on your reasoning.  That is a great improvement over some of the responses that say:

"You need to add 'xxxyyy'"  but don't say to which file or what section in the file.  A couple of extra sentences or facts makes all the difference in the world.  After all, we wouldn't be asking the questions if we didn't have gaps in our knowledge.

Author

Commented:
I highly recommend this gentleman no only because of his knowledge, but more importantly because of his communications skills.  (My apologies for the gender specific terms if gr8gonzo is a member of the fairer sex.)

Commented:
Being verbose works for some audiences and not for others. Usually people without several years of experience simply want quick answers, so sometimes it's all about the luck of the draw.

Glad to hear it worked, though! (And I'm male, so no worries.)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial