Moodle error 500

Moodle error 500

by Roman Malík -
Number of replies: 16

Hello, I have a problem with Moodle 3.0.3+

Hosted on your own server ISPConfig3

Installation was okay. The problem is with tabs administration of Moodle. On most of my server throws an error 500

I've tried to set permissions 775. Even in the error log can not see anything.

Do you have any advice?

Apache / 2 April 10 (Debian)

PHP 5.6.19-0 + deb8u1

Mysql Ver 15.01 Distrib 10.0.23-MariaDB


Average of ratings: -
In reply to Roman Malík

Re: Moodle error 500

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

What exactly do you mean by Tabs Administration?  Is this a plugin?  The course format?  Can you turn debugging on and post the full error message?

In reply to Emma Richardson

Re: Moodle error 500

by Roman Malík -

On this page:

http://moogle.domain.com/admin/settings.php?section=frontpagesettings

and others.


I try to turn on every error message.

In reply to Roman Malík

Re: Moodle error 500

by Albert Ramsbottom -

Is it supposed to be Moogle?

Is it supposed to be moodle.domain.com? have you changed this? 

What have you in your moodle config file?

What is the structure of your site?


Albert

Please rate this post if it help thanks

In reply to Albert Ramsbottom

Re: Moodle error 500

by Roman Malík -

Sorry, its suppous to by moodle.domain.com wich I changed. 


My config file is default:


<?php  // Moodle configuration file


unset($CFG);

global $CFG;

$CFG = new stdClass();


$CFG->dbtype    = 'mariadb';

$CFG->dblibrary = 'native';

$CFG->dbhost    = 'localhost';

$CFG->dbname    = 'c1studovna';

$CFG->dbuser    = 'c1studovna';

$CFG->dbpass    = 'password';

$CFG->prefix    = 'mdl_';

$CFG->dboptions = array (

  'dbpersist' => 0,

  'dbport' => '',

  'dbsocket' => '',

);


$CFG->wwwroot   = 'http://mydomain.com';

$CFG->dataroot  = '/var/www/clients/client1/web2/private/moodledata';

$CFG->admin     = 'admin';


$CFG->directorypermissions = 0777;


require_once(dirname(__FILE__) . '/lib/setup.php');


// There is no php closing tag in this file,

// it is intentional because it prevents trailing whitespace problems!


Structure is default, its after clean install.

And this problém with 500 error I have on two diffrent server with ISPconfig3 management.



In reply to Roman Malík

Re: Moodle error 500

by Albert Ramsbottom -

Hi

The $CFG->wwwroot   = 'http://mydomain.com';

Is not the same as:

moodle.domain.com

Your URL for your browser should be the same: http://mydomain.com

BUT, this depends on your Apache config file as well, and I do not know anything about ISPconfig3 management.

Albert

In reply to Albert Ramsbottom

Re: Moodle error 500

by Roman Malík -

Domain is same, I just change it twice but diffrent.

Original domain: 

http://studovna.sou-ub.cz same as $CFG->wwwroot   = 'http://studovna.sou-ub.cz';

In reply to Roman Malík

Re: Moodle error 500

by Albert Ramsbottom -

Well your moodle is working, so I cannot debug much anymore

If you go to admin, now what does it do?


Albert

In reply to Albert Ramsbottom

Re: Moodle error 500

by Roman Malík -

If I go to section page administration and choose information and others pages I get error 500. 

Attachment Výstřižek.JPG
In reply to Roman Malík

Re: Moodle error 500

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

So you changed the domain name after installing?  In which case, you need to clear your caches and run the replace.php tool found at admin/tool/replace/index.php to update your database with the new url.  Backup the database first...

In reply to Emma Richardson

Re: Moodle error 500

by Roman Malík -

No I dont change anythink. Just fresh install.

In reply to Roman Malík

Re: Moodle error 500

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

I suggest starting again then.  Make sure that your moodle and moodledata folders have the correct permissions.  Delete and recreate the database and then redownload the moodle code.  

In reply to Roman Malík

Re: Moodle error 500

by Roman Malík -
I try:


1. installation again

2. install lower version


but still same error 500. But I notice after install when you chose your password and click on save I get error 500. After refresh of page I get page of editing administrators profile. 

But ten I everything same as I mentioned at first post.

In reply to Roman Malík

Re: Moodle error 500

by Roman Malík -

And now on index page: ERR_TOO_MANY_REDIRECTS

So I deleted files and folders in moodledata folder. After that I can see index page, I can log in. But again I am at the same problema as on the first post. 

I installing that on server with ISPconfig 3 management.

In reply to Roman Malík

Re: Moodle error 500

by Olumuyiwa Taiwo -
Picture of Plugin developers

The best place to start troubleshooting "error 500" errors is in your Apache error log. 

Look for the string "ErrorLog" in your main Apache or site's VirtualHost config to find out where your error log is located. Then, monitor the output from that log file in a terminal window while accessing your site's admin page to see what's causing the error.