Trying to install moodle 2.4 on cpanel

Trying to install moodle 2.4 on cpanel

by James Hope -
Number of replies: 11

I am trying to install moodle 2.4 on my webhost using cpanel.

 

I have successfully created the database and started the installation.  I enter the mysql database information and confirm the agreement.

 

Then I get the php checks and I click continue.

 

After a little while loading I get an error page telliong me there is no top level course.  How do I fix this?

Average of ratings: -
In reply to James Hope

Re: Trying to install moodle 2.4 on cpanel

by Jaswinder Singh -
Picture of Testers Picture of Translators

Hi James,

Can you mention your php, mysql version etc.

This issue may occur because of the timeout during the install.

In reply to Jaswinder Singh

Re: Trying to install moodle 2.4 on cpanel

by James Hope -

mysqlversion: MySQL version 5.1.68-cll

php version: PHP version 5.3.23

 

Anything else you want to know?

In reply to Jaswinder Singh

Re: Trying to install moodle 2.4 on cpanel

by James Hope -

I get this error_log file in moodle/admin/ on my webhost

 

[22-Apr-2013 17:41:13 Europe/London] Default exception handler: Coding error detected, it must be fixed by a programmer: moodle_database::insert_record_raw() no fields found. Debug:
Error code: codingerror
* line 1092 of /lib/dml/mysqli_native_moodle_database.php: coding_exception thrown
* line 1149 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
* line 599 of /lib/upgradelib.php: call to mysqli_native_moodle_database->insert_record()
* line 360 of /lib/upgradelib.php: call to upgrade_plugins_modules()
* line 1544 of /lib/upgradelib.php: call to upgrade_plugins()
* line 349 of /admin/index.php: call to upgrade_noncore()

[22-Apr-2013 17:41:14 Europe/London] PHP Fatal error:  Uncaught exception 'dml_exception' with message 'Table "config" does not exist' in /home/jhopeche/public_html/moodle/lib/dml/moodle_database.php:538
Stack trace:
#0 /home/jhopeche/public_html/moodle/lib/dml/moodle_database.php(1695): moodle_database->where_clause('config', Array)
#1 /home/jhopeche/public_html/moodle/lib/moodlelib.php(1424): moodle_database->delete_records('config', Array)
#2 /home/jhopeche/public_html/moodle/lib/upgradelib.php(1260): unset_config('upgraderunning')
#3 /home/jhopeche/public_html/moodle/lib/upgradelib.php(1245): upgrade_finished()
#4 [internal function]: upgrade_finished_handler()
#5 {main}
  thrown in /home/jhopeche/public_html/moodle/lib/dml/moodle_database.php on line 538
[22-Apr-2013 17:45:27 Europe/London] Default exception handler: Could not find a top-level course! Debug:
Error code: nosite
* line 464 of /lib/datalib.php: moodle_exception thrown
* line 670 of /lib/setup.php: call to get_site()
* line 27 of /config.php: call to require_once()
* line 50 of /admin/index.php: call to require()

In reply to Jaswinder Singh

Re: Trying to install moodle 2.4 on cpanel

by James Hope -

Could it be because I don'e have php_intl installed?

In reply to Jaswinder Singh

Re: Trying to install moodle 2.4 on cpanel

by James Hope -

Do you know anyway to fix this?

In reply to James Hope

Re: Trying to install moodle 2.4 on cpanel

by Ken Task -
Picture of Particularly helpful Moodlers

Looks like the installation failed:

These two in the error log:
no fields found
'Table "config" does not exist'

So using whatever tool you have to view the contents of databases (phpmyadmin? or other), see if there is a mdl_config table in the moodle DB.  Also check that the user you had to give the install form has access rights to create tables.  Also, on the form concerning the DB variables during initial installation, there was one field that already had the prefix _mdl filled in.  Did you change that?

There is a way to 'fix' via command line /admin/cli/install.php BUT your requirement is cPanel.

Not sure that php-intl is not required to install.  It is, however, recommended:
http://docs.moodle.org/24/en/PHP_settings_by_Moodle_version

Looks like your easiest approach at this point is to re-install - from scratch.

However, maybe this might help:


There is more than one video on how 2 install Moodle via cPanel.

'spirit of sharing', Ken

In reply to Ken Task

Re: Trying to install moodle 2.4 on cpanel

by James Hope -

Ok I had a look at those things, phpmyadmin shows that the database has lots of tables etc in, but I deleted the whole thing and tried again.

 

Still having the same problem.

 

The user for the database seems to have all the necessary permissions and i did not change the database prefx.

 

I have tried following that video guide but I still get stuck at the same hurdle.

 

I am trynig to follow the cli install now see if I get given an error.

In reply to Ken Task

Re: Trying to install moodle 2.4 on cpanel

by James Hope -

on the cli I seem to get it stalling at 

==setting up database==

-->System

In reply to James Hope

Re: Trying to install moodle 2.4 on cpanel

by Natalie M -

I'm installing 2.2 on my webhost using cpanel too.

It's a one-click installation which is set up by the webhost provider.  It works fine.  It shows me the front page login.  Once I logged in, it attempts to load.  After a while, it just stops leaving a blank screen.  When I try to reload the login page now, its empty too.  Nothing works now.  

What should I do?

In reply to Natalie M

Re: Trying to install moodle 2.4 on cpanel

by Jaswinder Singh -
Picture of Testers Picture of Translators

Hi Natalie,

You should try to turn on the debugging mode through config.php in your moodle directory.

http://docs.moodle.org/23/en/Debugging#In_config.php

Just edit the config.php file and add

$CFG->debug = 6143;
$CFG->debugdisplay = 1;

 

and save it.

Then, you will see the errors which prevent your page from loading.

Google it or you may ask here also about those errors.

In reply to Natalie M

Re: Trying to install moodle 2.4 on cpanel

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers

Since you are using the one-click install from your service provider, have you asked them why it doesn't work?  This is a reasonable question to ask your provider.