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

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

$
0
0
by sachin sharma.  

I followed following steps:

  1. Copied moodledata folder to /var/www with 0777 access rights
  2. I created db in mysql and did mysqldump of my db sql file into it
  3. I downloaded new moodle 3.3.6 and copied into /var/www/html with 0777 access rights
  4. I changed config.php file with all required settings 
  5. I ran on browser and got This site is not available currently.



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

$
0
0
by Emma Richardson.  

That sounds more like a web server error than a moodle error...do you have your web server set up correctly?

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

$
0
0
by sachin sharma.  

In the same server another moodle is running successfully.

As i mentioned earlier i have only moodledata and moodle sql file, i dont have the original moodle folder.

I have downloaded the moodle. Does that effect?

Should i try to do it in different server?


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

$
0
0
by Ken Task.  

In a previous posting you described where you placed the files/moodledata and what you did with the db sql dump.   All of that looks correct.   Now you say you have another instance of a moodle on the same server and it's working just  fine.

Questions ... the instance of the moodle that works:

Where is it's code directory?   Where is it's moodledata directory?  What's it's DB name? (check it's config.php file)

In the instance you are trying to recover having only SQL dump and moodledata:

Where is it's code directory?   Where is it's moodledata directory?   What's it's DB name? (check it's config.php file)

Are you running virtual apaches?  1 server that responds to multiple fully qualfied domain names? Example: moodlea.somenet.net and moodleb.somenet.net

Are you running these moodle instances in subdirectories of the same fully qualfied domain name?  Example: Moodle A in in server.somenet.net/moodle and Moodle B (the one you are attempting to restore) is at server.somenet.net/restoredmoodle

Have you checked the config of virtuals?  Is the site you are attempting to restore in the maintenance mode?

Have you checked web server error logs?

'spirit of sharing', Ken


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

$
0
0
by Visvanath Ratnaweera.  

Copy some simple HTML file to the moodle directory (where you have config.php) and try to access it through the web server, with something like http://yourcurrentmoodle/test.html. The content of the HTML should appear. If not the problem is with the web server (not Moodle).

Putting Moodle data on nas storage

$
0
0
by Ahmed Ibrahim.  

Hello all;

I am going to install moodle on a CentOs VM and I want to put moodledata on a nas storage on network that can be access by an IP

Will I install moodle locally then change it into config.php? what can I write into it for that?

Or will I install it directly and put moodledata on nas storage? and how can I do that?

Thanks in advance

Re: Putting Moodle data on nas storage

$
0
0
by Ken Task.  

Suggestion ...

On a typical CentOS 7 code directory is in /var/www/html/ (all the moodle code in here).

moodledata is typically in /var/www/ ... a directory that apache user/server already knows about.

In moodledata, **leave all but filedir** in moodledata ... those directories are muc,localcache,cache, sessions, etc directories ... why?  Speed ... apache/php talking to moodle code which accesses directories in moodledata is fastest when accessed by localhost ... ie, same server.

The filedir directory in web server's moodledata is a mount point to the NAS @ nasserver/moodle/moodledata/filedir.

If you run automated backups might also make another mount point /var/www/autobackups that goes to the NAS.   Course backups could also have a directory of it's own that could be yet another mount point.

The files uploaded to a moodle is in filedir.

The following might help:

https://console.bluemix.net/docs/infrastructure/network-attached-storage/mount-nas-storage-linux.html#mounting-nas-storage-in-linux

'spirit of sharing', Ken

Re: Cannot login after upgarding to 3.5.3


Fatal error. PHP version 7.3 is not supported in lastest 3.5 Moodle

$
0
0
volgens Manuel de la Torre.  

Today I got a PHP version 7.3 is not supported in the latest build of Moodle 3.5+. Will I have to downgrade PHP to version 7.0?

Please Help!

Manuel.


Re: Fatal error. PHP version 7.3 is not supported in lastest 3.5 Moodle

$
0
0
volgens Dan Bennett.  

PHP 7.3 isn't released yet (it's only a release candidate, full release is due in December). So you are best off downgrading for the time being!

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

$
0
0
by sachin sharma.  

i did that, the file is working.

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

$
0
0
by sachin sharma.  

Questions ... the instance of the moodle that works:

Where is it's code directory? 

/var/www/html

Where is it's moodledata directory?  

/var/www

What's it's DB name? (check it's config.php file)

exam

In the instance you are trying to recover having only SQL dump and moodledata:

Where is it's code directory?  

/var/www/html

Where is it's moodledata directory? 

/var/www

 What's it's DB name? (check it's config.php file)

euniv

Are you running virtual apaches? 

yes

1 server that responds to multiple fully qualfied domain names? Example: moodlea.somenet.net and moodleb.somenet.net


Are you running these moodle instances in subdirectories of the same fully qualfied domain name? 

yes

 Example: Moodle A in in server.somenet.net/moodle and Moodle B (the one you are attempting to restore) is at server.somenet.net/restoredmoodle

Have you checked the config of virtuals? 

yes

 Is the site you are attempting to restore in the maintenance mode?

checked- not in maintenance mode

Have you checked web server error logs?

[19/Nov/2018:16:46:07 +0530] "GET /moodle/ HTTP/1.1" 200 408 "-""Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15"

Apologies for again stressing on the fact the the instance i am trying to recover, i have only moodledata folder and sqldump, i dont have moodle code so i am using the fresh code downloded from moodle site for same version


Re: Fatal error. PHP version 7.3 is not supported in lastest 3.5 Moodle

$
0
0
by Howard Miller.  

7.2 is fine but, as has been pointed out, there isn't a stable 7.3 yet.

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

$
0
0
by sachin sharma.  

Attached screenshot

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

$
0
0
by Ken Task.  

First, the test.php file only proves that your server can serve out php files.   Better would have been to create 2 text files ... orgmoodle.txt in the directory of the moodle that's working ... that file contains just one line ... no html/php ... 'org moodle'.    And another newmoodle.txt in the directory of the moodle that you are trying to restore.   It contains 'moodle to restore'.

Since apache can serve out .txt files.   Then using a browser, attempt to access both .txt files.

From the answers you've given, sounds like one is confused still .. might be due to questions ...

However, two moodle sites need their own code directory, their own moodledata directory.

Example of 2 moodles on a CentOS 6/7/Ubuntu server NOT using virtual apaches that respond to a different FQDN is structured like the following.   The urls to them would be:

https://fqdn/moodle and https://fqdn/moodle-2

Directory structure ...

/var/www/html/moodle - one that works.

/var/www/html/moodle-2 - the one for which you don't have the code from old site

/var/www/moodledata - is in config.php file of the site in /var/www/html/moodle/

/var/wwwmoodledata-2 - is in the config.php file of the site in /var/www/html/moodle-2

Hoping that helps to clarify.

'spirit of sharing', Ken



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

$
0
0
by Visvanath Ratnaweera.  

OK.

Next possibility: unsuppored PHP versions. Add a line 'phpinfo();' to the test.php and get all the PHP info and compare them against the requireded versions.

Another possibility: 'config.php' damaged, by editing in Windows for example. Look for unwanted 'CR' characters (if your server is Linux) .

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

$
0
0
volgens sachin sharma.  

Both txt files ran. Attached snapshot

Also the i have followed the same structure u have defined.

droevig

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

$
0
0
volgens sachin sharma.  

can you please guide on snapshot attached.

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

$
0
0
by Ken Task.  

Last screen shot shows a moodle inside a moodle?!!

/var/www/html/ ... there is no config.php file at this level.  This is apaches
document root.

/var/www/html/exam/ is there a config.php file at this level?


Is there a config.php file or a config-dist.php file in /var/www/exam/moodle-2/

We have used moodle's internal ipblocking and turned it on.
The DB veriables:

allowedip   
blockedip

In config.php file of both sites, add the following lines:

$CFG->allowedip='';
$CFG->blockedip='';

Any variable defined in config.php overrides DB settings.  You do not need to restart apache or reboot server.  Changes to config.php take affect on next click.

As far as structure/folder locations 'exactly as described' ... nope.

/var/www/html/exam/ is the original
/var/www/html/moodle-2/ is the one to restore

What you have is:
/var/www/html/exam/moodle-2/.  That's a moodle in a moodle!


Would recommend:
/var/www/html/exam ... leave alone
for the other
/var/www/html/moodle-2/

config.php file for the moodle-2 code would need to be edited to reflect
moodle-2's location/URL, etc.
And the moodle-2 site needs to have it's own data directory.
Example
/var/www/examdata
/var/www/moodle-2data

Does everyone involved in this agree?

'spirit of sharing', Ken


Re: Fatal error. PHP version 7.3 is not supported in lastest 3.5 Moodle

$
0
0
by Ken Task.  

php eol

http://php.net/supported-versions.php

Branch     Initial Release     Active Support Until     Security Support Until
7.0     3 Dec 2015     2 years, 11 months ago     3 Dec 2017     11 months ago     3 Dec 2018     in 13 days

So no 7.0 php would be worth your time.

And 2 cents more ...

Registration with moodle.net does not include PHP version.

Site admins are expected to know.  Wonder how many are relying on provider
(where hosted) to assure all hosted customers are using a supported for security at
least version of PHP?

Story ... allow please ...

Not long back ago, SiteGround had a real battle with customers that hosted Joomla's
with them.  SG had one of those easy install things but no way to update Joomla sites.
Many, many, many vulnerable 1.5.x Joomla sites on SG.  Even though SG may have
contacted customers, customers hadn't a clue as to how to upgrade.   To make matters
worse, Joomla itself had no 'easy' path to from 1.5.x to 2.5 - plus released a version 3 to boot ... no hyperjump possible.

Result: customer's didn't upgrade.  SG finally had to get tough ... told customers if they did not upgrade from their 1.5.x their sites would be disabled.

Hmmmm ... Moodle doesn't have either update nor upgrade built in.

Now if I were a blackhat and had an exploit that I had tested vs php 7.0 and it was known to work on 7.0.x sites, I'd wait til the day after the EOL date (14 days from now) to have maximum
impact on sites attacked ... owned, etc..

Moodle:

Moodle 3.5.x

https://docs.moodle.org/dev/Moodle_3.5_release_notes

    PHP version: minimum PHP 7.0.0 Note: minimum PHP version has increased since Moodle 3.3. PHP 7.1.x and 7.2.x are supported too. PHP 7.x could have some engine limitations.

Wouldn't it be nice to get a heads up from Moodle concerning version of PHP?  Should environment check now be updated to inform Moodle admins?

My 2 cents ...

'spirit of sharing', Ken


Viewing all 46779 articles
Browse latest View live


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