How to uninstall/disable Zend Optimizer -> APC?

codeman05

Verified User
Joined
Jun 21, 2008
Messages
43
How to uninstall/disable Zend Optimizer & install APC?

Hey guys,

I currently have Zend Platform installed and wish to now disable or uninstall from one of my boxes so that I can test out APC.

I thought I could just disable it in php.ini....but I have 5 of said files and I have no idea which I need to work with:
Code:
./usr/local/Zend/Platform/etc/fastcgi/php.ini
./usr/local/Zend/Platform/etc/php.ini
./usr/local/Zend/etc/php.ini
./usr/local/lib/php.ini
./etc/php5/cli/php.ini

I suspect ./usr/local/lib/php.ini but can anyone confirm?
And is it all that I need to do is comment/delete the [Zend] section?

thanks guys
 
Last edited:
ah...yes you are correct. /usr/local/lib/php.ini is a symlink to /usr/local/Zend/etc/php.ini , I missed that before.

So is it as simple as deleting the [ZEND] section in the ini?
 
Just put a ; infront of the lines. Then if you have to uncomment it later you can.
 
ok, so Zend is disabled. The only think showing in phpinfo() is
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies[/code]
All of the other info is now gone.


I was able to install APC without error with the following steps.
Code:
/usr/local/bin/phpize
./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/local/bin/php-config
make clean
make
make install

I then added extension=apc.so to my php.ini and restarted HTTPD.

However, there is no APC info in phpinfo() and the apc.php "script" says that APC isn't running.

Not entirely sure what I'm doing wrong at this point. Any ideas?

Currently using the following:
PHP Version 5.2.6
Apache 2.0
APC 3.0.19
 
Last edited:
disregard my last post, I have it working now.
Apparently the Zend php.ini was really screwing something up. Any changes I made to it would not be saved or used when I restarted apache.

So I went back to my "pre-Zend" php.ini and slapped it in /usr/local/lib and that seemed to fix the problem
 
Back
Top