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

Disable opcache for vhost

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
Pim
Posts: 33
Joined: Fri Sep 30, 2016 12:44 pm

Os: CentOS 6x
Web: nginx + php-fpm
Disable opcache for vhost
  • Quote

Post by Pim » Mon Apr 09, 2018 2:41 am

Hello, I use php-fpm + nginx configuration. How I can disable opcache for one of my sites?

Thanks.
Top

sandy
Posts: 90
Joined: Sat Apr 07, 2018 7:06 pm
Contact:
Contact sandy
Website

Os: CentOS 6x
Web: nginx + php-fpm
Re: Disable opcache for vhost
  • Quote

Post by sandy » Mon Apr 09, 2018 6:59 am

you can try to create a custom php.ini under your website's root dir and add this line :

Code: Select all

opcache.enable=0
then restart phpfpm service
Top

DarthVader
Posts: 31
Joined: Wed Jul 13, 2016 1:35 pm

Re: Disable opcache for vhost
  • Quote

Post by DarthVader » Mon Apr 09, 2018 9:09 am

Or add opcache_reset() into your php script.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

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