You can put the favicon.ico file in the web root…./public folder, so the URL would be yourdomain.com/favicon.ico
Then you have to add the following line of code into your HTML:
I have used this in my code layout.php and its working fine!
Class “MySQLi” not found: in /web/system/library/db/mysqli.php on line 29
How to solve “Fatal error: Class ‘MySQLi’ not found”: in?
Solution:
root@en-03:~# apt install php8.2-mysql
lluminate \ Foundation \ ViteManifestNotFoundException PHP 8.2.14 10.39.0 Vite manifest not found at:
Solution: run the following:
sudo apt-get install php8.2-mcrypt php8.2-intl php8.2-curl php8.2-xsl php8.2-mbstring php8.2-xsl php8.2-zip php8.2-soap php8.2-gd
Step-by-Step Guide to Upgrade to Debian 12 from Debian 11
Copy & Paste as below:
sed -i ‘s/bullseye/bookworm/g’ /etc/apt/sources.list
sed -i ‘s/bullseye/bookworm/g’ /etc/apt/sources.list.d/*.list
apt-get update -y && apt-get upgrade –without-new-pkgs -y && apt-get full-upgrade -y
reboot
lsb_release -a
After installing CodeIgniter 4 when you run the app then you will get an error like this:
Whoops! We seem to have hit a snag. Please try again later
And in cmd line when run composer update you see something similar to this output below:
Problem 1
– codeigniter4/framework[4.0.0, …, v4.4.4] require ext-intl * -> it is missing from your system. Install or enable PHP’s intl extension.
– Root composer.json requires codeigniter4/framework ^4.0 -> satisfiable by codeigniter4/framework[4.0.0, …, v4.4.4].
To enable extensions, verify that they are enabled in your .ini files:
– /etc/php/8.2/cli/php.ini
– /etc/php/8.2/cli/conf.d/10-mysqlnd.ini
– /etc/php/8.2/cli/conf.d/10-opcache.ini
– /etc/php/8.2/cli/conf.d/10-pdo.ini
– /etc/php/8.2/cli/conf.d/15-xml.ini
– /etc/php/8.2/cli/conf.d/20-calendar.ini
– /etc/php/8.2/cli/conf.d/20-ctype.ini
– /etc/php/8.2/cli/conf.d/20-curl.ini
– /etc/php/8.2/cli/conf.d/20-dom.ini
– /etc/php/8.2/cli/conf.d/20-exif.ini
– /etc/php/8.2/cli/conf.d/20-ffi.ini
– /etc/php/8.2/cli/conf.d/20-fileinfo.ini
– /etc/php/8.2/cli/conf.d/20-ftp.ini
– /etc/php/8.2/cli/conf.d/20-gd.ini
– /etc/php/8.2/cli/conf.d/20-gettext.ini
– /etc/php/8.2/cli/conf.d/20-iconv.ini
– /etc/php/8.2/cli/conf.d/20-mbstring.ini
– /etc/php/8.2/cli/conf.d/20-mysqli.ini
– /etc/php/8.2/cli/conf.d/20-pdo_mysql.ini
– /etc/php/8.2/cli/conf.d/20-phar.ini
– /etc/php/8.2/cli/conf.d/20-posix.ini
– /etc/php/8.2/cli/conf.d/20-readline.ini
– /etc/php/8.2/cli/conf.d/20-shmop.ini
– /etc/php/8.2/cli/conf.d/20-simplexml.ini
– /etc/php/8.2/cli/conf.d/20-sockets.ini
– /etc/php/8.2/cli/conf.d/20-sysvmsg.ini
– /etc/php/8.2/cli/conf.d/20-sysvsem.ini
– /etc/php/8.2/cli/conf.d/20-sysvshm.ini
– /etc/php/8.2/cli/conf.d/20-tokenizer.ini
– /etc/php/8.2/cli/conf.d/20-xmlreader.ini
– /etc/php/8.2/cli/conf.d/20-xmlwriter.ini
– /etc/php/8.2/cli/conf.d/20-xsl.ini
You can also run `php –ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `–ignore-platform-req=ext-intl` to temporarily ignore these required extensions.
The solution: This method works better and doesn’t have the message above.
root@en-03:# sudo apt-get install php8.2-mcrypt php8.2-intl php8.2-curl php8.2-xsl php8.2-mbstring php8.2-xsl php8.2-zip php8.2-soap php8.2-gd
root@en-03:# sudo service nginx restart
root@en-03:# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
root@en-03:#
You have just installed Debian 12. However SSH session receive this unexpected message:
Broadcast message from Debian-gdm@en-03 on tty1 (Mon 2024-01-08 09:34:01 SAST):
The system will suspend now!
The solution: This method works better to prevent SSH disconnecting from client side.
Create /etc/systemd/sleep.conf.d/nosuspend.conf as follows:
root@en-03:~# mkdir -p /etc/systemd/sleep.conf.d/
root@en-03:~# vi /etc/systemd/sleep.conf.d/nosuspend.conf
[Sleep]
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no
:wq
If you don’t know what version of CodeIgniter you are currently running, and assuming that Composer was used to install CodeIgniter: you can get it by running the following command line:
genie@en-03:/var/www/busylines.co.za/web$composer show | grep codeigniter
codeigniter4/framework v4.4.3 The CodeIgniter framework v4
The current version is v4.4.3.
All the best of luck.
Suddenly my laptop kept disconnecting my wireless connection and turning to off airplane mode. Finally it got stuck in airplane mode off.
Resolution:
If the Airplane Mode is permanently off …. that means you would have accidentally pushed the on and off switch button on the side of your laptop. To enabled the mode on, just push the Wifi switch button back and forth to on position.
All the best of luck.
You’re suddenly receiving a “FATAL ERROR: Couldn’t agree a host key algorithm (available: rsa-sha2-512,rsa-sha2-256)” when trying to ssh into your Ubuntu Linx Server
Resolution:
The Couldn’t agree a key exchange algorithm is expected behavior with older versions of PuTTy or WinSCP.
To resolve this issue, upgrade PuTTy to the latest version via the below links. https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html . Try using PuTTy or WinSCP from a different computer/laptop if applicable.
All the best of luck. My problem was solved by actioning the above.