I set up a brand new Server with a clean install of Moodle.
When I try to drag and drop in a Scorm Package I get the following error: Error connecting to server.
CLEAN THEME came with Moodle 3.1.1
OS: Centos 7 server w/gui
Web server: apache
DB: MYSQL ver 14.14 Distrib 5.6.39
I have turned on debugging
I have attached what I beleieve to be the PHP error log. The error only happens when I upload scorm packages.
I ran this command to see if it would tell me location of log.
php --info | grep error
The terminal will output the error log location. see attachment.
I also went into php.ini file and turned display errors, 1st line in grep command text file
error_log => no value => no value ... PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in Unknown on line 0
First, you need to fix the missing timezone: http://php.net/manual/en/timezones.europe.php .
Then, from your PHP info no error log is defined so you need to check the error log of Apache and not its access.log.
I fixed the timezone issue by setting it to America/New York. I went o get a copy of the error log and mistakenly moved it instead of copying. Now apache will not start, so moodle will not load.attached is the information I found out when I ran the command:
systemctl status httpd.service -l. I am researching now any help would be appreciated. Thanks
Ran command below to see permissions
[root@localhost /]# ls -laZ /var/log/httpd/
drwx------. root root system_u:object_r:httpd_log_t:s0 .
drwxr-xr-x. root root system_u:object_r:var_log_t:s0 ..
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 access_log
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 access_log-20180211
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 access_log-20180218
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 access_log-20180228
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 access_log-20180304
-rw-r--r--. root root unconfined_u:object_r:httpd_log_t:s0 error_log
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 error_log-20180211
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 error_log-20180218
-rw-r--r--. root root system_u:object_r:httpd_log_t:s0 error_log-20180225
-rw-r--r--. root root system_u:object_r:dosfs_t:s0 error_log-20180305
if you rename that file, Apache will recreat it with the proper permissions; otherwise, restore the SELinux policies for the httpd log folder:
# Check for issues: at least error_log doesn't fulfill the Apache log SElinux policy.
matchpathcon -V /var/log/httpd/* # Fix at least the issue in error.log. '-Rv' on the folder will fix everything restorecon -v /var/log/httpd/error_log
Thank you Matteo. I renamed the error_log file and it recreated itself. Moodle is up and running. Now back to the Scorm package. I beleive I may have the answer. I will respond by Friday. Thanks again