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>

ServerName domain.com
ServerAlias www.domain.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/(python project folder Name)

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

LoadModule wsgi_module “/var/www/html/myenv/lib/python3.6/site-packages/mod_wsgi/server/mod_wsgi-py36.cpython-36m-x86_64-linux-gnu.so”

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)/wsgi.py

WSGIPassAuthorization On
WSGIApplicationGroup %{GLOBAL}

</VirtualHost>

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 –
[mongodb-org-3.6]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc

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.zip fileName/folderName
unzip filename.zip : unzip file

to be continue…