Big problem for installing new Moodle

Big problem for installing new Moodle

by Thomas Kho -
Number of replies: 6
Hi Everyone,

Im new to Moodle, I try to install Moodle 1.5 on server, after I type: http://www.stem-elearning.com/moodle/install.php on address bar and I found these errors:

Warning: Unknown(): open(/tmp/php-ses/sess_efdf2d91a78f483b551a671ca5c8c76d, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp/php-ses) in Unknown on line 0

Then, I continue with the installation, later I found:

The web address does not appear to be valid - this Moodle installation doesn't appear to be there.

Web address: http://www.stem-elearning.com/moodle
Moodle Directory: /nfs/cust/1/14/40/704411/web/moodle
Data Directory: /nfs/cust/1/14/40/704411/web/moodledata

What went wrong?

I put all the files/folders under one directory "moodle".

Appreciate if anyone could help, and BIG thanks.

Thomas K
Average of ratings: -
In reply to Thomas Kho

Re: Big problem for installing new Moodle

by Ken Wilson -

Hi Thomas

Can you check that the apache user has read/write permissions on the folder /tmp/php-ses? PHP is complaining that it cannot write to this folder. If it is not possible to change permissions on this folder, try setting the session.save_path variable in your php.ini to a directory where permissions will be OK.

It's best to eliminate the sessions error first and then see if you get any further thoughtful.

Let us know how you get on!

Ken

In reply to Ken Wilson

Re: Big problem for installing new Moodle

by Thomas Kho -
Thank Ken,

I can not found the php.ini file in Moodle, and how can I eliminate sessions error (I try several way, but failed)?

Appreaciated for help.

Thomas
In reply to Thomas Kho

Re: Big problem for installing new Moodle

by Ken Wilson -

Hi Thomas

If you cannot find the php.ini file, then I'm guessing that you're on a hosted server. If this is the case, try these two ideas:

1. Get in touch with your hosting company and let them know about the error. Make sure you copy and paste the errors exactly, so that they can set the permissions for you.

2. You can also try setting the session.save_path in the moodle/.htaccess file and creating the php-ses directory yourself. Follow these steps:

(a) Create a directory called "php-ses" in your "web" directory (the same folder where the moodle directory is created). The permissions should be set correctly for this folder as it is inside the web directory.
(b) Add the following line to the .htaccess file in the moodle folder (or create one if it does not exist):

php_value session.save_path "/nfs/cust/1/14/40/704411/web/php-sess"

Hope this helps!

Ken

In reply to Ken Wilson

Re: Big problem for installing new Moodle

by Thomas Kho -

Hi Ken, thanks for help.

I created directory “php-ses” inside “web” directory, and created .htaccess (attach on this email) file added following line:
php_value session.save_path "/nfs/cust/1/14/40/704411/web/php-sess"

When I run install.php (http://www.stem-elearning.com/moodle/install.php):

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@stem-elearning.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Thanks

Thomas

In reply to Thomas Kho

Re: Big problem for installing new Moodle

by Ken Wilson -

Hi Thomas

This error means that the web host is not allowing you to set the session.save_path. Have you tried contacting them to get help?

Ken

In reply to Ken Wilson

Re: Big problem for installing new Moodle

by Thomas Kho -
Hi Ken,

Thank for helping me!
I contacted web host tech. support, they reply with nothing wrong with the server setting.
Could you show me the easy/straight forward way to install Moodle in server (I been follow all the steps from Moodle installation document). I am wondering it's my web host are not Moodle friendly, could you please list out some Moodle friendly web host company, thanks you.

Thomas K