Quantcast
Channel: Installing and upgrading help
Viewing all 46785 articles
Browse latest View live

Re: Maximum execution time of 600 seconds exceeded

$
0
0
volgens Rick Jerz.  

Have you verified this max_execution_time in your Moodle by going to Administration, Server, php info, and then search for "max_execution_time?" Does it show "5000?" Sometimes some people edit the wrong php.ini file.

Maybe Tim will see this conversation and know what is going on.


Re: SQL Tables

$
0
0
volgens Rick Jerz.  

I have encountered this problem when I was using a low-cost hosting plan, claiming to have "unlimited" everything.  Suddenly, they say "Your database is too big." I say "But I thought this plan was Unlimited." They say "Read the fine print!"

So I have to agree with Emma, it's time to find a new plan or a new hosting company.

You haven't told us anything about your plan, hosting company, or server.  So I am just making assumptions.

Are you running more than one Moodle on your server, maybe some experimental Moodles?  Or other "table" heavy applications?  If so, can you remove them?

dataroot directory problem

$
0
0
by Ahmed Ibrahim.  

I am trying to install moodle and I need to put moodledata on server A and install moodle on other server B

I did a directory named dataroot on server A and installed virtual host to be accessed through http://A.A.A.A/moodledata and I accesses it through google chrome and gave permissions to apache to read/write on it

I stared installing moodle on Server B but when I asked to put the dataroot directory, I put it http://A.A.A.A/moodledata but I received an error message Data directory (http://A.A.A.A/moodledata ) cannot be created by the installer

I changed the dataroot directory by deleting http so that it is now A.A.A.A/moodledata and it is accepted but when I finished I received an error  $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.

and when I trying to install moodle again, I receive the same error without allowing me to complete the installation

What do you suggest?

I am trying to install Moodle 3.5.3 on centos7

Thanks and best regards


Re: 3.5.2 Clean Install issues

$
0
0
by Eric Katchan.  

For those interested, I think I found the problem.  While running a cron on the new site a large number of errors occurred with the

core\task\build_installed_themes_task

The error indicated :
Fatal error: Maximum function nesting level of '256' reached, aborting!  

Following some research, it appears to be related to the ZEND_EXTENSION: XDEBUG.

I commented it out of my php.ini and reran the cron.  It happily completed the ad hoc task and surprisingly I was able to try the BOOST theme with no issue!

Hope this can help other users.

Eric

Re: reinstall Moodle from old db mysql file and moodledata folder

$
0
0
by sachin sharma.  

Hi Ken

Thanks for guiding, I am new to the forums.

I have followed all the steps and i am thank-full for all the help

Re: Maximum execution time of 600 seconds exceeded

$
0
0
by Shahnawaz Khan.  


Hello Rick,

As suggested above, unable to verify the same since server is all ready in up gradation process. but some how this issue is fixed. 

Next day morning restarted server two times (Hard boot) . then again execute the up gradation . Its successfully upgraded all modules and entire database.


Regards,

Shahnawaz Khan   

Re: dataroot directory problem

$
0
0
by Ken Task.  

The dataroot is a file system.

Brief explanation ...

Install the moodle on server and at first give it a local (same machine) path to the data root ... in CentOS 7 that could be /var/www/moodledata

The 'lions share' of storage will be filedir in moodledata.

Now the tricky part ... create a mount point on the moodle server that mounts a remote file system with plenty of space available for moodledata/filedir.

There's all sorts of kinds/ways ... so take a gander at:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/sect-using_the_mount_command-mounting

If you are remotely hosted, on systems that offer options for mounted devices, check out the hosting providers docs for that.   Example: Rackspace.   Real example (although slightly altered as not to share too much info):

[root@server ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      158G   35G  117G  23% / - this is where the moodlecode and databases reside ... moodledata here too see *filedir
srv          1.0P     0  1.0P   0% /mnt/gbucket - a Google Bucket ... which I use for backups.
/dev/xvdb        99G   60M   94G   1% /mnt/data - *filedir is a directory in /mnt/data/ for one of the moodles on this server.

The reason for the mount point only for filedir?    The other directories in moodledata, such as sessions and the caches are best/fastest if they  are on the same server as the code/web service.

OR ... one could setup the mount point in advance and test read/write to it first, then. rather then doing a web based install of moodle, copy config-dist.php to config.php then edit manually config.php where you can give the mount point path in advance of the installation.   Install via command line moodlecode/admin/cli/install.php - which excludes the apache/nginx or whatever web service you've set the server - just php and db server talking then.

Some notes on moodledata worth a read:

https://docs.moodle.org/35/en/Installing_Moodle#Create_the_.28moodledata.29_data_directory

'spirit of sharing', Ken



Re: dataroot directory problem

$
0
0
by Ahmed Ibrahim.  

I tried this and wrote the path but I received the above error

How can I check that moodledata directory on IP Address A is accessed through IP Address B? How can I check that?


Minor updates with GIT

$
0
0
by Koen Vanderhoeven.  

Hi,

I was wondering how I can update Moodle with GIT. I don't want to automate major upgrades but only minor updates. How is this possible? I have seen the official Moodle GIT help concerning upgradeing Moodle with GIT but I cannot find where I can specify which updates I want to be made and which not.

Best regards,
Koen


Re: Maximum execution time of 600 seconds exceeded

$
0
0
by Rick Jerz.  

Good news.

Well, maybe the max_execution_time was changed, but your server needed to be rebooted or restarted in order for the change to take effect.

Now that your Moodle is up and running, for your own curiosity, verify (as described above) what your max_execution_time is.  This will close the loop.

Re: Can"t login afther updat 3.5.2+ 10-11-2018

$
0
0
by Moses M. Mwebaze.  

I had a similar issue. I upgraded 3.1 to 3.5 and no user was logging in.  I picked the line: $CFG->disablelogintoken = true; and fixed it in Config.php then problem solved. 

Honestly, I don't know how vulnerable this line could be (authentication) but I hope someone can advise.  

In the meantime, thanks

Re: dataroot directory problem

$
0
0
by Ken Task.  

The remote file systems have to be tested for access via command line.  On CentOS 7 remember that it will be the 'apache' user that needs access in Moodle.

Testing example ... just one ...

Example: have moodledata on server A that has a mount point for filedir which resides on server B.

To test from command line, sudo as apache user and copy a file to filedir.   Then remove that file.

sudo -u apache cp somefile /path/to/mountpoint/filedir/

Then

sudo -u apache rm /path/to/mountpoint/filedir/somefile

apache user has to have the ability to read and write so filedir has liberal permissions on the remote system - rwx.

If that works, then moodle code should be able to work.

'spirit of sharing', Ken

Moodle 3.5.3 - Documentation - Oauth2

$
0
0
by Marta de Souza.  

Hi all,

I've looked far and wide and I must say the search does not filter down this forum very well.

I've also gone thru the documentation andcould not find anything straightforward to help with the new Oauth2.

There is a lot going back to the old plugin that is not supported in version 3.5.3

I've also watched videos, googled around and it seems one needs a degree in rocket science to get this working.

I also don't know if I have to upload all the accounts via CVS as I think this detracts from the idea of allowing people to authenticate using a Google authentication page.

Having said that I've found enough to create a project in Google Developers site to get the client ID and secret and fed it back into Moodle but when I try to use one of the accounts in my domain to login it does not work.

Any help appreciated.

Regards,


Marta

Re: Moodle 3.5.3 - Documentation - Oauth2

$
0
0
by Mary Cooch.  

Hello. If you can tell us which parts of the documentation on OAuth2 services need improving,that will be helpful, thanks. There is also specific documentation for the OAuth 2 Google service Please let us know how it can be improved.

Re: After move to VPS students can't submit assignments

$
0
0
by sam K.  

I sat down with someone who is more proficient in Linux and here is what he found.

the only owner in the website was my account.

He changed the permission on moodledata to 777 which ALMOST worked.

the submission box appeared, and I could insert a file, but it wouldn't finalize the upload.

He then tried setting the file to 0775.  

He also set /filedir to 0775.

That worked.  He surmised that maybe Moodle was smart enough to not allow 0777. 

Things are apparently working now.  I was able to upload some assignments and grade them.

Thanks for your help.


Re: Moodle 3.5.3 - Documentation - Oauth2

$
0
0
by Ken Task.  

First, agree with Mary and do encourage you to re-read links she provided.

Now from my own perspective/personal experience ...

Gonna ask lots of questions cause you've not given us much to go on - don't have to respond to any particular question ... if you did it and the topic of the setup item is correct, you've double checked, etc. then move onto the next.

I take it the old plugin is this one:
https://moodle.org/plugins/auth_googleoauth2

which has:

"Plugin end of life starting from Moodle 3.3"

Used it.  It worked well, but alas, things move forward ... and now Moodle has it built into core.   That's a plus in my book, but, there isn't any utility to convert exisiting accouints using Google Oauth 2 old plugin to new built in Google Oauth2. sad

You have discovered/know about CSV for users, but in my experience with. converting a site from manual and email to a saml2 plugin discovered there were some fields one could not change via CSV file - auth field ... only if that field was already set to manual (that might have changed by now, dunno).

If you go this route (CSV) create a dummy account and work only that dummy account ... nothing global yet.

AND, don't forget to be religious about backing up your DB before a tinker session working on this.

Did you disable the old googleoath2 authentication in the your moodle?
At one time, one had to add a line to a login form ... did you remove that line or was yours the version that finally 'injected' the G+ login button on the left under the normal login boxes?

https://docs.moodle.org/35/en/OAuth_2_Google_service

Is the 'call back' URL one had to enter into Google config of the account being used for IAM authentication changed?

When you configured the new with the client key and secret, were you sure that *NO* blank spaces were either in front of the key and or secret?

Did you take the time to create or have setup an Oauth consent screen?

How about domain verification?

So what does 'does not work look like'?  What happens after it's configured and you attempt to use the new?

I had, at one time, an older site that used the old and had to resort to editing the mdl_user table directly in order to keep all accounts on that system with the same ID numbers.  Live site and students all ready using courses - which am guessing is your same situation.

Here's what needs to be changed in mdl_user ... from notes at that time:

In/on a Moodle 3.3 that cannot run the old plugin:

mysql> mysql> select id,auth,username,firstname,lastname,email from mdl_user where auth="oauth2";
+----+--------+------------------------+-----------+----------+------------------------+
| id | auth   | username               | firstname | lastname | email                  |
+----+--------+------------------------+-----------+----------+------------------------+
|  4 | oauth2 | mine@gmail.com      | Ken       | Task     | mine@gmail.com

On a 3.2 that does use the **old plugin**:

mysql> select id,auth,username,firstname,lastname,email from mdl_user where auth like "google%";
+----+--------------+---------------+-----------+----------+----------------------+
| id | auth         | username      | firstname | lastname | email                |
+----+--------------+---------------+-----------+----------+----------------------+
|  6 | googleoauth2 | social_user_1 | Ken       | Task     | mine@gmail.com


Note the differences
the auth column is different .. ** key to conversion is the username **
Neither had passwords in the mdl_user table ... that's a plus.

Had to do DB queries to change the values - sorry didn't record that query. :|   And I've not internalized DB queries that do 'magic stuff' so am hesitant to provide one - I don't like being responsible for 'wrecking' others' Moodles! smile

If you take this approach to fix, do backup your database and know how to restore it before working with queries.

'spirit of sharing', Ken


Error with uploading images and graphics and files

$
0
0
by mr lee.  

Thanks for this script, but I have errors with uploading files and images and also the survey graphics..

I am using unix system and every thing else runs without problems.

The error for images is:

Fatal error: Unable to open /u/web/sigijo/training_center/user/pix.php/2/f1.jpg in Unknown on line 0


The error for survey graphics is:

Warning: TT_Load_Glyph problem in /u/web/sigijo/training_center/lib/graphlib.php on line 1293


Warning: TT_Load_Glyph problem in /u/web/sigijo/training_center/lib/graphlib.php on line 1303


Warning: Cannot add header information - headers already sent by (output started at /u/web/sigijo/training_center/lib/graphlib.php:1293) in /u/web/sigijo/training_center/lib/graphlib.php on line 1437


Can you help me?..[URL="https://moodle.org/mod/forum/post.php?reply=0&forum=15&edit=0&delete=0&prune=0&name&confirm=0&groupid"].[/URL]


Re: Moodle 3.5.3 - Documentation - Oauth2

$
0
0
by Marta de Souza.  

Hi Mary,

Thanks for getting in touch so quickly. I did not mean to be rude or to doubt anybody's work but I must be mad then as for the life of me I cannot see any info on the new embedded Oauth2 configuration.

I've followed the route of the Moodle website and gone straight to the Documentation link up top and read it through. Found nothing!

I've followed your first link and got a blank page. Please see attachment. Is this because I don't have permission to access the link?

As to the second link I've found it by googling Oauth2 and Moodle and followed that to the letter. No problems there!

On the forum, when I search for it I only get references to the OLD plugin and to people still struggling to move from their old databases created by the old plugin. I'm on the new version and would like to follow instructions to use the new stuff. I mean to start in a good way following the standards.

Kind regards,


Marta

I'm a noob im moodle. Please help me with my doubts....

$
0
0
by Pablo Murad.  

How are you?

I have a series of doubts about moodle that I can not find, even in English ... Maybe you guys could help me, because as much as I review the administration of the site, I'm lost.



1 - When a registration is done on the site, where do I set up to receive an email saying that a registration has been made? So I can validate it.

2 - Is there any plugin that I can control all the enrollment methods made in the courses or do I have to go one at a time? Ex. All my courses require that I allow the user to enroll, wanted to change this to a self-subscription or something.

3 - When a student sends a "task", I being an administrator, should I receive an alert, or only the teacher receives?

4 - Is there any plugin that I can give breaks between one studied material and another? For example: in a given course I have 4 handouts, if the student marks the 4 without even opening, or if I simply want to send the task, it appears the progress of it, but it would not be fulfilling the necessary workload, so I need a plugin give me at least 2 hours to open one file for the other.



Well, these are the essential ones at the moment, along the topic I will be passing more ...



Thanks to anyone who can answer ...





Re: Moodle 3.5.3 - Documentation - Oauth2

$
0
0
by Marta de Souza.  

Hi Ken,

Thanks for getting back to me.

I've answered Mary's post but am glad to hear from you about your experience.

I guess I did not explain myself thoroughly. Version used is on the heading of the message. English is my second language, so pardon my verbiage.

This is my first experience with Moodle.  We've never had a Moodle site before.  Managers want a Moodle site and it was down to me to set one up with no budget and no help. I'm the only IT for the whole of our college, for everything, so one thing I don't have a lot is time to tinker with new stuff, so any help is appreciated. I didn't have a clue as to how Moodle worked before I started reading about it. I'll also be the person to have to setup courses in it later on too. Managers haven't got a clue as to what it takes to have and maintain a Moodle site working.

I'm using a Windows server with PHP and MSSQL. This alone took me ages to setup as most guidance is for a Linux server but I've finally got there and my Moodle site is visible and recognised by Google.

About your questions:

(1) - When you configured the new with the client key and secret, were you sure that *NO* blank spaces were either in front of the key and or secret? yes

(2) - Did you take the time to create or have setup an Oauth consent screen? yes

(3) - How about domain verification? yes, verified.  We have a domain in Google for education, so domain verification already existed and verification for our moodle subdomain was a easy.

(4) - So what does 'does not work look like'?  What happens after it's configured and you attempt to use the new? I enter an existing Google username and password (in our domain) and it says the account is not set. I don't have screen shots for that.

Since I've posted I had some progress as I read about enabling both Oauth2 and emails authentication under plugins and the result of which I am now getting a button for login with Google. The interface seems a bit confusing as it seems we have to type the email and password on the fields on screen but then click on the Google button to progress. If I don't fill those fields I get a 404 page next after clicking the Google button.

I'll keep tinkering on my spare time.

Kind regards,

Marta de Souza

Viewing all 46785 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>