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.
    • J
      JaredBusch
      last edited by

      After I upgraded to 12 a while back, I saw this warning.
      0_1517934945005_84c494d4-1251-4878-ae9f-f600a95991f4-image.png

      So, I put the settings into /etc/php.ini and rebooted.
      No change. I gave up caring because this is not a large instance. But I am going to be upgrading clients to 12 and then 13 soon. Those would likely benefit from this.

      I also tried moving the settings from /etc/php.ini to a custom ini file /etc/php.d/99-nextcloud.ini and this file is loaded as you can see from phpinfo();. But still no joy in the admin warnings.

      0_1517934931044_b7785ec8-6b4c-4cee-b5ba-7b5b55873d50-image.png

      Any suggestions?

      1 Reply Last reply Reply Quote 0
      • J
        JaredBusch
        last edited by

        On a side note, that system is still Fedora 25 /sigh...

        1 Reply Last reply Reply Quote 1
        • D
          dbeato
          last edited by

          Probably this will help
          https://help.nextcloud.com/t/warning-php-opcache-not-properly-configured/18637/10

          1 Reply Last reply Reply Quote 0
          • J
            JaredBusch
            last edited by

            Fedora 26 made it PHP 7.1
            0_1517936693738_2879b9c8-f2ef-45a5-954c-40d7029048e6-image.png

            1 Reply Last reply Reply Quote 1
            • B
              black3dynamite
              last edited by black3dynamite

              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
              J W 2 Replies Last reply Reply Quote 3
              • J
                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
                • B
                  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 🙂

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      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.

                        B 1 Reply Last reply Reply Quote 0
                        • B
                          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 S 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
                            • B
                              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.

                              B 1 Reply Last reply Reply Quote 0
                              • B
                                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
                                • W
                                  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
                                  • S
                                    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

                                      S 1 Reply Last reply Reply Quote 1
                                      • S
                                        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