Posts

Showing posts from March, 2019

Magento 2: in ubuntu Fresh installation Content is not loaded properly and admin panel is not found

Magento 2: in ubuntu Fresh installation Content is not loaded properly and admin panel is not found Follow this sudo a2enmod rewrite Open file " /etc/apache2/apache2.conf " in any Text Editor find <Directory /var/www/>      Options Indexes FollowSymLinks      AllowOverride None      Require all granted </Directory> and replace <Directory /var/www/>     Options Indexes FollowSymLinks     AllowOverride All     Require all granted </Directory>

MYSQL : How to drop database in mysql command line in ubuntu 18.04

follow this command sudo mysql -u root -p SHOW DATABASES; #Copy Name of database# DROP DATABASE IF EXISTS databasename; DROP DATABASE databasename;

MYSQL : How to create new user and assign database. in ubantu

Follow this command sudo mysql -u root -p CREATE DATABASE databasename; CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; GRANT ALL ON databasename.* TO 'username'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION; FLUSH PRIVILEGES; EXIT;

How to restart apache2 in ubantu

Follow this command sudo systemctl restart apache2 or sudo service apache2 restart or sudo /etc/init.d/apache2 restart

How to uninstall NGINX from kubantu

run the following command sudo apt-get remove nginx nginx-common sudo apt-get purge nginx nginx-common sudo apt-get autoremove rm -rf /etc/nginx

Ubuntu: how to give directory permission recursively

run command sudo chmod -R 777 ./

word wrap in vs code in ubantu

simpaly press Alt + z