I wrote a script that fixes all your Nginx sites to php8 on Ubuntu 21.10/in Computers, Linux, Technology, Websites/by Wyatt
I had a working webserver running LEMP (Linux, Nginx, Mysql, PHP) and I saw my Linode Linux VPS had a release upgrade. So I ran the Ubuntu “do-release-upgrade” command and after 15 minutes of updating it was updated, hooray!
Except after rebooting, all my websites were dead with a 502 Nginx error.
Upgrading from Ubuntu 20 to Ubuntu 21.10 the Ubuntu gods forced the upgrade from PHP7.4 to PHP8.0.
I tried getting a phpinfo page to test if the php was processing, but instead nginx was just serving the php page like a download. So I knew it was a problem with the php being processed, Nginx has individual sites running through the sites-available and sites-enabled folder. I updated the sites-available files with the new php8.0 socket, assuming since they were already linked in sites-enabled then they should all work after the nginx service was restarted. However they still didn’t work, and after opening the linked files in the sites-enabled folder I realized those were just copied by the “sudo ln -s” command. So now for all my websites I need to change php7.4 socket to php8.0, delete all the sites-enabled links, then relink all the sites-available files. Doing this more than 2 times if pretty tedious. So naturally I wrote a script does all this, and for each of the sites in the sites-available folder it updates all of them and relinks them.
I’m working on cleaning up this script and releasing it to help others, might try releasing it on my github
Did you know only 1% of the internet is on php8? https://haydenjames.io/78-of-the-web-powered-by-php-1-on-php-8/
HotWorldMusic.com the world’s best World Music/in Websites/by Wyatt
When I was growing up on a 5 acre farm in Palm Beach, there was little access to internet, me and my dad shared a Garage that we converted to a living space. We had access to satellite TV through DirecTV and they had channel named LinkTV. LinkTV used to have a segment where they broadcast tons of videos in their world music group. It’s been at least 10 years since then and I can still remember music video from some Finnish farmers among others and when I look at LinkTV I don’t know if they still make this world music segment anymore or not but I wish they did and so I figured why not create a website that tracks all the contemporary world music artists. So I created HotWorldMusic.com. The name is a play on words, and “Hot world” is a slight reference to climate change and global warming. As an advance over LinkTV I wanted to develop a map that you could click on that would direct you to music from different parts of the world based on where you clicked. The US obviously has a diverse range of music genres, but did you know Russia shares several of these genres including Rap, R&B, and Goth music?