Coder Social home page Coder Social logo

Xcache for NginX-PHP-FPM about autom8n HOT 5 CLOSED

anoopalias avatar anoopalias commented on July 19, 2024
Xcache for NginX-PHP-FPM

from autom8n.

Comments (5)

AnoopAlias avatar AnoopAlias commented on July 19, 2024

you can remove the opcache rpm using yum and install xcache rpm (assuming you did the php install with remi rpm) if available

yum --disableexcludes=all --enablerepo=remi search xcache

would show that

If no xcache rpm available .you will be able to compile xcache using pecl or from the tgz source using phpize ; configure;make;make install

from autom8n.

sergeng avatar sergeng commented on July 19, 2024

SUCCESS!
I did
yum --disableexcludes=all --enablerepo=remi remove php56-php-opcache
yum --disableexcludes=all --enablerepo=remi install php56-php-xcache php56-xcache-admin

and then modify the settings
nano /opt/remi/php56/root/etc/php.d/40-xcache.ini

and then
systemctl restart nginx
systemctl restart php56-php-fpm.service

ET VOILA!
Thank you very much sir!

from autom8n.

AnoopAlias avatar AnoopAlias commented on July 19, 2024

You can just do
systemctl restart ndeploy_backends

instead of

systemctl restart php56-php-fpm.service

Thats better and the way to manage php-fpm in nDeploy

from autom8n.

sergeng avatar sergeng commented on July 19, 2024

noted
thx

from autom8n.

sergeng avatar sergeng commented on July 19, 2024

tried xcache admin page with this 3 method but still get blank page or error
Method.1
cd /home/cpanel_user/public_html
ln -s /opt/remi/php56/root/usr/share/xcache xcache

Error.1
Page Not Found

Method.2
cd /home/cpanel_user/public_html
cp -a /home/cpeasyapache/src/xcache/xcache-3/htdocs xcache-admin

Error.2
Page Not Found

Method.3
nano /etc/nginx/sites-enabled/cpanel_user.com.include
## Xcache status pages for Remi repository
location ~ ^/xcacheadmin/(.+.php)$ {
alias /opt/remi/php56/root/usr/share/xcache/$1;
fastcgi_pass unix:/opt/remi/php56/root/var/run/netto.sock;
include /etc/nginx/fastcgi_params;
}
location ~ /xcacheadmin {
alias /opt/remi/php56/root/usr/share/xcache/;
try_files $uri $uri/ /index.php;
}

Error.3
This webpage is not available
ERR_CONNECTION_CLOSED

Xcache Setting
nano /opt/remi/php56/root/etc/php.d/40-xcache.ini
[xcache.admin]
xcache.admin.enable_auth = On
xcache.admin.user = "adminuser"
xcache.admin.pass = "7d5b7a58ed93e32d8b4u1e73880e750d"
xcache.mmap_path = "/tmp/xcache"
xcache.cacher = On
xcache.stat = On
xcache.optimizer = On
xcache.size = 256M
xcache.shm_scheme = "mmap"
xcache.coverager = Off

No Error in /var/log/nginx/error.log or /var/log/messages

Any suggestions

from autom8n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.