APC (Alternative PHP Cache) extension for PHP?

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.
BigBadaBoom
New here
Posts: 9
Joined: Sun May 18, 2008 7:15 pm

APC (Alternative PHP Cache) extension for PHP?

Post by BigBadaBoom »

Does anyone know if there's a compiled version of the apc-extension for PHP that works on the QNAPs?? (In other words, I'm looking for the 'apc.so').
I'd love to install apc on my TS-109 but can't find any reference to it here on the forums, nor anything on ipkg.
Any help would be greatly appreciated. :)
ghis123
Starting out
Posts: 22
Joined: Wed Nov 20, 2013 2:23 am

Re: APC (Alternative PHP Cache) extension for PHP?

Post by ghis123 »

Any news on this? I would like to install it as well on my QNAP TS-419+
ghis123
Starting out
Posts: 22
Joined: Wed Nov 20, 2013 2:23 am

Re: APC (Alternative PHP Cache) extension for PHP?

Post by ghis123 »

I am still trying to install ACP and I did get a little further as I'm learning how to deal with Linux and QNAP... Here is the full list of steps to accomplish the job, I made it up with what I found on couple sites, but I can't get to the end just yet.

Code: Select all

1- Download APC
# wget http://pecl.php.net/get/APC-3.1.13.tgz

2- Extract APC
# tar -xzf APC-3.1.13.tgz

3- Install some prerequisite tools
# ipkg install grep
# ipkg install libtool
# ipkg install perl
# ipkg install autoconf
# ipkg install automake

4- run command phpize
# phpize

5- compile, configure, make
# ./configure --enable-apc --enable-apc-mmap --with-php-config=/opt/bin/php-config
# make
# make install

7- edit PHP.ini and add following extension:
extension=”/apc_location/apc.so”

8- restart Apache
# /etc/init.d/./Qthttpd.sh restart
I am able to reach step 5, but this one is shooting the following error:
checking for grep that handles long lines and -e... configure: error: no acceptable grep could be found in /bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/opt/bin:/opt/sbin:/usr/xpg4/bin
Last edited by ghis123 on Thu Nov 21, 2013 8:21 am, edited 1 time in total.
User avatar
teracow
Easy as a breeze
Posts: 303
Joined: Thu Jun 23, 2011 8:17 am

Re: APC (Alternative PHP Cache) extension for PHP?

Post by teracow »

.
Last edited by teracow on Sat Nov 29, 2014 3:41 pm, edited 1 time in total.
I (like many others) have left this forum due to the incompetence of QNAP staff.

I have now completed deletion of all my posts (how-to's, images, hand-written instructions, on-the-fly user manuals, etc..). These are now gone.

I am not interested in assisting QNAP any further when they won't assist me. Anyone unlucky enough to have dealt with Adong Lin (QNAP Systems Inc.) or the blundering incompetence of the 'live chat' specialist AJ Lee will know what I mean. Adong doesn't understand the first thing about basic computer interoperability and AJ disconnects you from live chat when he doesn't want to deal with your problem.

I will not support QNAP any further. Far from it - I will now be recommending a competitor's hardware instead. I'm done.
User avatar
teracow
Easy as a breeze
Posts: 303
Joined: Thu Jun 23, 2011 8:17 am

Re: APC (Alternative PHP Cache) extension for PHP?

Post by teracow »

.
Last edited by teracow on Sat Nov 29, 2014 3:41 pm, edited 1 time in total.
I (like many others) have left this forum due to the incompetence of QNAP staff.

I have now completed deletion of all my posts (how-to's, images, hand-written instructions, on-the-fly user manuals, etc..). These are now gone.

I am not interested in assisting QNAP any further when they won't assist me. Anyone unlucky enough to have dealt with Adong Lin (QNAP Systems Inc.) or the blundering incompetence of the 'live chat' specialist AJ Lee will know what I mean. Adong doesn't understand the first thing about basic computer interoperability and AJ disconnects you from live chat when he doesn't want to deal with your problem.

I will not support QNAP any further. Far from it - I will now be recommending a competitor's hardware instead. I'm done.
ghis123
Starting out
Posts: 22
Joined: Wed Nov 20, 2013 2:23 am

Re: APC (Alternative PHP Cache) extension for PHP?

Post by ghis123 »

Thanks for your help, and please note that I do not know much about Linux command, so you are losing me when you say BusyBox and so on... I did the command you said for updating the grep, and when I run which grep I get /bin/grep, so it's not exactly as you said... and even if I try to run the same ./configure command, I get the same result... again I am very newbie to Linux shell, does I have anything else to change?

Actually, I didn't see it at first but the grep update is failing, it's returning the following:
Downloading http://ipkg.nslu2-linux.org/feeds/optwa ... e/Packages
Downloading http://ipkg.nslu2-linux.org/feeds/optwa ... ackages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optwa ... ackages.gz
Updated list of available packages in /opt/lib/ipkg/lists/cs08q1armel
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp -q -P /opt/ipkg-jBx1wz http://ipkg.nslu2-linux.org/feeds/optwa ... e/Packages'
Package grep (2.12-1) installed in root is up to date.
Nothing to be done
Successfully terminated.
[~/APC-3.1.13] #
User avatar
teracow
Easy as a breeze
Posts: 303
Joined: Thu Jun 23, 2011 8:17 am

Re: APC (Alternative PHP Cache) extension for PHP?

Post by teracow »

.
Last edited by teracow on Sat Nov 29, 2014 3:42 pm, edited 1 time in total.
I (like many others) have left this forum due to the incompetence of QNAP staff.

I have now completed deletion of all my posts (how-to's, images, hand-written instructions, on-the-fly user manuals, etc..). These are now gone.

I am not interested in assisting QNAP any further when they won't assist me. Anyone unlucky enough to have dealt with Adong Lin (QNAP Systems Inc.) or the blundering incompetence of the 'live chat' specialist AJ Lee will know what I mean. Adong doesn't understand the first thing about basic computer interoperability and AJ disconnects you from live chat when he doesn't want to deal with your problem.

I will not support QNAP any further. Far from it - I will now be recommending a competitor's hardware instead. I'm done.
ghis123
Starting out
Posts: 22
Joined: Wed Nov 20, 2013 2:23 am

Re: APC (Alternative PHP Cache) extension for PHP?

Post by ghis123 »

Ok it's coming, it's coming, but I get roadblock again... ahh too bad I'm not so good with Linux...
Now doing the echo $PATH is exactly as you said, great! I lost track of where my APC went so, no problem I did another wget and redoing the steps, but now I'm getting blocked at:

Code: Select all

# phpize
[~/APC-3.1.13] # echo $PATH
/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin
[~/APC-3.1.13] # which grep
/opt/bin/grep
[~/APC-3.1.13] # phpize
grep: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
grep: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
grep: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
grep: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
autom4te: need GNU m4 1.4 or later: /opt/bin/m4
User avatar
teracow
Easy as a breeze
Posts: 303
Joined: Thu Jun 23, 2011 8:17 am

Re: APC (Alternative PHP Cache) extension for PHP?

Post by teracow »

.
Last edited by teracow on Sat Nov 29, 2014 3:43 pm, edited 1 time in total.
I (like many others) have left this forum due to the incompetence of QNAP staff.

I have now completed deletion of all my posts (how-to's, images, hand-written instructions, on-the-fly user manuals, etc..). These are now gone.

I am not interested in assisting QNAP any further when they won't assist me. Anyone unlucky enough to have dealt with Adong Lin (QNAP Systems Inc.) or the blundering incompetence of the 'live chat' specialist AJ Lee will know what I mean. Adong doesn't understand the first thing about basic computer interoperability and AJ disconnects you from live chat when he doesn't want to deal with your problem.

I will not support QNAP any further. Far from it - I will now be recommending a competitor's hardware instead. I'm done.
ghis123
Starting out
Posts: 22
Joined: Wed Nov 20, 2013 2:23 am

Re: APC (Alternative PHP Cache) extension for PHP?

Post by ghis123 »

Thanks but it seems that I already had installed it m4 has this is the result:
[~/APC-3.1.13] # ipkg install m4
Package m4 (1.4.16-1) installed in root is up to date.
Nothing to be done
Successfully terminated.
[~/APC-3.1.13] # phpize
grep: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
grep: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
grep: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
grep: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
autom4te: need GNU m4 1.4 or later: /opt/bin/m4
and your previous command for updating the grep is still failing, I don't know if I still need it or not?
[~/APC-3.1.13] # ipkg update ; ipkg install grep
Downloading http://ipkg.nslu2-linux.org/feeds/optwa ... e/Packages
Downloading http://ipkg.nslu2-linux.org/feeds/optwa ... ackages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optwa ... ackages.gz
Updated list of available packages in /opt/lib/ipkg/lists/cs08q1armel
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp -q -P /opt/ipkg-GFychp http://ipkg.nslu2-linux.org/feeds/optwa ... e/Packages'
Package grep (2.12-1) installed in root is up to date.
Nothing to be done
Successfully terminated.
User avatar
teracow
Easy as a breeze
Posts: 303
Joined: Thu Jun 23, 2011 8:17 am

Re: APC (Alternative PHP Cache) extension for PHP?

Post by teracow »

.
Last edited by teracow on Sat Nov 29, 2014 4:51 pm, edited 1 time in total.
I (like many others) have left this forum due to the incompetence of QNAP staff.

I have now completed deletion of all my posts (how-to's, images, hand-written instructions, on-the-fly user manuals, etc..). These are now gone.

I am not interested in assisting QNAP any further when they won't assist me. Anyone unlucky enough to have dealt with Adong Lin (QNAP Systems Inc.) or the blundering incompetence of the 'live chat' specialist AJ Lee will know what I mean. Adong doesn't understand the first thing about basic computer interoperability and AJ disconnects you from live chat when he doesn't want to deal with your problem.

I will not support QNAP any further. Far from it - I will now be recommending a competitor's hardware instead. I'm done.
ghis123
Starting out
Posts: 22
Joined: Wed Nov 20, 2013 2:23 am

Re: APC (Alternative PHP Cache) extension for PHP?

Post by ghis123 »

The m4 looks good
[~/APC-3.1.13] # which m4
/opt/bin/m4
User avatar
teracow
Easy as a breeze
Posts: 303
Joined: Thu Jun 23, 2011 8:17 am

Re: APC (Alternative PHP Cache) extension for PHP?

Post by teracow »

.
Last edited by teracow on Sat Nov 29, 2014 4:50 pm, edited 1 time in total.
I (like many others) have left this forum due to the incompetence of QNAP staff.

I have now completed deletion of all my posts (how-to's, images, hand-written instructions, on-the-fly user manuals, etc..). These are now gone.

I am not interested in assisting QNAP any further when they won't assist me. Anyone unlucky enough to have dealt with Adong Lin (QNAP Systems Inc.) or the blundering incompetence of the 'live chat' specialist AJ Lee will know what I mean. Adong doesn't understand the first thing about basic computer interoperability and AJ disconnects you from live chat when he doesn't want to deal with your problem.

I will not support QNAP any further. Far from it - I will now be recommending a competitor's hardware instead. I'm done.
User avatar
teracow
Easy as a breeze
Posts: 303
Joined: Thu Jun 23, 2011 8:17 am

Re: APC (Alternative PHP Cache) extension for PHP?

Post by teracow »

.
Last edited by teracow on Sat Nov 29, 2014 4:50 pm, edited 1 time in total.
I (like many others) have left this forum due to the incompetence of QNAP staff.

I have now completed deletion of all my posts (how-to's, images, hand-written instructions, on-the-fly user manuals, etc..). These are now gone.

I am not interested in assisting QNAP any further when they won't assist me. Anyone unlucky enough to have dealt with Adong Lin (QNAP Systems Inc.) or the blundering incompetence of the 'live chat' specialist AJ Lee will know what I mean. Adong doesn't understand the first thing about basic computer interoperability and AJ disconnects you from live chat when he doesn't want to deal with your problem.

I will not support QNAP any further. Far from it - I will now be recommending a competitor's hardware instead. I'm done.
ghis123
Starting out
Posts: 22
Joined: Wed Nov 20, 2013 2:23 am

Re: APC (Alternative PHP Cache) extension for PHP?

Post by ghis123 »

Well anyhow thanks for your help... Maybe 1 more thing, just to make sure, I am running these commands through putty and I'm logged in with the admin username. When I'm looking for that last error, some people are talking about permission errors, and some others are talking about updating grep. How would I do an update if I want to?
Post Reply

Return to “Web Server & Applications (Apache + PHP + MySQL / SQLite)”