Solve phpmyadmin problem in ubuntu 18.04

1. sudo vi /usr/share/phpmyadmin/libraries/sql.lib.php
approx line 613
replace this code
((empty($analyzed_sql_results['select_expr'])) || (count($analyzed_sql_results['select_expr'] == 1) && ($analyzed_sql_results['select_expr'][0] == '*')))

with this code

((empty($analyzed_sql_results['select_expr'])) || (count($analyzed_sql_results['select_expr']) == 1) && ($analyzed_sql_results['select_expr'][0] == '*'))

2. sudo vi /usr/share/phpmyadmin/libraries/plugin_interface.lib.php
approx line 532
replace this code
$no_options = true;
if($options != null && count($options) > 0) {
foreach($options->getProperties() as $propertyMainGroup) {

with this code

$no_options = true;
if($options != null && count((array)$options) > 0) {
foreach($options->getProperties() as $propertyMainGroup) {

3. sudo systemctl restart apache2

Run Python Project On Port 80 Apache2 Configuration

<VirtualHost *:80>

ServerAdmin [email protected]
DocumentRoot /var/www/html/(python project folder Name)

<Directory /var/www/html/(python project folder Name)>
AllowOverride All
Alias /static /var/www/html/(python project folder Name)/static
<Directory /var/www/html/(python project folder Name)/static>
Require all granted
Alias /static /var/www/html/(python project folder Name)/media
<Directory /var/www/html/(python project folder Name)/media>
Require all granted
<Directory /var/www/html/(python project folder Name)/(python project folder Name)>
Require all granted
Require all granted

LoadModule wsgi_module “/var/www/html/myenv/lib/python3.6/site-packages/mod_wsgi/server/”

WSGIDaemonProcess myenv1 python-path=/var/www/html/(python project folder Name):/var/www/html/myenv/lib/python3.6/site-packages
WSGIProcessGroup myenv1
WSGIScriptAlias / /var/www/(python project folder Name)/(python project folder Name)/

WSGIPassAuthorization On
WSGIApplicationGroup %{GLOBAL}


How to install Mongodb on centos

1) sudo vi /etc/yum.repos.d/mongodb-org-3.6.repo
press i : for insert mode
then write –
name=MongoDB Repository

2) sudo yum update
3) sudo yum install mongodb-org
4) sudo systemctl start mongod
5) sudo systemctl reload mongod
6) sudo systemctl enable mongod
7) sudo yum install php-mongo
8) sudo apachectl restart

More – Mongodb

Linux Command

sudo : superuser do
sudo -i : for change other user to user root
cd : change directory
ls : listing
ls -la : listing with full information of files or folder
/ : root directory
~ : home directory
.. : for previous directory
. : current directory
cp fileName copyLocation
scp -r folder/file copyLocation
rm -rf fileName/folderName : remove directory
top : for mysql running query list
du -sh fileName/FolderName : for file or folder size information
df -h : system all memory information
pwd : present working directory
zip fileName/folderName
unzip : unzip file

to be continue…