Skip to main content

Posts

Showing posts from July, 2018

HOW-TO:- Solve phpmyadmin is not working but MySQL accessed using Ubuntu cmd

Here is the error: ================================================== Not Found The requested URL /phpmyadmin was not found on this server. Apache/2.4.18 (Ubuntu) Server at localhost.com Port 80 ================================================== To solve this you need to open Terminal in Ubuntu and type the below commands. cd /etc/apache2  Give permission to apache2.conf to edit the file - sudo chmod -R 0777 apache2.conf Now, type vi apache2.conf the file will to edit, click i to bring terminator/terminal in editing mode Enter the line at the end of the file in apache2.conf -  Include /etc/phpmyadmin/apache.conf Save it by typing :wq! and hit Enter. Then restart apache by typing /etc/init.d/apache2 restart in terminal, it'll ask for system password to restart apache You can also start apache by using command - sudo service apache2 restart

HOW-TO:- Solve Moodle 2.7 on MySql 5.7.x Installation

The reason of doing this is I configured my apache for local virtual hosting rather than localhost (available in the next post). I found the error as mentioned below, and I tried different solution to solve it. I did few of the things to solve, they are as follows: Removed and installed MySQL server. Installed mysql 5.7v Installed Moodle 2.7+ stable version  configured and deleted Moodle config.php few times. created and deleted database naming moodle(default created when initialized) and few other names. Gave permission to php5.6 instead of php7.0.2 in Ubuntu 16.04 Here's the Solution, find below lines(183 - 191) or search for " SELECT @@storage_engine " and then replace it from "SELECT @@default_storage_engine" . =======Code Snippets(183 - 191):  =======         // get the default database engine         $sql = " SELECT @@default_storage_engine";         $...