As i wrote i did an export in phphmyadmin and copy/cloned data and moodle- the servers get the same ip and hostname, so dont think i should run any replace cmd. ?
It still gives me "reading problems"
Enable debugging in config.php, more details should then appear with the error. A screenshot of the error might help us understand what you're seeing.
Hi Asar, all is well now. I followed your tutoria to install Moodle, but the issue happened after the installation.
My PHP version is 7.3.3 Non-Thread safety.
Thanks,
Claudionir
Hello, I recently installed Moodle 3.11 on an Ubuntu 20.04 server running Apache 2.4, PHP 7.4 and MySQL 8.0, located at https://scuola.itolman.net
I often get a "TypeError: Cannot create property 'stack' on string 'Forbidden'" error when visiting some pages of the site - most often when I try to use the "Messages" and "Dashboard" pages of Moodle, like in this screenshot:
Usually I need to reload the page to workaround this problem.
Sometimes I even get a "403 Forbidden -You don't have permission to access this resource." error page from Apache server:
Again, reloading the page seems to work around the problem.
Where should I look to try to understand and fix this problem?
Thanks in advance,
Gerlos
[Sat Jun 12 00:27:53.398305 2021] [evasive20:error] [pid 33171] [client xx.xx.xx.xx:60850] client denied by server configuration: /var/www/scuola.itolman.net/lib/ajax/service.php, referer: https://scuola.itolman.net/my/index.php?lang=en
Welcome ... glad you resolved.
For those who might find this thread ...
One of the reasons I gave up compiling AMP was updates. Couldn't mix a OS repo upgrade (OS package manger) to any piece of compiled AMP stack. While compiled AMP stack did allow running well on non-server class workstations that were beefed up a little, the frequency of updates and upgrades using compile meant longer downtime.
One more piece of advice ... and now would be a good time for ya ... install/and maintain core moodle code via git. See
https://docs.moodle.org/311/en/Git_for_Administrators
*by far* the best way to maintain moodle core code - fewer moving parts - and literally takes only minutes ... less prone to human error also!
'Spirit of Sharing', Ken
Hello,
I have installed moodle 3.10 on ubuntu 20.04 at digitalocean droplet with the help of command line instructions given at
https://docs.moodle.org/311/en/Step-by-step_Installation_Guide_for_Ubuntu.
I am not at IT professional and I was able to install moodle properly, thanks for the document but got stuck in the last of the document which suggests some performance tweaks like Opcache, cron job and clamAV settings. Please excuse me if I am asking very basic points
Although the documents and resource material is very good but still I have some confusions to enable them. The document says
The documents says to add opcache settings to a separate file (what I understand) and suggests a command which is
sudo vi /etc/php7/apache2/conf.d/05-opcache.ini although I think it should be /etc/php/7.4/conf.d/05-opcache.ini
At the above there is a link to settings that need to be added https://docs.moodle.org/26/en/OPcache the required settings are
[opcache]
opcache.enable = 1
opcache.memory_consumption = 128
opcache.max_accelerated_files = 10000
opcache.revalidate_freq = 60
I have observed that PHP.ini file also contains these opcache settings lines that are suggested above,
So, my confusion is
(1) Should I create opcache.ini as mentioned in the document or uncomment these instructions in the PHP.ini file.
(2) the document link also suggests one command zend_extension=/full/path/to/opcache.so
Should I need to add this to the PHP.ini file or ignore it?
I have attached the screenshot of PHP info for Zend Opcahe section from my Moodle instance, if required
PHP reads configuration from php.iniand from other .ini files depending on the server's operating system and configuration. So it's sometimes difficult to describe exactly where changes should be made.
However from your screenshot OPcache is enabled and running so you're most of the way there. You don't need zend_extension=/full/path/to/opcache.so.
The only thing you should do is check the OPcache settings shown in your PHP info match the recommended settings:
(The link to the OPcache documentation in the Ubuntu page was to the old Moodle 2.6 page, …/26/en/OPcache. I've updated this so it links to the current version of the OPcache page).
I'm getting the below error while running the moodle installation on ubuntu 20.04. This happens during the configuration of DB settings.
"Error: Database connection failed
It is possible that the database is overloaded or otherwise not running properly.
The site administrator should also check that the database details have been correctly specified in config.php
A mysqldatabaseserver on same server as code set to localhost would not use TCP/IP port for DB server, but it would use 'socket' by default. So do not fill in the port ... leave blank.
IF there is already a config.php file in moodle code directory, edit the config.php file with a text editor and in the section for DB variables, set both the following as shown:
'dbport' => '',
'dbsocket' => '',
Also ... you've posted in Developers forum ... don't think this is a developer question. There is a forum for installing and upgrading. So, next time you post, please pick an appropriate forum for the problem. Plus it does help to have some info about Moodle version as well.
'SoS', Ken
Thanks for moving ...
Not so 'strange' if not familiar with MySQLDB server on localhost ...
* That line in that file:
ob_start();
* $conn = new mysqli($dbhost, $dbuser, $dbpass, '', $dbport, $dbsocket); // Connect without db
$dberr = ob_get_contents();
ob_end_clean();
$errorno = @$conn->connect_errno;
Am assuming OP did create the DB and knows creds prior to trying install. MySQLD service has to be running to do that.
Am also assuming that OP has followed:
https://docs.moodle.org/311/en/Step-by-step_Installation_Guide_for_Ubuntu
'SoS', Ken