We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
how to install Memcached and APC?
how to install Memcached and APC?
how to install Memcached and APC?
Re: how to install Memcached and APC?
+1 , i am using centos 6.5 64 bit
Re: how to install Memcached and APC?
me tooahmiq wrote:+1 , i am using centos 6.5 64 bit
Re: how to install Memcached and APC?
Try at your own risk. I tried like this and it works for me. without any problems
1)
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)
3)
Just press enter for all
4)now we need to put into php.d
5)
6)
verify if it installed correctly
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
8) Edit the apc.php for username and password:
and change this:
9)
Goto your website and you can see the output
website.com/apc.php
1)
Code: Select all
yum --enablerepo=remi install php-pear php-devel httpd-devel pcre-devel gcc make
2)
Code: Select all
pecl install apc
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] :
4)now we need to put into php.d
Code: Select all
echo "extension=apc.so" > /etc/php.d/apc.ini
Code: Select all
service httpd restart
OR
/etc/init.d/httpd restart
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
Code: Select all
nano /home/admin/web/website.com/public_html/apc.php
Code: Select all
defaults('ADMIN_USERNAME','apc'); // Admin Username
defaults('ADMIN_PASSWORD','Set-Password-Here'); // Admin Password - CHANGE THIS TO ENABLE!!!
Goto your website and you can see the output
website.com/apc.php
Re: how to install Memcached and APC?
thanksahmiq wrote:Try at your own risk. I tried like this and it works for me. without any problems
1)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 packageCode: Select all
yum --enablerepo=remi install php-pear php-devel httpd-devel pcre-devel gcc make
2)3)Code: Select all
pecl install apc
Just press enter for allCode: 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] :
4)now we need to put into php.d5)Code: Select all
echo "extension=apc.so" > /etc/php.d/apc.ini
6)Code: Select all
service httpd restart OR /etc/init.d/httpd restart
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 needs8) Edit the apc.php for username and password:Code: Select all
cp /usr/share/pear/apc.php /home/admin/web/website.com/public_html
and change this:Code: Select all
nano /home/admin/web/website.com/public_html/apc.php
9)Code: Select all
defaults('ADMIN_USERNAME','apc'); // Admin Username defaults('ADMIN_PASSWORD','Set-Password-Here'); // Admin Password - CHANGE THIS TO ENABLE!!!
Goto your website and you can see the output
website.com/apc.php
Re: how to install Memcached and APC?
debian
apt-get install memcached
centos
yum install memcached
apt-get install memcached
centos
yum install memcached
Re: how to install Memcached and APC?
short way from CenOS
if php -v
But i don't recommend used apc, better use php-pecl-zendopcache (faster and stable)
note: don't use apc and zendOpCache at the same time
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
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
Re: how to install Memcached and APC?
Which one?
-
- Posts: 16
- Joined: Fri May 02, 2014 7:49 pm
Re: how to install Memcached and APC?
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?
# Portuguese Brazil
Como instalar o APC e memcached no Debian 7 com VestaCP? Quais riscos tenho fazendo isto?
Re: how to install Memcached and APC?
We don't recommend to using APC on your servers