HTTP ERROR 500

HTTP ERROR 500

by Blue Axis -
Number of replies: 14

i have a moodle platform for my student in 3D ArchViz, so i'm not very familiar with codes and html, and i have launched the last upgrade 3.8 and since that my site don't work, i can't access and i have a 500 error page. 

i host with OVH and that i have a WordPress installed at the root of server. www.elka-dz.com Moodle 3.8.x is in blueaxis.

https://elka-dz.com/blueaxis

so please help me how to resolve the problem. thank you so much.

Average of ratings: -
In reply to Blue Axis

Re: HTTP ERROR 500

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Did you meet all the requirements for 3.8 (https://docs.moodle.org/dev/Moodle_3.8_release_notes)?

Check your web server's error log for the 500 error. There should be more detail that will help.
In reply to Howard Miller

Re: HTTP ERROR 500

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators

Hi Howar

The URL filter broke your link. Hier it is again (without the brackets): https://docs.moodle.org/dev/Moodle_3.8_release_notes.

BTW, it says, "PHP version: minimum PHP 7.1.0 Note: minimum PHP version has increased since Moodle 3.6. PHP 7.2.x and 7.3.x are supported too. PHP 7.x could have some engine limitations." What does the final PHP 7.x.. sentence mean? The link takes the visitor to https://docs.moodle.org/dev/Moodle_and_PHP7#Can_I_use_PHP7_yet.3F, but obviously we are in PHP 7. Is it a hint to say that other (non-core) components may break in PHP 7?

Average of ratings: Useful (1)
In reply to Visvanath Ratnaweera

Re: HTTP ERROR 500

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Whatever it means, I've run all sorts of different versions of Moodle with different versions of PHP and not had any problems (sticking to the requirements of course).

I don't think it's news to anybody that optional plugins tend to be less comprehensively tested than core.
In reply to Howard Miller

Re: HTTP ERROR 500

by Blue Axis -
Hi Howard,
thank you for your answer, so i have install a new version of moodle
https://elka-dz.com/blueaxislearn/
in the same website and it's working normaly just to see if the problem is in the website or the scripts, so i think the probleme may it be in moodle files.
if i want to get back the old one how can i do this.
thank you.
In reply to Blue Axis

Re: HTTP ERROR 500

by Ken Task -
Picture of Particularly helpful Moodlers

From info provided so far, begs the question, how did you upgrade to 3.8.x in the original /blueaxis/ site?

And, as Howard has suggested, have you checked the web service error logs?

'white screen of death' ... nothing displayed ... could be a simple as no read access by 'others' on config.php file.

So from your Plesk (ugh!) panel file browser, what/how does the ownerships/permissions look like on config.php of /blueaxis/

'SoS', Ken

In reply to Ken Task

Re: HTTP ERROR 500

by Blue Axis -
i have upgrade to 3.8 from my c panel softaculous installer.
In reply to Blue Axis

Re: HTTP ERROR 500

by Ken Task -
Picture of Particularly helpful Moodlers

Oooops!  Softac!!!  Commercial product.  Not open sourced.  Provider enables it for customers to use, and if it fails, they (provider) tells you to come to Moodle Community forums to solve a problem created by Softac!

What's wrong with that?

In my book ... it's criminal.

Not sure anyone in these forums knows/can know what to do to fix.

But ... will respond to your other posting ..

'SoS', Ken

Average of ratings: Useful (1)
In reply to Howard Miller

Re: HTTP ERROR 500

by Blue Axis -
the web server error log : /home/elkadz/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: https://elka-dz.com/blueaxis/login/index.php
In reply to Blue Axis

Re: HTTP ERROR 500

by Ken Task -
Picture of Particularly helpful Moodlers

In your panel's file browser, find and open the hidden .htaccess file

path to .htaccess file is /home/elkadz/public_html/

Says 'invalid command - php_flag.  Find that line in .htaccess and put a # in front of that line.   Comments it out ... won't execute/do anything then.

Moodle code is not distributed with an htaccess.txt file.  So it's something your provider hosting and/or (cough/spit) Softac has done.

Try your site again.   Fixed or are there now more errors?

This could go on forever!!!!

'SoS', Ken

Average of ratings: Useful (1)
In reply to Ken Task

Re: HTTP ERROR 500

by Blue Axis -
ooohh think god. i've find that softaculous have create a backup save befor starting the upgrade so i've launched the backup and it's ok. my website is working now. thank you for your help Mr Ken, and Mr Howard.
In reply to Blue Axis

Re: HTTP ERROR 500

by Ken Task -
Picture of Particularly helpful Moodlers

Did get into your cPanel from info shared via PM.

cPanel - DB server ...
Icons might say MySQL but on your server DB server is:
Server version: 10.3.22-MariaDB - MariaDB Server

In config.php

$CFG->dbtype    = 'mysqli';
probably should have 'mariadb'

https://docs.moodle.org/38/en/MariaDB

And ... about time someone reported Softac doing something right ... backup before upgrade attempt ... well, that's IF it's a good backup ... code + sql dump + moodledata/filedir (min).

Anyhooo .... glad it's 'fixed'.

'SoS', Ken


Average of ratings: Useful (1)
In reply to Ken Task

Re: HTTP ERROR 500

by Blue Axis -
well thank you very much sir, if you can show me or give me a link to a good tuto about how to upgrade correctly to 3.8, i'm on 3.6
thank you thank you and thank you again for your ad and for your time, i realy appreciate. god bless you.