Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

opcache.enable

Scheduled Pinned Locked Moved Solved LAMP
6 Posts 2 Posters 313 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ccfu
    wrote on last edited by
    #1

    I am trying to enable opcache in a LAMP app. The master value in the php info shows that opcache.enable is On but the local value is Off and adding opcache.enable=1 to php.ini does not seem to do anything.

    I am sure this is quite trivial and I am almost certainly overlooking something here, but I just can't work it out. Anybody able to point me in the right direction here?

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to ccfu on last edited by
    #2

    @ccfu Tried this PHP file in a fresh LAMP 7.4 app:

    <?php
      phpinfo(); 
    ?>
    

    And I get:
    038f601b-61ae-4fd9-8f61-007b9ece32da-image.png

    1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #3

    I pushed a new package that enables opcache explicitly. Don't think it changes anything since it was already enabled in the previous package as well.

    C 1 Reply Last reply
    0
  • C Offline
    C Offline
    ccfu
    replied to girish on last edited by ccfu
    #4

    @girish Thanks for looking into this. With the new package opcache.enable_cli is now ON which was OFF before, otherwise no change as far as I can tell.

    I can, however, confirm that in a fresh install opcache.enable is ON as in your screenshot and indeed other sites installed in a LAMP app also show that opcache.enable is ON. I am now wondering whether the fact that the webroot in this instance has been changed in the apache.conf to a folder immediately below /app/data/public is the reason. I can't see why it should be, but that's the only thing I can think of right now. When I have time later I will install a new instance and see whether I can identify this or something else as the cause.

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to ccfu on last edited by
    #5

    @ccfu Indeed, I did enable opcache for the CLI in the new package.

    C 1 Reply Last reply
    0
  • C Offline
    C Offline
    ccfu
    replied to girish on last edited by
    #6

    @girish Embarassingly it appears ther script that I was loading the php info through had specifically set opcache.enable to Off at runtime. In the app itself it is enables and all is good. Thanks again and apologies for the unnecessary effort in pushing a new package.

    1 Reply Last reply
    1

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.