Linux ~ phpmyadmin error on PHP 8

Back up phpMyAdmin

Backup dulu file yang lama.

 $ sudo mv /usr/share/phpmyadmin/ /usr/share/phpmyadmin.bak

Create a new phpMyAdmin folder

$ sudo mkdir /usr/share/phpmyadmin/

Change to the directory

$ cd /usr/share/phpmyadmin/

Download and Extract phpMyAdmin

$ sudo wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz

Now extract

$ sudo tar xzf phpMyAdmin-*-all-languages.tar.gz

Once extracted, list folder

$ ls

Nanti akan kelihatan folder phpMyAdmin-*-all-languages

Kita akan memindah isi folder ke /usr/share/phpmyadmin

$ sudo mv phpMyAdmin-*-all-languages/* /usr/share/phpmyadmin

Make a copy of /usr/share/phpmyadmin/config.sample.inc.php

$ sudo cp /usr/share/phpmyadmin/config.sample.inc.php /usr/share/phpmyadmin/config.inc.php

Now edit the config.inc.php

$ sudo nano config.inc.php

$cfg['blowfish_secret'] = 'Zbwen/BEAFv:HTbqOROrqakJ;KUMIpV:'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

$ Ctrl+x /* to save the file */

Go to your site/phpmyadmin check all error is cleared.

=================================================

YOU MAY ENCOUNTER THIS ERROR MESSAGE ON PHPMYADMIN /INDEX.PHP

IT MAY SAY SOMETHING LIKE:

The $cfg['TempDir'] (/usr/share/phpmyadmin/tmp) is not accessible. phpMyAdmin is not able to cache templates and will be slow because of this.

===SOLUTION==

$ sudo mkdir -p /var/tmp/phpMyAdmin

$ sudo chown www-data:www-data /var/tmp/phpMyAdmin

$ sudo chmod -R 700 /var/tmp/phpMyAdmin

Edit the config.inc.php again

$ sudo nano config.inc.php

add or replace this line

$cfg['TempDir'] = '/var/tmp/phpMyAdmin';

Cleanup — You can now delete the tar.gz file and the empty folder.

$ sudo rm -rf /usr/share/phpmyadmin/phpMyAdmin-latest-all-languages.tar.gz

And if you’re certain your new phpMyAdmin install is working correctly you can delete the backup folder.

$ sudo rm -rf /usr/share/phpmyadmin.bak

Laravel 0.1 ~ Install Auth UI

Untuk membuat autentikasi beserta viewnya:

composer require laravel/ui

untuk tampilan bisa menggunakan vue atau bootstrap

Untuk vue:

php artisan ui vue --auth

untuk Bootstrap:

php artisan ui bootstrap --auth
npm install && npm run dev
npm audit fix --force
npm run watch

Jangan lupa di edit dulu file .env untuk setting database dan jalankan perintah dibawah ini :

php artisan migrate

Install Composer

 

 

sudo apt install curl php-cli php-mbstring git unzip php-curl
sudo apt-get install -y php7.*-gd
sudo apt-get install php7.*-intl
sudo apt-get install php7.*-xsl
sudo apt-get install php7.*-mbstring
sudo service apache2 restart
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
curl -sS https://getcomposer.org/installer |php
sudo mv composer.phar /usr/local/bin/composer

Blakblakan 0.3 ~ Kaki Gatel, Kepala Digaruk

throat

Kaki yang gatel masa kepala yang di garuk….. ada ada aja yaaaahh…… eeeiiitttt tunggu dulu…….

Siapa bilang itu mustahil…? ini berdasarkan ilmu dan pengalaman sendiri. Kalian pasti pernah ngalamin yang namanya gatel tenggorokan pas lagi batuk. Rasanya pengen garuk-garuk tenggorokan tapi ga sampe” gitu…… naaaaahh….. gmana caranya biar cepet ilang gatelnya???

Read more