Internal Server Error 3.9.2

Internal Server Error 3.9.2

by N W -
Number of replies: 5

Hello
Moodle 3.9.1 and fresh install 3.9.2 using Softaculous installer
I'm getting this error message with both installations:

The server encountered an internal error or misconfiguration and was unable to
complete your request.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Also: Syntax error
Unexpected token [ in JSON at position 1432

Can anyone shed any light on this?
I'm tearing my hair out!

Thanks

Average of ratings: -
In reply to N W

Re: Internal Server Error 3.9.2

by Ken Task -
Picture of Particularly helpful Moodlers

Softac is a commercial product.   Don't think Moodle.org has any agreement to work with it .. matter of fact, think it's perl based cause it's usually found in cPanel.  It's not open sourced and no one in these forums can look at code of it.

So ... having said that ... since you've paid to use it .... and provider is basically telling it does X by allowing you to use it, who should you really contact first?   1) provider ... where you host and then 2) the makers of Softac.

This assumes your account is using a supported version of PHP for 3.9.x

Guess you could check web servers error logs for a hint/clue, but that might be the best one can do ... given the error.

See chart:

http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases

And official docs for installing:

https://docs.moodle.org/310/en/Installing_Moodle

Best of luck!

'SoS', Ken

In reply to Ken Task

Re: Internal Server Error 3.9.2

by N W -
Hello Ken
Thanks for your reply
I checked the server logs : SoftException in Application.cpp:630: Could not execute script "/...../lib/ajax/service.php"
Does this give you an idea of what might be the cause?
I'll try a manual install if necessary, but the commercial installer was so much quicker and easier!

Nice to see you still on the Moodle forum, Ken, I remember you helped me several years ago with my first tentative steps with Moodle!
In reply to N W

Re: Internal Server Error 3.9.2

by Ken Task -
Picture of Particularly helpful Moodlers

Yep!  Still here! ;)

Googling for:

SoftException in Application.cpp:630: Could not execute script

finds many hits

More than one of them ... SoftException indicates a permissions error.

Server still running suphp?!!!!

https://www.suphp.org/Home.html

"suPHP is not maintained any longer and will not receive any further updates not even security patches."

Can re-call years ago that suphp didn't like to see anything to have group execute permissions.

So (this won't hurt if I am wrong), change all files/folders group permissions to execute to none.

If you had and used command line:

chmod g-x * -R

group in your case might be the user account login.

If in doubt, check with provider!

'SoS', Ken

In reply to Ken Task

Re: Internal Server Error 3.9.2

by N W -

Hello Ken

The permissions for the public html directory are currently 7 5 5. 

So I should uncheck "execute" to change them all to 6 4 4 ?

Is that what you mean?


In reply to N W

Re: Internal Server Error 3.9.2

by Ken Task -
Picture of Particularly helpful Moodlers

Time to learn ... which is what you require of your students ... so don't excuse yourself from that same 'requirement' cause you *are* the server admin/moodle administrator!

Please see/read/study:

https://www.thegeekdiary.com/understanding-basic-file-permissions-and-ownership-in-linux/

and since you are using cPanel:

https://blog.cpanel.com/how-to-assign-permissions-to-files-and-folders-in-cpanel/

And I'll repeat ... one more time ... can only conclude that Softac did this.   Thus Provider should know how to help customers.

'SoS', Ken

Average of ratings: Useful (1)