Morning (from my perspective in Canada anyways)! I woke up to an email between my manager and system admins and other programmers discussing OSes, and our system admins agreed to trying out CentOS! Their biggest drivers for initially picking Fedora before were a) an OS within the RHEL family and b) something that could have Cockpit installed into it, and CentOS fits both of those requirements. Looking forward to taking advantage of the documentation on Moodle!
The next challenge will be connecting to a Microsoft SQL Server database on a Windows server, but we'll cross that bridge (again) when we get to it.
Thanks to everyone who responded,
Jon.
Re: Maximum PHP version? (Moodle 3.7.6)
Upgrading fails because of server timeout - help!
Hello
I was upgrading from Moodle 3.7 to moodle 3.8. All was going well and them my server took too long to respond. and it broke the connection that was running through cloudflare. Now I can no longer go back or restart or do anything. Instead I get a message saying: "Site is being upgraded, please retry later."
I do not have a site backup (stupid me!) so cannot revert to an earlier state.
The situation is not entirely tragic because I had very little on this site, but it is also not good ...
Thanks for any help/ideas...
Andrew
Re: Maximum PHP version? (Moodle 3.7.6)
Been years since I looked into what improvements have been provided by those working with 'panels' on CentOS. Have favored Webmin for years (perl based). Cockpit, however, looks good. Just tried it out on a VB CentOS 7 instance and so far so good.
Like it's terminal ... would mean one less service needed for outside access.
Wonder if there is any add-on modules for specific services ... like MySQL/MariaDB. Will look around.
Thanks for sharing!
'SoS', Ken
Re: Upgrading fails because of server timeout - help!
Only way I can think of depends upon if server had sshd running ... if so, one should be able to bypass CF via ssh by going to the real IP of the server.
Once logged on as root or a user that could sudo -s, one could restart apache service (killing any sessions established), then change to moodlecode/admin/cli/ directory and try the cli upgrade.php script in that directory. php upgrade.php [ENTER]
Does read variables from config.php for parameters.
Good luck!
'SoS', Ken
Could not find a top-level course!
I have installed moodle 3.8 and It was running well past 3 months. Recently migrated the server and now there is an error showing "Could not find a top-level course!" Please help me to solve this.
Further it is showing 20mb database in Cpanel , but once I download it , just only 417kb. what was the wrong , Please help me.
Re: Could not find a top-level course!
Sounds like you suspect migration ... so tell us about how you migrated (from what to what) and how.
There is a reference @
https://docs.moodle.org/39/en/Installation_FAQ#.22Could_not_find_a_top_level_course.22
But that was supposedly fresh install ... although I guess a migration on new server could be considered fresh install.
20MB DB in cPanel but when downloading only 417K is messed up for sure. Open the .sql dump you downloaded in a text editor (it is ascii text). You might see that an error was made using mysqldump ... if DB is MySQL ... mysqldump will function even upon error and dump an .sql file ... the resulting .sql file on error isn't really good for anything but it might give a clue as to why it failed.
'SoS', Ken
Re: Could not find a top-level course!
Thank you very much for your quick response. My moodle is running one of shared hosting company. they are the one who migrated their server from one location to another . They said that all the files have been restored. I can't find any error in mysqldump file(I'm not families with the structure).
How to disable "Forgotten your username or password" link
Since we are using LDAP authentication we don;t need "Forgotten your username or password?" link in the login form. How can I do that?
XAMPP can't see virtual host
The installer always stuck during the last part, the "Creating database/Initializing user account". I managed to bypass this by restarting the MySQL database in the manager-windows, then it proceeds with the installation, but it would be better if it installed without any problems and also it pops out an error the same as below.
I looked at the temp files, and somewhere near the end of the file, I saw these errors:
Warning: mysqli::query(): MySQL server has gone away in C:\Bitnami\moodle-3.7.2-1\apps\moodle\htdocs\lib\dml\mysqli_native_moodle_database.php on line 730
Warning: mysqli::query(): Error reading result set's header in C:\Bitnami\moodle-3.7.2-1\apps\moodle\htdocs\lib\dml\mysqli_native_moodle_database.php on line 730
Error running C:/Bitnami/moodle-3.7.2-1/php/php "C:\Bitnami\moodle-3.7.2-1/apps/moodle/htdocs/admin/cli/install.php" --lang=en --chmod=2775 --wwwroot=http://localhost:80/moodle --dataroot=C:/Bitnami/MOODLE~1.2-1/apps/moodle/moodledata --dbtype=mysqli --dbhost=127.0.0.1 --dbname=bitnami_moodle --dbuser=bn_moodle --dbpass=**** --dbport=3306 --dbsocket= --prefix=mdl_ "--fullname=Test Site" --shortname=testsite --adminuser=admin --adminpass=**** --non-interactive --agree-license --allow-unstable
I already tried reinstalling it a few times, but with the same result. What would be the possible cause of these errors?
Re: Images missing after upgrade to Moodle 3.8.3
as you said, that setting wasn't right in my site, although the line to correct the parameter was in my php.ini and it had worked in previous versions of my Moodle installation.
Actually, the problem was in that php.ini. It used hash signs for comments, which was allowed previous to PHP 7.0. When I migrated to this new version of Moodle, it also required me to upgrade my PHP version... which happens not to accept # and so it broke my php.ini file.
Thanks a lot for your help :D
Re: Installation problem in 3.7.2+
Hi,
I got same problem and I found out that there must be an error in CSS.
view-source:http://YOURDOMAIN/theme/styles.php/boost/1593501375_1/all
will reuslt in
theme was not found, sorry.I was checking if theme-direictery can be read. but found no error.
Until now I did not solve it
Git upgrade 3.8 to 3.9 failed
Hi,
I want to upgrade my git installed moodle on Ubuntu 20.04 from 3.8 to 3.9
It is a fresh 3.8 install with just one extra plugin installed.
I do
git branch --track MOODLE_39_STABLE origin/MOODLE_39_STABLE
git checkout MOODLE_39_STABLE
and get an error message which I attached as a file.
What went wrong?
Re: How to disable "Forgotten your username or password" link
Re: Git upgrade 3.8 to 3.9 failed
Dunno ... I take it you never got to git pull?
What does version.php file say at code root?
fgrep '$release' version.php
git branch -a
Could try:
git reset --hard
Have a backup of code root?
'SoS', Ken
Moodle + docker (or other local development solution) with existing site
Hi,
First of all, apologies for any lack of information or poor structure in this question. This is my first post here - seems like you have a great community!
I am trying to set up a local development environment for an existing Moodle 3.9 codebase, moodledata and db. My local OS is macOS Catalina.
I am looking into several options and am flexible in terms of approach (although in the long term I prefer something like docker), but my lack of knowledge or other issues are getting in my way. These are the approaches I tried and the result:
1. https://hub.docker.com/r/bitnami/moodle - I get a vanilla site going - but cannot figure out how to use it with my moodle codebase, moodledata folder or db (where to include the paths?).
2. https://github.com/moodlehq/moodle-docker - I get a site going, with my moodle codebase using export MOODLE_DOCKER_WWWROOT=/path/to/moodle/code as per instructions - but no moodledata or db (where to include the paths?).
3. MAMP using Moodle4Mac 3.9 from here: https://download.moodle.org/macosx/ - When opening MAMP I get error message “MAMP.app” cannot be opened because the developer cannot be verified. Going into Catalina's security settings and allowing it, the next time I open the app I get the same message but for a different file. This continues ~40 times, after which the Apacheserver starts but not the mysql server. There seems to be some Catalina permissions issue with the app. I tried sudo spctl --master-disable but makes no difference, still get the message about non-verified developer.
Very grateful for guidance.
Vidar
Re: Git upgrade 3.8 to 3.9 failed
Want to avoid reset as I should work without, right?
I have no backup. Is using git not the preferred way to install/upgrade?
Is it possible it has to do with file permission?
fgrep '$release' version.php
$release = '3.8.3+ (Build: 20200626)'; // Human-friendly version name
git branch -a
* MOODLE_38_STABLE
MOODLE_39_STABLE
master
remotes/origin/HEAD -> origin/master
remotes/origin/MOODLE_13_STABLE
remotes/origin/MOODLE_14_STABLE
remotes/origin/MOODLE_15_STABLE
remotes/origin/MOODLE_16_STABLE
remotes/origin/MOODLE_17_STABLE
remotes/origin/MOODLE_18_STABLE
remotes/origin/MOODLE_19_STABLE
remotes/origin/MOODLE_20_STABLE
remotes/origin/MOODLE_21_STABLE
remotes/origin/MOODLE_22_STABLE
remotes/origin/MOODLE_23_STABLE
remotes/origin/MOODLE_24_STABLE
remotes/origin/MOODLE_25_STABLE
remotes/origin/MOODLE_26_STABLE
remotes/origin/MOODLE_27_STABLE
remotes/origin/MOODLE_28_STABLE
remotes/origin/MOODLE_29_STABLE
remotes/origin/MOODLE_30_STABLE
remotes/origin/MOODLE_31_STABLE
remotes/origin/MOODLE_32_STABLE
remotes/origin/MOODLE_33_STABLE
remotes/origin/MOODLE_34_STABLE
remotes/origin/MOODLE_35_STABLE
remotes/origin/MOODLE_36_STABLE
remotes/origin/MOODLE_37_STABLE
remotes/origin/MOODLE_38_STABLE
remotes/origin/MOODLE_39_STABLE
remotes/origin/master
Re: Moodle + docker (or other local development solution) with existing site
Re: Git upgrade 3.8 to 3.9 failed
Want to avoid reset as I should work without, right?
Works for me without reset, however .....
Your git branch -a shows default branch 38
* MOODLE_38_STABLE
and even though MOODLE_39_STABLE is listed above 'master', the * indicates set to 39 branch didn't take - git thinks it's still talking to the 38 branch for some reason.
If executing as root, that 'trumps' any other user/group.
The reset has worked for me in past. Maybe other git users have a better way, etc.
'SoS', Ken
Re: Git upgrade 3.8 to 3.9 failed
https://moodle.org/mod/forum/discuss.php?d=403280#p1627774
https://moodle.org/mod/forum/discuss.php?d=403280#p1628105
Re: Git upgrade 3.8 to 3.9 failed
Isn't git suitable for upgrading moodle and I should prefer other methods?
As you can see only a few files caused the checkout abortion.
Why does git only report those as being locally changed? What made them different?