There are two ways available to find the version of the Laravel application. You can either find it by running a command or you can check the Laravel version in files.
Command to find Laravel Version
Open the terminal on your system. Navigate to the webroot directory of the Laravel application. Now execute the following PHP artisan command to check the Laravel version.
$ php artisan --version
Laravel Framework 5.6.39
Check Laravel Version in File
Sometimes you may not have access to the terminal of server-hosted Laravel application. Or you may not much familiar with the command line. In that case, you can simply view the Laravel version in the following file.
First navigation to Laravel webroot directory.
$ vim ./vendor/laravel/framework/src/Illuminate/Foundation/Application.php
The search bots will search for necessary information for users based on the meta tags’ and the article’s content. The page or post will rank higher in search result pages if its meta tags contain important keywords. Therefore, it should be concise and contain important keywords. It will be better for SEO if you can put the keyword to the beginner of the description is better.
Description and keyword without plugin Paste this in theme’s functions.php file.
The following functions are not very well known but can be pretty useful in very specific cases:
key($array); //Returns current key
reset($array); //Moves array pointer to first record
current($array); //Returns current value
next($array); //Moves array pointer to next record and returns its value
prev($array); //Moves array pointer to previous record and returns its value
end($array); //Moves array pointer to last record and returns its value
/etc/phpmyadmin/apache.conf
------------ On CentOS/RHEL and Fedora ------------
# vi /etc/httpd/conf.d/phpMyAdmin.conf
------------ On Debian and Ubuntu ------------
# /etc/phpmyadmin/apache.conf
Then add a new one as follows:
# Alias /phpmyadmin /usr/share/phpmyadmin
Alias /my /usr/share/phpmyadmin
------------ On Debian and Ubuntu ------------
# echo "Include /etc/phpmyadmin/apache.conf" >> /etc/apache2/apache2.conf
------------ On CentOS/RHEL and Fedora ------------
# systemctl restart nginx
# systemctl restart php-fpm
------------ On CentOS/RHEL and Fedora ------------
# systemctl restart httpd
------------ On Debian and Ubuntu ------------
# systemctl restart apache2
------------ On Debian and Ubuntu ------------
# systemctl restart nginx
# systemctl restart php5-fpm
Enable HTTPS on PhpMyAdmin
Password Protect on PhpMyAdmin
Add these lines to the Apache configuration file (/etc/apache2/sites-available/000-default.conf or /etc/httpd/conf/httpd.conf):
/etc/apache2/sites-available/000-default.conf – On Ubuntu
<Directory /usr/share/phpmyadmin>
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
</Directory>
/etc/httpd/conf/httpd.conf – On CentOS
<Directory /usr/share/phpmyadmin>
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/httpd/.htpasswd
Require valid-user
</Directory>
Then use htpasswd to generate a password file for an account that will be authorized to access the phpmyadmin login page. We will use /etc/apache2/.htpasswd and tecmint in this case:
---------- On Ubuntu/Debian Systems ----------
# htpasswd -c /etc/apache2/.htpasswd tecmint
---------- On CentOS/RHEL Systems ----------
# htpasswd -c /etc/httpd/.htpasswd tecmint
Enter password twice and then change the permissions and ownership of the file. This is to prevent anyone not in the www-data or apache group from being able to read .htpasswd:
# chmod 640 /etc/apache2/.htpasswd
---------- On Ubuntu/Debian Systems ----------
# chgrp www-data /etc/apache2/.htpasswd
---------- On CentOS/RHEL Systems ----------
# chgrp apache /etc/httpd/.htpasswd
Open your phpmyadmin url and you’ll see the authentication dialog before accessing the login page.
Disable root Login to PhpMyAdmin
/etc/phpmyadmin/config.inc.php
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['AllowRoot'] = false;
------------- On CentOS/RHEL Systems -------------
# systemctl restart httpd.service
------------- On Debian/Ubuntu Systems -------------
# systemctl restart apache2.service
By default, PHP errors and warnings generated by your websites are logged in error_log files in the directory where your PHP files are located. The PHP error_log files can grow to a large size.
If you do not need the error_log file you can disable PHP error logging using one of the three ways listed below:
PHP Selector in cPanel — Recommended
Log in to cPanel.
Click Select PHP Version.
Click Switch To PHP Options
Set log_errors to Off
Click Save
.htaccess
Edit .htaccess in your public_html folder
Enter the following code:1php_flag log_errors off
Save the file.
php.ini
Create a new file named php.ini in your public_html folder.
Enter the following code:1log_errors = off
Save the file.
Verify your changes
Create a phpinfo php page to check your settings are active.
Delete existing PHP error_log files
View your webspace using FTP or cPanel File Manager
It’s possible that when you installed phpMyAdmin, the version in the repository (phpMyAdmin v4.6.6) was not fully compatible with PHP 7.2. There is a newer version available on the official website (v4.8 as of writing), which fixes these compatibility issues with PHP 7.2.
sql.lib.php
This error is caused by a line of code in /usr/share/phpmyadmin/libraries/sql.lib.php.