Ready to toss in the towel

Ready to toss in the towel

by Jean Meadows -
Number of replies: 11

Anyone Please Help...

I have created several sub domains trying to install this sytem and I can't seem to get the thing to work....

I keep getting a header error at the top of the installation screen that I can't get rid of...

Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/edu.ewebdealer.com/httpdocs/lib/moodlelib.php:3736) in /home/httpd/vhosts/edu.ewebdealer.com/httpdocs/lib/setup.php on line 350

...................................................................................

Also I get through the installation and the blasted thing still won't work...

Warning: mkdir(data): Permission denied in /home/httpd/vhosts/edu.ewebdealer.com/httpdocs/lib/moodlelib.php on line 3736

ERROR: You need to create the directory data with web server write access

.....................................................................................

I tried to intall it at a root level and it didn't work...

I tried to install it at a subfolder level and it didn't work...

I have gone through and did a ton of code changes per the help areas and they didn't work...

I know my server is configured right because I have dotProject running and a few other heavy php/mysql apps running with ease.

Can some one please please help me?

Jean Meadows
Jean@eWebDealer.com

Average of ratings: -
In reply to Jean Meadows

Re: Ready to toss in the towel

by Jon Bolton -
Picture of Testers
Jean - the first problem is almost definitely blank lines in your config.php file - You can use the configcheck.php script at https://webwork2.math.ohio-state.edu/configcheck.php to check for this problem.

The second problem requires a folder for Moodle to store data, and this needs to be "above" or outside of your www or public_html folder. You also need to change the permissions so that the web server can write to that folder.

If you're installing Moodle in a sub folder, you need to make sure that the path in config.php reflects the correct location.

If you haven't already seen it, there are good instructions at http://moodle.org/doc/?frame=install.html
In reply to Jon Bolton

Re: Ready to toss in the towel

by Jean Meadows -

>>Jean - the first problem is almost definitely blank lines in your config.php file - You can use the configcheck.php script at https://webwork2.math.ohio-state.edu/configcheck.php to check for this problem.<<

Ok... I did the above and got this...

Checking url: 'http://edu.ewebdealer.com/config.php'

No extraneous characters detected in your config.php file

>>The second problem requires a folder for Moodle to store data, and this needs to be "above" or outside of your www or public_html folder. You also need to change the permissions so that the web server can write to that folder.<<

Is there anyway to remap this to another place?

I have plesk for a server control panel and use smartftp... neither will let me make a folder at that level... I can make folders in every other place one the planet but just not above any of these folders:

anon_ftp 
bin     
cgi-bin
conf        
error_docs     
httpdocs  
httpsdocs        
pd        
private   
statistics        
subdomains     
web_users

>>If you're installing Moodle in a sub folder, you need to make sure that the path in config.php reflects the correct location.<<

It installed... I think... lol... I think I have it right..


>>If you haven't already seen it, there are good instructions at http://moodle.org/doc/?frame=install.html<<

I have spent 3 quality days with this lovely site... I did find out how to test my site...

I am running phpMyAdmin 2.5.3/ php 4.8.3/ plesk/ 7.0.4 / Apache/2.0.40 (Red Hat Linux).

I took Cobalt and Fortane in Col.  At that time... in 1985 I decided I didn't want to be a programmer... Ithink I am a little slow...

So what am I missing?

Thanks Jon..

Jeannie

In reply to Jean Meadows

Re: Ready to toss in the towel

by Dave Ray -
Hi Jeannie,
           Just tryed to access your site and this error appeared.
   ------------------------------------------------------------------

Error detected in configuration file

Your server address can not be: $CFG->wwwroot ='http://edu.ewebdealer.com';
-------------------------------------------------------------------

Have you tryed putting WWW. before edu.

----Dave

In reply to Dave Ray

Re: Ready to toss in the towel

by Jean Meadows -

That was auto configured by the server to accept it.. it does it either way...

any other idea?

Jeannie

In reply to Jean Meadows

Great News....

by Jean Meadows -

I now have the login screen... I made the &Get to Get change on the lib/adodb/adodb.inc.php file...!

But I am still having a problem with all of these errors:

Warning: mkdir(): open_basedir restriction in effect. File(/home/moodledata) is not within the allowed path(s): (/home/httpd/vhosts/edu.ewebdealer.com/httpdocs:/tmp) in /home/httpd/vhosts/edu.ewebdealer.com/httpdocs/lib/moodlelib.php on line 3736

ERROR: You need to create the directory /home/moodledata with web server write access



Warning: mkdir(): open_basedir restriction in effect. File(/home/moodledata) is not within the allowed path(s): (/home/httpd/vhosts/edu.ewebdealer.com/httpdocs:/tmp) in /home/httpd/vhosts/edu.ewebdealer.com/httpdocs/lib/moodlelib.php on line 3736

ERROR: You need to create the directory /home/moodledata with web server write access



Warning: ini_set(): open_basedir restriction in effect. File(/home/moodledata/sessions) is not within the allowed path(s): (/home/httpd/vhosts/edu.ewebdealer.com/httpdocs:/tmp) in /home/httpd/vhosts/edu.ewebdealer.com/httpdocs/lib/setup.php on line 228

Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/edu.ewebdealer.com/httpdocs/lib/moodlelib.php:3736) in /home/httpd/vhosts/edu.ewebdealer.com/httpdocs/lib/setup.php on line 350

Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/edu.ewebdealer.com/httpdocs/lib/moodlelib.php:3736) in /home/httpd/vhosts/edu.ewebdealer.com/httpdocs/lib/moodlelib.php on line 2130

Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/edu.ewebdealer.com/httpdocs/lib/moodlelib.php:3736) in /home/httpd/vhosts/edu.ewebdealer.com/httpdocs/lib/moodlelib.php on line 2131

Please help...

Thx..

Jeannie

In reply to Jean Meadows

Re: Great News....

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
The error explains it:

   "You need to create the directory /home/moodledata with web server write access"

Please make sure the directory you specified for dataroot is
  1. something you can write to (/home/moodledata sounds wrong)
  2. made writeable for the apache user
In reply to Martin Dougiamas

Re: Great News....

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

To expand on what Martin said

/home/moodledata

Is almost certainly wrong because the

/home

is the root for all other shared directories (and vhosts). Thus the chances are that your moodle data needs to be under

/home/httpd/vhosts/edu.ewebdealer.com/

(or whatever your domain under vhosts is)

So see if you can make a directory called something like

/home/httpd/vhosts/edu.ewebdealer.com/moodledata

Note that this type of problem is not uncommon, and mainly reflects the way Linux/Unix starts off assuming that you
need some security, rather than the tendency of MS Windows that tends to allow you to stuff unless you tell it not to. Although
it is frustrating to get stuff working, it is the right way in the long run.


In reply to Marcus Green

Re: Great News....

by Jean Meadows -

winkHi Guys...

Your not going to believe this but I actuall managed... errors and all to get through an install ...

I agree with you but this is what I got on the display screen

***************************
Error detected in config.php

Error in: $CFG->dirroot = 'httpd/vhosts/edu.ewebdealer.com/httpdocs';

Try this: $CFG->dirroot = '/home/httpd/vhosts/edu.ewebdealer.com/httpdocs';
*********************************

That is why I used that format

Here is my config file now and it is now findly loading to the installation screen... wink

**************************************

$CFG->wwwroot   = 'http://edu.ewebdealer.com';

$CFG->dirroot='/home/httpd/vhosts/edu.ewebdealer.com/httpdocs';

$CFG->dataroot  = 'data';


$CFG->directorypermissions = 02777;

$CFG->admin = 'admin';

******************************

What I did....

I killed the whole thing for a 4th time...

deleted the database and went to a clean slate...

Installed from scratch and added a new data base, user, the whole sha bang.. because I am not using so kewl install tool... It took a little longer ... I am using phpAdmin for all of this with the Plesk Control Panel...

My admin rights let me add domains, databases, https site admin, and all the goodies needed... but the one thing it won't let me do is make a folder under my root level of a domain that is other than what comes standard... Is there a work around for making the data folder?

And of course another new set of errors...

In reply to Jean Meadows

Re: Great News....

by Bill Burgos -
Hi,

"My admin rights let me add domains, databases, https site admin, and all the goodies needed... but the one thing it won't let me do is make a folder under my root level of a domain that is other than what comes standard... Is there a work around for making the data folder?"

I have limited understanding of Plesk, I mostly use CPanel. However, if you click on your domain name link in Plesk towards the bottom of the screen ( I checked version 7.0), you should be presented with a set of controls which include a file manager. I think that from there, you should be able to create the data folder with the permissions you need.

Hope this helps.

Bill
In reply to Marcus Green

Another Stupid Question?

by Jean Meadows -

As I am sure you all know by now... I am not a programmer... I just teach real estate professionals... That is all I want to do...

But I have a few more stupid questions...

I noticed in the config.php file... which I have spent some quality time with for the last five days...  that there is no reference made to the the domain login... doesn't there have to be a login at the server level for the files the teachers are uploading to the server?  Like maybe an ftp upload

If the application is managing resources at a domain level wouldn't that open up the options for contributers and users of the application?

I know this sounds nuts but... I have installed several applications on this same server that have document control with multiuser rights... which were written in php and mysql and they work...

What is different about the way this application works with mysql, apache, and php and everything else?  I know that there is something wrong with my skill level... but I can't be that dumb?

In reply to Jean Meadows

Re: Another Stupid Question?

by Bill Burgos -
Hi Jean,

If I understand your question correctly, Moodle is pretty much self-contained. Aside from having the data folder/directory and running a cron job, all regular activities are contained within the Moodle installation.

Yes, you need to specify the web root as:

$CFG->wwwroot = 'localhost'

or in your case:

$CFG->wwwroot = 'http://edu.ewebdealer.com/'

Moodle takes care of file uploads and other regular web references from there. There is really no need to have outside access to the files under normal conditions.

Of course, you will need server read and write access to the data folder as you have been working with earlier. However, if it is above the root web directory, as it should be, only the web server, and by extension, Moodle will be able to access those files.

You can access it by FTP, of course. However, it is not really necessary unless you are uploading large files.