eaccelerator for php-cgi

Request a package to be made here. Make sure you have searched before requesting.

eaccelerator for php-cgi

Postby Geoff » Sun Jul 17, 2011 5:11 pm

I have installed lighttpd, php-cgi and mysqld on the Pogo Pro. At first I tried Apache, but (no surprise) it was too heavy for the available memory. On the other hand, I found that lighttpd works fine. I found that MySQL runs well, even though it takes a lot of virtual memory. Php-cgi, on the other hand, runs quite slowly, and I suspect this is because it doesn't come with a code-reuse cache. I have read that "eaccelerator" is the package needed for this. Could someone please compile and put it in the repository (in AUR, I think)? I am using php-cgi, so please let me know if I should be using something different for php.
Posts: 228
Joined: Wed Mar 09, 2011 5:14 pm

Re: eaccelerator for php-cgi

Postby crimsonredmk » Sun Jul 17, 2011 5:49 pm

Code: Select all
pacman -Sy yaourt
yaourt -S eaccelerator # say "yes" to editing PKGBUILD, change the arch= "i686" to "arm"
Remember, Arch Linux ARM is completely donation-supported, and is totally awesome.
Site Admin
Posts: 433
Joined: Wed Dec 30, 2009 5:17 pm
Location: #archlinux-arm on irc.freenode.net

Re: eaccelerator for php-cgi

Postby Geoff » Sun Jul 17, 2011 10:33 pm

Thank you. That made quite an improvement to PHP performance ... still not great, but much better.
Posts: 228
Joined: Wed Mar 09, 2011 5:14 pm

Re: eaccelerator for php-cgi

Postby Geoff » Sun May 12, 2013 1:28 am

In notice that eaccelerator in AUR hasn't been updated in quite a while, and the old version doesn't compile any more with all the updates to php. I have modified the PKGBUILD to use the latest version of eaccelerator from the author's github. It produces a package file no problem, ready to install. I think it would be very useful to have this in the community repo. Here is the PKGBUILD:
Code: Select all
pkgdesc="eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic content cache."
arch=('arm' 'i686' 'x86_64')
license=('GNU General Public License')
makedepends=('autoconf' 'automake' 'libtool' 'm4')
conflicts=('xcache' 'turck-mmcache' 'phpexpress' 'eaccelerator-svn')

build() {
  cd $srcdir/$pkgname-$pkgname-$pkgver
  ./configure --prefix=/usr --with-eaccelerator-userid=$(id -u http)
  make || return 1
  make INSTALL_ROOT=$pkgdir install || return 1
  mkdir -p $pkgdir/etc/php/conf.d/ || return 1
  mkdir -p $pkgdir/var/cache/eaccelerator || return 1
  chmod 777 $pkgdir/var/cache/eaccelerator || return 1
  cat $srcdir/$pkgname-$pkgname-$pkgver/eaccelerator.ini | gawk 'gsub("eaccelerator.cache_dir = \"/tmp/eaccelerator\"","eaccelerator.cache_dir = \"/var/cache/eaccelerator\"")1' > $pkgdir/etc/php/conf.d/eaccelerator.ini || return 1
Posts: 228
Joined: Wed Mar 09, 2011 5:14 pm

Re: eaccelerator for php-cgi

Postby WarheadsSE » Sun May 12, 2013 5:14 pm

in the "community" repo should probably be interpreted as in this community's AUR

Might want to just see if you can take ownership/flag out upstream AUR package.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
Posts: 6804
Joined: Mon Oct 18, 2010 2:12 pm

Re: eaccelerator for php-cgi

Postby moonman » Fri Jun 14, 2013 8:36 am

FYI: eaccelerator makes php segfault. I've tried the latest git and this one with the same result. Just use php-acl, it's better supported. It does help with owncloud.
Pogoplug V4 | GoFlex Home | Raspberry Pi B 512 | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
[armv5] Updated U-Boot | |[armv5] How to install my.pogoplug.com service | [armv5] NAND Rescue System
Posts: 3124
Joined: Sat Jan 15, 2011 3:36 am
Location: Calgary, Canada

Return to Package Requests

Who is online

Users browsing this forum: No registered users and 1 guest