Easyapache equivalent?

What’s the easy apache equivalent for Interworx? I need to recompile PHP with Memcache.

Just try installing via pecl.


yum install php-devel
pecl install memcache
echo extension=memcache.so > /etc/php.d/memcache.ini
service httpd restart

Setting up Install Process
Parsing package install arguments
No package php-devel available.
Nothing to do

Using RHEL 5.2

[root@planet etc]# pecl install memcache
downloading memcache-2.2.4.tgz …
Starting to download memcache-2.2.4.tgz (35,389 bytes)
…done: 35,389 bytes
11 source files, building
running: phpize
sh: phpize: command not found
ERROR: `phpize’ failed

for pecl

You’re getting the phpize error because the php-devel rpm needs to be installed first. How is your server set up to get updates from redhat? That would be the mechanism you’d use to get the php-devel rpm.

Paul

[QUOTE=IWorx-Paul;15750]You’re getting the phpize error because the php-devel rpm needs to be installed first. How is your server set up to get updates from redhat? That would be the mechanism you’d use to get the php-devel rpm.

Paul[/QUOTE]
I’m not sure. yum is working but it can’t find that php-devel.

RHEL said that the package isn’t in your REPO:

[root@planet etc]# yum repolist
repo id repo name status
interworx-cp-noarch InterWorx-CP - Generic enabled
interworx-cp-rhe5x InterWorx-CP - RedHat Enterprise $releas enabled

and it won’t work because it’s not set to redhat.

That’s correct, those repos are just packages that interworx provides. Did they provide you with instructions on how to configure yum to use a redhat repository? It would seem that’s the step that is missing here.

What about upgrading to the latest php?

after installing php-devel, i am getting:

[root@host ~]# pecl install memcache
downloading memcache-2.2.4.tgz …
Starting to download memcache-2.2.4.tgz (35,389 bytes)
…done: 35,389 bytes

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 23040 bytes) in /usr/share/pear/PEAR/Builder.php on line 263

what do i need to do to get memchache to install? i already tried raising the memory_limit in php.ini to a ridiculously high number and then restarting apache and re-running pecl.

thx,
j