Skip to main content

Posts

Showing posts from 2018

HOW TO: Install Moodle 3.0 - 3.5 in CentOS 6/7

Here are the commands for installing Moodle 3.0 - 3.5 in CentOS 6/7. 1. Update your System $ yum update -y $ sudo yum update -y  (for Ubuntu 16.04/18.04) 2.  Install required LAMP(Linux, Apache, MySQL, phpmyadmin) version on CentOS 6/7 $ yum install httpd mariadb mariadb-server php php-mysql $ sudo yum install httpd mariadb mariadb-server php php-mysql (for Ubuntu 16.04/18.04) $ yum install php-iconv php-mbstring php-curl php-openssl php-tokenizer php-xmlpc php-soap php-ctype php-zip php-gd php-simplexml php-spl php-pcre php-dom php-xml php-intl php-json php-ldap php-pecl-apc (use sudo for Ubuntu 16.04/18.04) Start httpd and mysql services for CentOS $ systemctl enable httpd $ systemctl start  httpd $ systemctl enable mariadb $ systemctl start MariaDB (use sudo for Ubuntu 16.04/18.04) $ sudo service httpd restart $ sudo service MariaDB re start Create root admin password of MySQL, or later you can configure the path,  username an...

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";         $...

Your Smartphone is More Capable Than U Think | Part-1 | ASUS ZenFone 2 L...