Forums | Mahara Community
Problem with .htaccess, curl or something else?
11 August 2010, 8:39 AM
Hi, I am trying to install Mahara, and first of all I saw in my browser:
500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, firstname.lastname@example.org 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.
Apache Server at www.porto.kreativno.rs Port 80
I follow the instructions on http://wiki.mahara.org/System_Administrator%27s_Guide/Installing_Mahara
It's Mahara 1.2, on Linux, with mySql
After that, I receive some advices fom other Mahara users, and I delete some rows from .htaccess:
php_flag register_globals off
php_flag magic_quotes_runtime off
php_flag magic_quotes_sybase off
php_flag magic_quotes_gpc off
php_flag log_errors on
php_flag allow_call_time_pass_reference off
php_value upload_max_filesize 50M
php_value post_max_size 50M
Now in my browser appears:
Mahara: Site unavailable
13 August 2010, 10:10 AM
I think you probably need to get in contact with your hosting provider again - nothing in the .htaccess will disable the curl extension. That said, looking again at the URL you've mentioned, you no longer receive the curl error.
The error you're now getting about your dataroot not being writable is probably because you've got it misconfigured. The dataroot you've specified is /maharadata. I very much doubt that you'll be able to write to this directory on your server. You'll have to set your dataroot directory to something that your web user can write to. You may need to contact your host for support on this one if you can't work it out.
There's also the requirement that your dataroot directory should not be within your htdocs folder. As an example, if your files are uploaded to somewhere like:
Then you could set your dataroot directory to something like:
As I say, this will all depend upon how your hosting provider has things set up.
The good news though is that once you've fixed the problem you have with your dataroot, there are only two more tests before you can install mahara :)
14 August 2010, 3:45 AM
As you see, meanwhile they really include curl extension, and I see that new error in the same time as you.
I can not even see nor maharadata neither moodledata folders in Total Commander, but I can see them these morning in SmartFTP. Now I can't see them at all. Very strange... My Moodle on kreativno.rs don't work too. All that happens yesterday afternoon...
That hosting company have not technical support till Monday...
Tahnk you for your answer, I must wait till Monday to see what's next...
16 August 2010, 3:32 AM
The dataroot folder you mention cannot be created.
At present, you're trying to specify a folder such as /maharadata. This setting is specified in the same config.php you gave your database username and password.
The maharadata setting is what's known as an absolute path so using a setting of /maharadata means that the dataroot does not simply go in the same directory as your config.php, but at the root of the drive.
That is to say that if it were windows, it would be equivalent to c:\maharadata and I very much doubt that you have permission to write to this folder. The folder you need to specify should probably be something like /home/snezana/maharadata. This would be the equivalent of c:\home\snezana\maharadata.
You may have to contact your hosting provider to find out where your files should live.
16 August 2010, 8:02 AM
I am very grateful for yours effort to help me :)
In my config.php I put this path:
$cfg->dataroot = '/maharadata';
Here is how my root looks like:
From TC and from SmartFTP I can create, delete, writw in that folders.
Moodle works with that moodledata you see on the picture.
16 August 2010, 9:01 AM
Based upon the information you submitted in the original bug, I would guess that you want to set your dataroot to something like:
So the line in your config.php would read:
$cfg->dataroot = /VDOMAINS/<username>/maharadata'
(where <username> is your username).
16 August 2010, 11:13 AM
Thank you very very much!
At last it works!
This is great that tihs communiti helps to new users!
Now we will try to connect it with Moodle. I hope taht we will success. If not, I know where to ask
28 March 2011, 1:24 PM
Snezana and others who can help me... I´ll post here some screen shots of all my configuration because i´ve tried everything told in this topic but the error persist.
Mahara Version 1.3.4 Stable
"home/mineral/public_html/marn" ( marn is a abreviation of Mining Accident Report Network , i used it instead of "mahara" name. )
"home/mineral/data" ( 2 levels behind mahara installation folder )
$cfg = new StdClass;
$cfg->dbtype = 'postgres8';
$cfg->dbhost = 'localhost';
$cfg->dbport = null;
$cfg->dbname = 'portaldamineracao';
$cfg->dbuser = 'admin';
$cfg->dbpass = 'xxxxxxxxx';
$cfg->dbprefix = 'mineral';
$cfg->wwwroot = 'http://www.domain.com.br/marn';
$cfg->dataroot = '/home/mineral/data';
$cfg->emailcontact = 'email@example.com';
( removed all php flags )
deny from all
deny from all
deny from all
Header unset ETag
Shared hosting but with all the necessary resources to run.