ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Nextcloud OPCache warning

    IT Discussion
    nextcloud nextcloud 12 php 7
    8
    18
    3.1k
    Loading More Posts
    • 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.
    • JaredBuschJ
      JaredBusch @black3dynamite
      last edited by

      @black3dynamite said in Nextcloud OPCache warning:

      sudo dnf -y install php-opcache

      Yeah, php-opcache is not installed. that is annoying. Yet again NC fucks up these warning messages...

      I had big issues with these damned warning back when they were still ownCloud. Back then Josh or whoever spewed all kinds of bad info.

      1 Reply Last reply Reply Quote 0
      • brandon220B
        brandon220
        last edited by

        I too had that issue recently. Installed php-opcache and did a reboot. All errors went away.

        1 Reply Last reply Reply Quote 0
        • A
          Alex Sage
          last edited by

          I have been using it via Snap. It's quite nice 🙂

          black3dynamiteB 1 Reply Last reply Reply Quote 0
          • black3dynamiteB
            black3dynamite @Alex Sage
            last edited by

            @aaronstuder said in Nextcloud OPCache warning:

            I have been using it via Snap. It's quite nice 🙂

            Snap on Ubuntu or Fedora?

            A 1 Reply Last reply Reply Quote 0
            • A
              Alex Sage @black3dynamite
              last edited by

              @black3dynamite said in Nextcloud OPCache warning:

              @aaronstuder said in Nextcloud OPCache warning:

              I have been using it via Snap. It's quite nice 🙂

              Snap on Ubuntu or Fedora?

              Ubuntu, but Fedora should work too.

              black3dynamiteB 1 Reply Last reply Reply Quote 0
              • black3dynamiteB
                black3dynamite @Alex Sage
                last edited by

                @aaronstuder said in Nextcloud OPCache warning:

                @black3dynamite said in Nextcloud OPCache warning:

                @aaronstuder said in Nextcloud OPCache warning:

                I have been using it via Snap. It's quite nice 🙂

                Snap on Ubuntu or Fedora?

                Ubuntu, but Fedora should work too.

                What's the current version of Nextcloud via Snap? Does it get updated pretty quickly?

                A scottalanmillerS 2 Replies Last reply Reply Quote 0
                • A
                  Alex Sage @black3dynamite
                  last edited by

                  @black3dynamite still 12 for now. This is my first update, so I am not sure.

                  1 Reply Last reply Reply Quote 0
                  • black3dynamiteB
                    black3dynamite
                    last edited by

                    I've discovered that you have to restart php-fpm instead of httpd for the warning to go away.
                    https://help.nextcloud.com/t/warning-php-opcache-not-properly-configured/18637/15

                    systemctl restart php-fpm
                    

                    Also the 10-opcache.ini file can be found in /etc/php-zts.d/ too.

                    brandon220B 1 Reply Last reply Reply Quote 0
                    • brandon220B
                      brandon220 @black3dynamite
                      last edited by

                      @black3dynamite That is why I just did a restart on the server. I restarted httpd and it did not change so a restart was the easiest for me.

                      1 Reply Last reply Reply Quote 0
                      • wirestyle22W
                        wirestyle22 @black3dynamite
                        last edited by wirestyle22

                        @black3dynamite said in Nextcloud OPCache warning:

                        I've ignored it. But the last time I removed that message I had to install php-opcache and the add a 10-opcache.ini file to /etc/php.d/ with that info.

                        # php-opcache
                        sudo dnf -y install php-opcache
                        
                        # /etc/php.d/10-opcache.ini
                        sudo tee  /etc/php.d/10-opcache.ini <<EOF
                        opcache.enable=1
                        opcache.enable_cli=1
                        opcache.interned_strings_buffer=8
                        opcache.max_accelerated_files=10000
                        opcache.memory_consumption=128
                        opcache.save_comments=1
                        opcache.revalidate_freq=1
                        EOF
                        
                        # Restart php-fpm
                        sudo systemctl restart php-fpm
                        

                        This worked for me. Thanks! Now I just have to get memcache working

                        1 Reply Last reply Reply Quote 2
                        • scottalanmillerS
                          scottalanmiller @black3dynamite
                          last edited by

                          @black3dynamite said in Nextcloud OPCache warning:

                          @aaronstuder said in Nextcloud OPCache warning:

                          @black3dynamite said in Nextcloud OPCache warning:

                          @aaronstuder said in Nextcloud OPCache warning:

                          I have been using it via Snap. It's quite nice 🙂

                          Snap on Ubuntu or Fedora?

                          Ubuntu, but Fedora should work too.

                          What's the current version of Nextcloud via Snap? Does it get updated pretty quickly?

                          12.0.4 as of today, we've been told.

                          1 Reply Last reply Reply Quote 0
                          • C
                            chiefplato
                            last edited by chiefplato

                            Hello,

                            I run Nextcloud 13.01 on nginx and Centos 7 and was able to get the opcache warnings removed by adding the following to my /etc/php.d/opcache.ini file (below) then restarting php-fpm

                            opcache.enable_cli=1
                            opcache.max_accelerated_files=10000
                            opcache.save_comments=1
                            opcache.revalidate_freq=1

                            scottalanmillerS 1 Reply Last reply Reply Quote 1
                            • scottalanmillerS
                              scottalanmiller @chiefplato
                              last edited by

                              @chiefplato said in Nextcloud OPCache warning:

                              Hello,

                              I run Nextcloud 13.01 on nginx and Centos 7 and was able to get the opcache warnings removed by adding the following to my /etc/php.d/opcache.ini file (below) then restarting php-fpm

                              opcache.enable_cli=1
                              opcache.max_accelerated_files=10000
                              opcache.save_comments=1
                              opcache.revalidate_freq=1

                              Awesome, thanks.

                              1 Reply Last reply Reply Quote 0
                              • 1 / 1
                              • First post
                                Last post