wo stack reload --mysql
Reloading mysql  [KO]
log: wo.core.logging : mysql: unrecognized service

@VirtuBox can you check this, i guess there is some compatibility issue

congrats on the new release! love the open source community

Thanks for the new release , WIll use it now that its active again.

Thank you so much master! You are amazing for maintaining this project, which benefits us so much

Amazing news!!!!!

Can I ask, I have 2 websites in one server.

When I try to update php from 7.4 to 8 (after wo update), the first one (wo site update mysite1 --php80),
something goes wrong.

My PHP updated but I can see in the browser the website1 but I have mysite2.

Which are the proper steps?
I appreciate any help you can provide.

    iignatios

    Try to add PHP8.0 relevant update manually to Nginx. Change upstream.conf, wpfc-php81.conf (applicable if enabled FastCGI) and site config files manually to PHP8.0

      Lucky007 Thanks a lot for your reply.
      Yes, I have FastCGI. How can I do these? wo edit my website?
      I am a newbie.
      The other way is to build another new server. But when i try this and change DNS (cloudflare) with the new IP i see the old website. I'm confused.

        iignatios
        If the wordops installed PHP8.0 on your server but sites not updated to PHP8.0, you can manually update the sites to use PHP8.0. For this, I use WinSCP for editing files, not use the SSH. The putty (ssh) is used for restart, reload nginx, PHP, etc. I'm not an expert in this subject, all these are learned from Googling. If there is any mistake please correct me.

        First, verify your server updated to PHP8.0 by navigating to the following directory.

        /etc/php/8.0/

        check php8.0 process running on your server running following command line.

        sudo service php8.0-fpm status

        The response should be,

        ● php8.1-fpm.service - The PHP 8.0 FastCGI Process Manager
             Loaded: loaded (/lib/systemd/system/php8.0-fpm.service; enabled; vendor preset: enabled)
             Active: active (running) since Sat 2022-01-29 13:16:47 +0530; 6h ago
               Docs: man:php-fpm8.0(8)
            Process: 12356 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.0/fpm/pool.d/www.conf 81 (code=exited, status=0/SUCCESS)
           Main PID: 12355 (php-fpm8.0)
             Status: "Processes active: 0, idle: 0, Requests: 4200, slow: 0, Traffic: 0req/sec"
              Tasks: 1 (limit: 2321)
             Memory: 339.4M
             CGroup: /system.slice/php8.0-fpm.service
                     └─12355 php-fpm: master process (/etc/php/8.0/fpm/php-fpm.conf)

        Navigate to the "/etc/nginx/" directory open the file, "upstream.conf" file, and check it has the following lines. If it doesn't have add it.

        #-------------------------------
        # PHP 8.0
        #-------------------------------
        # PHP 8.0 upstream with load-balancing on two unix sockets
        upstream php80 {
            least_conn;
            server unix:/var/run/php/php80-fpm.sock;
            server unix:/var/run/php/php80-two-fpm.sock;
            keepalive 5;
        }
        # PHP 8.0 debug
        upstream debug80 {
            # Debug Pool
            server 127.0.0.1:9175;
        }

        Then go to the "/etc/php/8.1/fpm/pool.d/" directory and check it has the following files,

        debug.conf
        www.conf
        www-two.conf

        Then navigate to "/etc/nginx/common/" directory and check whether it has "wpfc-php81.conf" file. If not create a file and add the following lines.

        # WPFC NGINX CONFIGURATION - WordOps 3.14.0
        # DO NOT MODIFY, ALL CHANGES WILL BE LOST AFTER AN WordOps (wo) UPDATE
        # $skip_cache variable set in /etc/nginx/conf.d/map-wp.conf
        
        add_header X-fastcgi-cache $upstream_cache_status;
        # Use cached or actual file if they exists, Otherwise pass request to WordPress
        location / {
          try_files $uri $uri/ /index.php$is_args$args;
        }
        location ~ \.php$ {
          try_files $uri =404;
          include fastcgi_params;
          fastcgi_pass php81;
          fastcgi_cache_bypass $skip_cache;
          fastcgi_no_cache $skip_cache;
          fastcgi_cache WORDPRESS;
        }
        location ~ /purge(/.*) {
          fastcgi_cache_purge WORDPRESS "$scheme$request_method$host$1";
          access_log off;
        }

        Then open your site config files in "/etc/nginx/sites-available" and replace

            include common/wpfc-php74.conf;
            include common/wpcommon-php74.conf;

        with

            include common/wpfc-php81.conf;
            include common/wpcommon-php81.conf;

        Then run the following command to check nginx errors.

        nginx -t

        if everything ok, restart nginx and php8.0-fpm service.

        sudo service nginx restart && sudo service php8.0-fpm restart

        That's all.

        If you use FastCGI disk cache, you have to add a custom location in the www.conf and www-two.conf files and wp-config.php. You can use this tutorial for that.

          Lucky007 Wow thanks alot!

          Wordops when type "wo update" and updating to the newer wordops version, automatically updating and the PHP version or just only the support to 80&81?

            iignatios

            First, make a server backup and test. IF anything goes wrong, you can simply undo the changes. Is your server has PHP8.0?

            Is there any 8.0 directory in /etc/php/ directory?

              iignatios after update to php8?

              I got the same issue only for a single site. Don't know if this would work for you. What I have done is flush FastCGI cache, Redis, and flush Cloudflare cache and change the theme to default. Then everything worked. Again used the premium theme.

              Enable PHP8.0 to debug.

              Check site logs in /var/log/nginx/ and /var/log/php if it has any errors.

              I think it is better if you open a new thread for this issue. This is just an announcement thread.

              11 days later

              i have some issue after update , i use hetzner cloud ubuntu 18.04, mysql
              mysql not running

              root@ubuntu-4gb~# wo stack restart
              PHP8.1-FPM is not installed
              PHP7.4-FPM is not installed
              Testing Nginx configuration [OK]
              Restarting Nginx [OK]
              Restarting php7.2-fpm [OK]
              Restarting php7.3-fpm [OK]
              Restarting php7.4-fpm [OK]
              Restarting mariadb [KO]
              Restarting netdata [OK]
              root@ubuntu-4gb:~# wo stack reload --mysql
              Reloading mysql [KO]

                Just log in to write: Awesome, new release. I'm your fan, Thomas! 😀

                11 days later

                Why don't You use standard Debian(/Ubuntu) distribution Nginx packages?
                Nginx packages are: nginx-lite, nginx-full and nginx-extras:
                I guess, it would simplify your build, install and maintenance of WordOps

                Does nginx-extras: misses something that your require when building Nginx on SuSE repository?

                This package provides a version of nginx with the standard modules, plus
                extra features and modules such as the Perl module, which allows the
                addition of Perl in configuration files.

                STANDARD HTTP MODULES: Core, Access, Auth Basic, Auto Index, Browser, Empty
                GIF, FastCGI, Geo, Limit Connections, Limit Requests, Map, Memcached, Proxy,
                Referer, Rewrite, SCGI, Split Clients, UWSGI.

                OPTIONAL HTTP MODULES: Addition, Auth Request, Charset, WebDAV, FLV, GeoIP,
                Gunzip, Gzip, Gzip Precompression, Headers, HTTP/2, Image Filter, Index, Log,
                MP4, Embedded Perl, Random Index, Real IP, Slice, Secure Link, SSI, SSL,
                Stream, SSL Preread, Stub Status, Substitution, Thread Pool, Upstream,
                User ID, XSLT.

                MAIL MODULES: Mail Core, Auth HTTP, Proxy, SSL, IMAP, POP3, SMTP.

                THIRD PARTY MODULES: Auth PAM, Cache Purge, DAV Ext, Echo, Fancy Index,
                Headers More, Embedded Lua, HTTP Substitutions, Nchan, Upload Progress,
                Upstream Fair Queue.

                6 days later

                Lucky007 First, verify your server updated to PHP8.0 by navigating to the following directory.

                /etc/php/8.0/

                Hi @Lucky007
                I've updated wo to 3.14.1, but i see that php80 hasn't been installed.
                Do you have a suggestion on how to get PHP8 on there, so I can then update a site to php8?

                Thanks ...
                Jonathan

                  Hosted by VirtuBox