Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

how to install Memcached and APC?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
21 posts
  • 1
  • 2
  • 3
  • Next
kudouyuzi
Posts: 177
Joined: Mon Apr 28, 2014 11:19 am

how to install Memcached and APC?
  • Quote

Post by kudouyuzi » Sat May 17, 2014 6:27 am

how to install Memcached and APC?
Top

ahmiq
Posts: 43
Joined: Mon Jan 13, 2014 10:58 am
Contact:
Contact ahmiq
Website

Re: how to install Memcached and APC?
  • Quote

Post by ahmiq » Sat May 17, 2014 12:48 pm

+1 , i am using centos 6.5 64 bit
Top

kudouyuzi
Posts: 177
Joined: Mon Apr 28, 2014 11:19 am

Re: how to install Memcached and APC?
  • Quote

Post by kudouyuzi » Sat May 17, 2014 12:58 pm

ahmiq wrote:+1 , i am using centos 6.5 64 bit
me too
Top

ahmiq
Posts: 43
Joined: Mon Jan 13, 2014 10:58 am
Contact:
Contact ahmiq
Website

Re: how to install Memcached and APC?
  • Quote

Post by ahmiq » Sat May 17, 2014 2:00 pm

Try at your own risk. I tried like this and it works for me. without any problems

1)

Code: Select all

yum --enablerepo=remi install php-pear php-devel httpd-devel pcre-devel gcc make
I already had some packages installed so it wasnt a problem. I use vesta cP uses new php http so if you use simple yum it will give dependency errors , change it if you already installed any of the above package
2)

Code: Select all

pecl install apc
3)

Code: Select all

sample output here:
Enable internal debugging in APC [no] :
Enable per request file info about files used from the APC cache [no] :
Enable spin locks (EXPERIMENTAL) [no] :
Enable memory protection (EXPERIMENTAL) [no] :
Enable pthread mutexes (default) [yes] :
Enable pthread read/write locks (EXPERIMENTAL) [no] :
Just press enter for all

4)now we need to put into php.d

Code: Select all

echo "extension=apc.so" > /etc/php.d/apc.ini
5)

Code: Select all

service httpd restart
OR
/etc/init.d/httpd restart
6)
verify if it installed correctly

Code: Select all

php -i | grep apc

7) ENABLE THE APC Administration panel:
To enable the administration panel we need to copy apc.php to the website home , in my case it is /home/web/test/public_html/ , change according to your needs

Code: Select all

cp /usr/share/pear/apc.php /home/admin/web/website.com/public_html
8) Edit the apc.php for username and password:

Code: Select all

nano /home/admin/web/website.com/public_html/apc.php
and change this:

Code: Select all

defaults('ADMIN_USERNAME','apc');       // Admin Username
defaults('ADMIN_PASSWORD','Set-Password-Here');  // Admin Password - CHANGE THIS TO ENABLE!!!
9)

Goto your website and you can see the output

website.com/apc.php
Top

kudouyuzi
Posts: 177
Joined: Mon Apr 28, 2014 11:19 am

Re: how to install Memcached and APC?
  • Quote

Post by kudouyuzi » Sat May 17, 2014 3:29 pm

ahmiq wrote:Try at your own risk. I tried like this and it works for me. without any problems

1)

Code: Select all

yum --enablerepo=remi install php-pear php-devel httpd-devel pcre-devel gcc make
I already had some packages installed so it wasnt a problem. I use vesta cP uses new php http so if you use simple yum it will give dependency errors , change it if you already installed any of the above package
2)

Code: Select all

pecl install apc
3)

Code: Select all

sample output here:
Enable internal debugging in APC [no] :
Enable per request file info about files used from the APC cache [no] :
Enable spin locks (EXPERIMENTAL) [no] :
Enable memory protection (EXPERIMENTAL) [no] :
Enable pthread mutexes (default) [yes] :
Enable pthread read/write locks (EXPERIMENTAL) [no] :
Just press enter for all

4)now we need to put into php.d

Code: Select all

echo "extension=apc.so" > /etc/php.d/apc.ini
5)

Code: Select all

service httpd restart
OR
/etc/init.d/httpd restart
6)
verify if it installed correctly

Code: Select all

php -i | grep apc

7) ENABLE THE APC Administration panel:
To enable the administration panel we need to copy apc.php to the website home , in my case it is /home/web/test/public_html/ , change according to your needs

Code: Select all

cp /usr/share/pear/apc.php /home/admin/web/website.com/public_html
8) Edit the apc.php for username and password:

Code: Select all

nano /home/admin/web/website.com/public_html/apc.php
and change this:

Code: Select all

defaults('ADMIN_USERNAME','apc');       // Admin Username
defaults('ADMIN_PASSWORD','Set-Password-Here');  // Admin Password - CHANGE THIS TO ENABLE!!!
9)

Goto your website and you can see the output

website.com/apc.php
thanks
Top

pedagang
Posts: 14
Joined: Fri Mar 14, 2014 2:01 pm

Re: how to install Memcached and APC?
  • Quote

Post by pedagang » Sat May 17, 2014 3:31 pm

debian
apt-get install memcached

centos
yum install memcached
Top

demian
Posts: 543
Joined: Thu May 16, 2013 5:19 am

Re: how to install Memcached and APC?
  • Quote

Post by demian » Sat May 17, 2014 4:08 pm

short way from CenOS

if php -v

Code: Select all

php -v
return version 5.4

yum install  --enablerepo=remi php-pecl-apc php-pecl-memcache memcached libmemcached -y  
_________________________
php -v
return version 5.3

yum install php-pecl-apc php-pecl-memcache memcached libmemcached -y  
But i don't recommend used apc, better use php-pecl-zendopcache (faster and stable)

Code: Select all

php -v
return version 5.4

yum install  --enablerepo=remi php-pecl-zendopcache -y
___________________
php -v
return version 5.4

yum install  php-pecl-zendopcache -y
note: don't use apc and zendOpCache at the same time
Top

kudouyuzi
Posts: 177
Joined: Mon Apr 28, 2014 11:19 am

Re: how to install Memcached and APC?
  • Quote

Post by kudouyuzi » Sun May 18, 2014 1:46 am

Which one?
Top

marcelocaetano
Posts: 16
Joined: Fri May 02, 2014 7:49 pm

Re: how to install Memcached and APC?
  • Quote

Post by marcelocaetano » Mon May 19, 2014 2:22 pm

How to install APC and memcached on Debian 7 with VestaCP? What risks have doing this?

# Portuguese Brazil
Como instalar o APC e memcached no Debian 7 com VestaCP? Quais riscos tenho fazendo isto?
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: how to install Memcached and APC?
  • Quote

Post by imperio » Wed May 21, 2014 9:39 pm

We don't recommend to using APC on your servers
Top


Post Reply
  • Print view

21 posts
  • 1
  • 2
  • 3
  • Next

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password