First of all, thank you for your effort.
Is there any command line to update all the sites to php8.1?
First of all, thank you for your effort.
Is there any command line to update all the sites to php8.1?
Thank you for the update. Just reinstalled WordOps
However, there is an error while install netdata
Unable to search /etc/netdata/orig/health_alarm_notify.conf and replace SEND_EMA IL="YES" SEND_EMAIL="NO"
Unable to copy file from /etc/netdata/orig/health_alarm_notify.conf to /etc/netd ata/health_alarm_notify.conf
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.
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
I think you have to use wo site update [<site_name>] [options]
for install PHP8.0. https://docs.wordops.net/commands/site/#site-update
To update your site to PHP8.0, run
wo site update [<site_name>] --php80
Then it automatically installs php8.0 and update the site to PHP8.0
Lucky007 Yes that's what i did. I try again with your steps
Lucky007 i have a server back up and wp. Thanks Lucky!
Lucky007 im trying but i had white page without ssl
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.
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]
umenk No one can help with this type of question
You should check the Mysql log first and finding what's made the problem.
How to check log: https://docs.wordops.net/commands/log/
Hosted by VirtuBox