I am trying to install Moodle on Plesk6 running on Redhat9. I am having problems uploading files and getting Moodle to send email.
I had previously installed Moodle -- both 1.1 and 1.2(CVS) -- on a development machine running Redhat8 (not Plesk) and everything worked fine. The production server is running Plesk6 on Redhat9. I installed both Moodle 1.1 and Moodle 1.2 (CVS) on this Plesk system and the problems I encountered (for both Moodle versions) are:
1) Email
Moodle is not able to send email.
Using "Send my details via email" I get:
---- ERROR: Could not send you an email to confirm the password change ----
Running .../admin/cron.php I get:
---- Attendance: Performing automatic attendance logging Processing post 5 ERROR: Error: mod/forum/cron.php: Could not send out mail for id 5 to user 1 (xxxx@xxxxxx.com) .. not trying again. .... mailed to 0 users. Running backups if required... Checking backup status...INACTIVE Backup tasks finished Cron script completed correctly Execution took 0.294599 seconds ----
I see similar errors after creating new users; Moodle cannot send them email.
However, I am able to send email from the command line on the server and a custom PHP application we have developed is able to send email from that machine.
smtphosts, smtpuser, and smtppass are blank.
Any ideas on what the problem might be?
2) File Uploads
On uploading an attachment to a post on Moodle 1.1 I get:
---- ERROR: Could not find or create a directory (/path/to/moodledata/1/moddata) Attachment could not be stored. Your post was updated. ----
On uploading an attachment to a post on Moodle 1.2 I get:
---- ERROR: Could not find or create a directory (/path/to/moodledata/1/moddataforum) Attachment could not be stored. Your post was updated. ----
Uploading a file to "Site Files" generates the following error:
---- An unknown problem occurred while uploading the file 'xxxxxx.xxx' (perhaps it was too large?) ----
The file is only 8kb and the default PHP max upload settings for the server are much higher.
I have set the permissions for the moodledata directory to 777.
On Plesk, if the user uploading the files is say "ftpuser" then the moodledata directory owner is "ftpuser" and group would be "psacln" (psacln" is a group created by Plesk.) However, files uploaded using Moodle will be owned by "apache" and group "apache". Could this be causing the uploading problem? It works fine on a regular Redhat8 system though.
Any ideas how I can solve these problems? Has anyone run Moodle on Plesk6?