2021年9月22日 星期三

Upgrade PHP 7.1 to PHP 7.4 (32-bits Ubuntu)

Still using my eeebox b202 as web server, however, 32-bit architecture is not support all the way.

 

 

 1. Adding this 3rd party repository to your system:

sudo add-apt-repository ppa:jczaplicki/xenial-php74-temp
sudo apt-get update
sudo apt install -y php7.4 php7.4-cli php7.4-common php7.4-fpm
php7.4-mysqli php7.4-xml
 
(Ref: https://stackoverflow.com/questions/67920506/unable-to-install-php-7-4-on-ubuntu-16-04-even-with-ondrej-ppa-repository-in-apa)
 
2. sudo nano nginx.conf
 
3. sudo nano /etc/nginx/sites-available/default

Find out “`
location ~ .php$ {
....
fastcgi_pass unix:/run/php/php7.0-fpm.sock; —- Remove this line by commenting ’#’

fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}


(Ref: https://www.digitalocean.com/community/questions/how-to-upgrade-php-7-0-33-to-7-4-7-on-ubuntu-16-04-nginx)

4. sudo nginx -t; sudo systemctl reload nginx  ;
 
 
 
 
 
phpmyadmin showed:
"
Composer detected issues in your platform:
Your Composer dependencies require the following PHP extensions to be installed: mysqli, xml"
Solved by:
1. sudo apt install php7.4-mysqli php7.4-xml
 
 
 
 

我的白蝕治療之路:從發現到自我管理

  大家好,想和大家分享我與白蝕, 白癜風(vitiligo)抗爭的經歷, 這抗爭於今天開始, 立此Blog 以作紀錄。   2024-08-14 這個故事開始於三年前, 三年前,也就是新冠肺炎初期,當時我剛買了新車,在駕駛過程中突然發現了手上皮膚的異常。我注意到了皮膚的出現了...