2021年10月3日 星期日

Copy As Path for Windows / MacOS

If you need to obtain the full path of a folder or a file, follow the appropriate procedure below.


Windows:

1. Hold "Shift" key and Right Click the File or Folder you want to copy the path

2. "Copy as Path" option available, and it will copy the path into clipboard




MAC:

1. Right Click the File or Folder you want to copy the path

2. Hold "Option" key on the keyboard, and hidden menu shown up :
Copy "Filename" as path



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
 
 
 
 

Free Photo to 4R Certificate Photo

https://onsir.org/photo.php