by Jon Bolton.
Can you please change your displayed name on this site. You are not a Moodle admin on this site. This is a help forum for many people and it could be very misleading if people think they are being responded to by Moodle HQ.
by Jon Bolton.
Can you please change your displayed name on this site. You are not a Moodle admin on this site. This is a help forum for many people and it could be very misleading if people think they are being responded to by Moodle HQ.
by Mahmood Naderan.
Yes thank you very much. I am moving forward.
Currently, there is a 2.8 version installed on our server (/var/www/html/courses). With 3.2, I have created /var/www/html/courses_new and set the moodle data folder as /var/www/moodle32data.
Now, in the next step, it is asking about the database settings. I just want to be sure that the new installation doesn't overwrite the previous settings because that old version is now up.
So, just want to be sure that the following settings are OK
Database Host: localhost
Database Name: moodle32
Database User: moodle32
Tables_prefix: mdl32_
Database port:
Unix socket:
Note that the last two are empty
Do you agree with that setting?
by David Ruana.
Thank you Marcelo for sharing the solution with us. I have been trying to solve it for long hours but still unsuccessful.
I do not think that my hosting provider will allow me to change the nginx configuration in the way that you described. Not sure if they are using nginx at all.
Do you know any alternate way to reach to the same solution?
by Howard Miller.
Have you a firewall anywhere that might be blocking cookies?
Did you add ?> to the end of the config.php file (if so, delete it)?
by Mahmood Naderan.
When I want to install 3.2 on a php7 enabled apache server, I get this error
Error: database driver problem detected
The site administrator should verify server configuration
PHP has not been properly configured with the MySQLi extension for it to communicate with MySQL. Please check your php.ini file or recompile PHP.
There is a long discussion at https://moodle.org/mod/forum/discuss.php?d=164020 but didn't find a clear answer for that. The OS is ubuntu-14.04
What should I do exactly? Is that a problem with apache and mysql? or moodle and other guys?
by Emma Richardson.
The message is pretty clear - you have a problem between php and mysql and you should check your php installation.
by Ken Task.
@all in this thread ...
Installing Solr Search ... Moodle 3.1.x - CentOS 6 stock ... nothing special - below is also attached as a text file for easy copy and paste into terminal. Just stepped through this on a VB CentOS 6 ... Moodle 3.1 ...
selinux is set to permissive
As root user
yum install java-1.8.0-openjdk.x86_64
yum install curl-devel
yum install libxml2-devel
pear install pecl/solr
chmod 755 /usr/lib64/php/modules/solr.so
nano /etc/php.d/solr.ini
* insert into above file: extension=solr.so
java -version
cd /root
wget http://apache.org/dist/lucene/solr/5.5.4/solr-5.5.4.tgz
tar zxvf solr-5.5.4.tgz
mv solr-5.5.4 /opt/solr/
cd /opt/solr
cp README.txt /var/www/html/solrreadme.txt
* you can now use http://site/solrreadme.txt to read the readme while
still working in the terminal window/scree
php -m |grep solr
* to check if solr is known to PHP - command will show only 'solr'
service httpd restart
* still in /opt/solr/
bin/solr start
bin/solr create -c moodle
* above command looks strange but execute them from /opt/solr/ or they
won't work.
cd /etc/sysconfig
nano iptables
* duplicate the ssh line and on the duplicated line change port 22 to 8983 and the note that the line is for solr rather than ssh
/sbin/service iptables restart
yum install nmap
nmap -P0 -p 8983 [IPaddressofserver]
* nmap should show port 8983 open and not closed or filtered
You should now be able to use browser to go to:
http://IPADDRESS:8983/solr/
and see the admin panel of Solr
The Moodle index should be there.
Now config Moodle's solr search.
Admin menu -> Plugins -> Search -> then both Manage global search
Step through the 'Steps' in order shown.
Eventually everything should show green.
also, should setup a start script for solr so that it starts upon
reboot of server.
Create a startup script in /etc/init.d/ called solr
Contents of /etc/init.d/solr
---- start below -----------
PIDFILE=/var/run/solr.pid
SOLR_HOME=/opt/solr
START_COMMAND="$SOLR_HOME/bin/solr start -p 8983 -noprompt -m 1g"
NAME="Solr"
start() {
echo "Starting $NAME"
if [ -f $PIDFILE ]; then
echo -n "$PIDFILE exists. $NAME may be running."
else
str=`$START_COMMAND`
pid=`echo $str | grep -o "pid=[0-9]*" | grep -o "[0-9]*"`
if [ "$pid" == "" ];
then
echo "[FATAL ERROR] Failed to extract pid. Exiting!"
exit 1
fi
echo $pid > $PIDFILE
fi
return 0
}
case "$1" in
start)
start
;;
stop)
echo "Stopping $NAME .."
$SOLR_HOME/bin/solr stop
rm -f $PIDFILE
;;
status)
$SOLR_HOME/bin/solr status
;;
restart)
$0 stop
#sleep 2
$0 start
;;
*)
echo "Usage: $0 (start | stop | restart | status)"
exit 1
;;
esac
exit $?
---- end init.d/solr
To set ... after above file is in place and saved.
chmod ugo+x solr (make it executable)
/sbin/chkconfig --add solr
Test the script:
/etc/init.d/solr status
/etc/init.d/solr restart
See for yourself:
ps aux |grep java
Consider installing Webmin to help admin the server.
Webmin is an open source cPanel ... based on Perl
has it's own web server run from default port 10000 but
during installation one could set it up on 8080 or other port.
To see realtime solr logs:
tail -f /opt/solr/server/logs/solr.log
'spirit of sharing', Ken
by Ken Task.
What do you get if you issue the following as sudo/root user:
php -m |grep mysql*
That should respond listing any php extension that has mysql in it ... mysqli should appear.
In config.php file of the Moodle then,
$CFG->dbtype = 'mysqli';
$CFG->dblibrary = 'native';
no port necessary as linux based boxen use socket connection if the DB server is locathost.
Also check apache error log for verification/hints/clues.
Use apt-get to install what you need.
'spirit of sharing', Ken
by Howard Miller.
It would help to know what operating system this is and how PHP was installed.
For example, on Ubuntu it could be as simple as
sudo apt install php-mysql
by Annie Price.
Hi Usman,
Been away for a couple of days, have come back to try to start again.
I can find the link in admin to set the backup defaults (in 2.4) but what I can't find is an actual backup file or how to download it.
Any chance you can point me in the right direction?
by Annie Price.
Scratch the above as I have found out where to do the backups.
I have one further question - as I have meta courses if I back up the meta courses will they backup the child courses or do I have to back up each individual course?
by Gary Marsh.
Throughout the years of
working with Moodle, whenever I encounter a Moodle problem, I refer
to Moodle documentation and if I can't find the solution there, I
turn to the relevant Moodle Forum with hope to find an answer I can
understand. Failing that, I post an explanation of the problem
and, in every instance, have received prompt, competent responses
that have always led to problem resolution.
Normally, Moodle users with a similar problem, benefit by reviewing the forum discussions that led to the problem resolution. However, in this instance, one can read that Ken Task had sent a private message to me suggesting that the dialogue concerning my problems may be too much for a moodle forum and perhaps direct conversations might be a better option ... boy, was that suggestion correct and I want to comment on it's success to achieve resolution of my problem.
If it were not for Ken
Task, or someone equivalent to his calibre, I am certain my moodle
site would have drifted away toward oblivion. Not only did Ken
migrate the moodle 2.9.4+ site to my new private server, he also
tested and upgraded the site through each step to Moodle 3.1.4. and, in the process he kindly, at the expense of his time and
patience, allowed me to issue the server commands, which provided the
opportunity for me, to begin the Linux learning challenge. I also
observed first hand what he meant by “The 'devil' is in the
details”. There were issues and procedures that Ken handily
dealt with, that this server and Moodle system fledgling would NEVER
have figured out.
I must conclude with this comment ... Moodle is an enormously powerful and complex education software system, freely available in “The Spirit of Sharing” and if it were not for excellent documentation, forums and readily available Moodle 'experts' providing prompt, effective advice, Moodle would not have the popularity it enjoys today! The Moodle philosophy is a model for tomorrow's world.
by Vivek SM.
we have moodle 2.5 and we planned to upgrade to 3.2 so we check everything with 3.2.1+ and today we thought to migrate directly on moodle 3.2.2 but when i upgrade i got the error. any idea regarding this issue.
tool_usertours
Using Windows 2008
PHP 7.0.3
Mysql 5.7
by vysakh b.
Hello Howard,Firewall is not there and closing tag is not there in config.php file
Thanks
Vysakh
by Vivek SM.
Solved : its a bug in moodle
When i change the $CFG->admin = 'xyzadmin'; in the congiguration file
The usertours cannot be installed due to the file admin/tool/usertours/classes/manager.php line 824
$filepath = $CFG->dirroot . '/admin/tool/usertours/tours/' . $filename;
when i change it to
$filepath = $CFG->dirroot . '/xyzadmin/tool/usertours/tours/' . $filename;
then its working fine
may be some one get help from this
by Mahmood Naderan.
OK thank you very much. php-mysql package was needed
by David R..
Finally I could solve it by changing the PHP version in my hosting provider's control panel. Using PHP 7.1.x everything works fine.
by Jon Bolton.
Did you create a Tracker issue for this? It will take much longer to get sorted if not
by Ken Task.
Thank you!
'spirit of sharing', Ken