How do I configure eaccelerator when installed through whm rpm

sfraise

Member
Aug 5, 2010
20
0
51
I installed eaccelerator on my centos machine using a whm easyapache (sorry bout the title, my head was stuck on rpm) and I need to change the cache path to prevent it from filling up my tmp folder. However, the eaccelerator.ini file is in /home/cpeasyapache/src/eaccelerator/eaccelerator-0.9.6.1 and not in the place most tutorials tell you it should be when installed manually, and when I change it to point to the new directory /var/cache/eaccelerator instead of /tmp/eaccelerator nothing happens.

I also have no eaccelerator values in my php.ini file.

One other thing I will mention is in my /home/cpeasyapache/src/eaccelerator directory I also have a folder for eaccelerator-9.5.3, I'm using the newer version as it shows 0.9.6.1 in my phpinfo so I'm assuming this older version has nothing to do with anything.

So...
How do I change the cache dir path in this thing? :confused:
 
Last edited:

GaryT

Well-Known Member
May 19, 2010
320
3
68
Are you sure its enabled ?

The cache path is set withing the php.ini:

pico /usr/local/lib/php.ini
Scroll ALL the way down, And you should see eAccelerator there:

EG:

extension="eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.cache_dir="/tmp/eaccelerator"
Change to your linking: Example

eaccelerator.cache_dir="/EAC/eaccelerator"
Then you must make and chmod them folder for it to work.
mkdir /EAC/eaccelerator
chmod 0777 /EAC/eaccelerator
 
Last edited:

sfraise

Member
Aug 5, 2010
20
0
51
Yeah I'm sure it's enabled, it shows in my phpinfo and it fills my tmp folder up every few hours.

There are no eaccelerator values in php.ini at all, that's the problem, and adding them don't seem to do any good. The same goes for the eaccelerator.ini file in the cpeasyapache directory, changes don't actually change anything.

I've been through all of the tutorials out there and am well aware of how to do this on an eaccelerator installation done manually, but installing through whm easyapache seems to be an entirely different setup and I can't find anything on how to change the default configuration on builds installed this way.
 

sfraise

Member
Aug 5, 2010
20
0
51
It would seem I'm going to have to uninstall it through easyapache and reinstall it manually, there is absolutely no info on how to change the default configuration at all when installed through easyapache unless I'm missing something here.
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
/scripts/phpextensionmgr

There are no options given for configuring eAccelerator when installing eAccelerator via EasyApache; only the option to install it or not is given. What I wanted to mention is that it is not necessary to run EasyApache to install or uninstall eAccelerator. /scripts/phpextensionmgr will do this for you.

phpextensionmgr will install and uninstall the following PHP extensions:
Code:
# /scripts/phpextensionmgr list
Available Extensions:
EAccelerator
IonCubeLoader
Zendopt
SourceGuardian
PHPSuHosin
It does this without rebuilding Apache or PHP. It simply compiles the extension and adds (or removes) the needed directives to the php.ini file. This can save considerable time, because an EasyApache build tends to be very resource-intensive.

Usage information for the script is available with the --help argument:

Code:
# /scripts/phpextensionmgr --help
Invalid action specified
Usage:
    phpextensionmgr [options] [action] [extension]

        Options:
          --help       Help message
          --prefix     Installation prefix for PHP (normally /usr/local or /usr/local/php4)

        Actions:
          install      Install or update the extension
          uninstall    Uninstall the extension
          status       Display the installation status of the extension
          list         Show available extensions
Since you mentioned there being no eAccelerator values in your php.ini file at all, I recommend using /scripts/phpextensionmgr to install it. It will take much less time than running EasyApache, without the risk of disrupting other parts of your Apache or PHP configuration. To install eAccelerator, use this:

Code:
# /scripts/phpextensionmgr install EAccelerator
 

sfraise

Member
Aug 5, 2010
20
0
51
Thanks cpaneljared, that's exactly what I was looking for.
Since I've already installed eaccelerator through easyapache do I need to rebuild without it as an easyapache installation before I install it or can I just install it over the top of the existing installation using the extensionmgr script?

I went ahead and tried to just install over top of the existing build and it seemed to work ok, but still did not write options to my /etc/php.ini file, in fact at the end of the new install it said skipped install to usr/local/php4 as php.ini doesn't exist. I'm using php 5.3.3 and my php.ini file is at /etc/php.ini so I'm not sure exactly what to do here. Is there a reason eaccelerator is trying to write to /usr/local/php4/php.ini instead of to the correct path? Since I'm running zend would I maybe need to change the configuration somewhere in the zend directory or something?

I also notice that I now have a new directory in /home/cpeasyapache called phpestensions so I now have a /home/cpeasyapache/phpextensions/eaccelerator as well as a /home/cpeasyapache/src/eaccelerator. There is an eaccelerator.ini file in both directories and still changing either one does no good. I've also tried sticking the eaccelerator options manually into the php.ini file but that doesn't do anything either. Eaccelerator has to be getting it's values from somewhere right? Otherwise it just wouldn't work, but where in the heck are they and how do I change them barring an uninstall and installing manually?

If eaccelerator is simply pulling it's values on the build in this method is there something I can change somewhere in the build files to change the cache_dir and maybe even the shm size and then simply rebuild it making it pull the new values on the reinstall?

Here's a copy of the build process in putty:
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la modules/* libs/*
/bin/sh /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/libtool --mode=compile cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/eaccelerator.c -o eaccelerator.lo
mkdir .libs
cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/eaccelerator.c -fPIC -DPIC -o .libs/eaccelerator.o
/bin/sh /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/libtool --mode=compile cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/opcodes.c -o opcodes.lo
cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/opcodes.c -fPIC -DPIC -o .libs/opcodes.o
/bin/sh /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/libtool --mode=compile cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/debug.c -o debug.lo
cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/debug.c -fPIC -DPIC -o .libs/debug.o
/bin/sh /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/libtool --mode=compile cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/ea_restore.c -o ea_restore.lo
cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/ea_restore.c -fPIC -DPIC -o .libs/ea_restore.o
/bin/sh /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/libtool --mode=compile cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/ea_store.c -o ea_store.lo
cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/ea_store.c -fPIC -DPIC -o .libs/ea_store.o
/bin/sh /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/libtool --mode=compile cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/ea_info.c -o ea_info.lo
cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/ea_info.c -fPIC -DPIC -o .libs/ea_info.o
/bin/sh /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/libtool --mode=compile cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/ea_dasm.c -o ea_dasm.lo
cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/ea_dasm.c -fPIC -DPIC -o .libs/ea_dasm.o
/bin/sh /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/libtool --mode=compile cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/mm.c -o mm.lo
cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/mm.c -fPIC -DPIC -o .libs/mm.o
/bin/sh /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/libtool --mode=compile cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/optimize.c -o optimize.lo
cc -I. -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/optimize.c -fPIC -DPIC -o .libs/optimize.o
/bin/sh /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/libtool --mode=link cc -DPHP_ATOM_INC -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/include -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/main -I/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o eaccelerator.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/modules eaccelerator.lo opcodes.lo debug.lo ea_restore.lo ea_store.lo ea_info.lo ea_dasm.lo mm.lo optimize.lo
cc -shared .libs/eaccelerator.o .libs/opcodes.o .libs/debug.o .libs/ea_restore.o .libs/ea_store.o .libs/ea_info.o .libs/ea_dasm.o .libs/mm.o .libs/optimize.o -Wl,-soname -Wl,eaccelerator.so -o .libs/eaccelerator.so
creating eaccelerator.la
(cd .libs && rm -f eaccelerator.la && ln -s ../eaccelerator.la eaccelerator.la)
/bin/sh /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/libtool --mode=install cp ./eaccelerator.la /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/modules
cp ./.libs/eaccelerator.so /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/modules/eaccelerator.so
cp ./.libs/eaccelerator.lai /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/modules/eaccelerator.la
PATH="$PATH:/sbin" ldconfig -n /home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/modules
----------------------------------------------------------------------
Libraries have been installed in:
/home/cpeasyapache/phpextensions/eaccelerator/eaccelerator-0.9.6.1/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20090626/
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la modules/* libs/*
EAccelerator extension activated
Skipping install to /usr/local/php4, missing php.ini
 
Last edited:

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
All that phpextensionmgr does is it builds the extension, which does not need to built at the same time as Apache and PHP, and then adds a directive for the extension to the php.ini file.

You built eAccelerator using EasyApache, and you can remove it using phpextensionmgr. It will simply remove the directive from php.ini. If you want to add it back, it will build it again, and add the directive back to php.ini.
 

sfraise

Member
Aug 5, 2010
20
0
51
I think you're missing the point here, it's not adding anything to php.ini, it never has through easyapache build or through the phpextensionmgr. As I mentioned in the last post it says it tries to do something to php.ini in php4 which I don't use, I use php5, therein lies the problem, do you have any ideas on that?
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
The message about not adding directives to php4 is normal. This is displayed even when the extension process is completely successful, and is only meant to be informative, not an actual error. It is displayed because you have not built PHP 4.

From the output you provided, it is not clear why the extension's directives are not being added to PHP 5's php.ini file. At this point, it would really be best if you could submit a ticket, so that we may log in and investigate directly. The output you pasted into this thread does not provide a good indication of what is going wrong.