Installation help

Problem with cli installer 2.3.3+

 
 
Picture of sergio salazar
Problem with cli installer 2.3.3+
 

hi everyone i have installed moodle before but with a gui (in a browser), so this time i tried to install it from the cli cause the server doesn't have GUI and so first i've executed install.php from moodle/admin/cli and then install-database.php. 

i have created the database in utf8 as that says but when i try to get in the site with lynx i got the http 500 error.... i dont no what to do...

 
Average of ratings: -
moi!!! it is what is is...
Re: Problem with cli installer 2.3.3+
Group Documentation writersGroup Particularly helpful Moodlers

Sorry for the delay in a response here, but I am sure you can appreciate this is a rare thing these days, what you are trying to do. My own skills here are very rusty, I have not done anything like this for a long, long time, so bear with me. I have to ask what server are you using that it does not have a GUI?

I always found using the cli to be a nuisance so I would either write my own batchfiles which I could do in those days, to automate the process as much as possible, or I would try to install a simpler program I could use to do some parts of what I wanted, then make the rest of it easier. In this case, I suspect you are on the right track, but not quite getting the whole lot to work at once as it should. The logs should reveal what in the installer caused the error, even if not the event itself.

Another way around this was to use an FTP program like Filezilla to upload and install rather than the server cli.  (Can't remember what I did use, too long ago, but Filezilla is what I use now, works for me first time everytime.) 

Outside of that, there is not enough information here to be any more specific, I am afraid. Good luck... 

 
Average of ratings: -
Picture of sergio salazar
Re: Problem with cli installer 2.3.3+
 

its a fedora 17 x64 server but for company reasons doesn't have GUI, the thing is, that ive tried to install it from the cli and it doesn't work but i tried copying the moodle folder to /var/www/html and executed the http://localhost/moodle  with lynx and it worked, but i really need to install it from cli...

 
Average of ratings: -
Picture of Ken Task
Re: Problem with cli installer 2.3.3+
Group Particularly helpful Moodlers

Does Fedora 17 use SELinux?  If SELinux is active one might be prevented from installing Moodle.

cat /etc/selinux/config

If 'SELINUX=enforcing', edit the config and set to 'permissive'.

Service needs to be restarted.

If the cli installer script was executed by root user, the moodle folder and files in /var/www/html/moodle might be tagged as belonging to root user root group.

Check to see what ownership/permssions are on config.php if you've run the cli installer already:

ls -l /var/www/html/moodle/config.php

If owerships/permissions are NOT apache:apache

cd /var/www/html/

chown  apache:apache moodle -R

The cli installer script does not create the moodledata directory.  That has to be done manually and it's permissions also have to be readable/writeable by apache user.

mkdir /var/www/moodledata

chown apache:apache /var/www/moodledata -R

Also, have you tested connection to the database from the command line?

mysql -u [whateveruser] -p[password]

That should get you to the mysql> prompt.

Type \q to exit.

Use a workstation browser to check ... lynx is handy for some things, but not for this. ;)

'spirit of sharing', Ken

 
Average of ratings: -
Picture of Visvanath Ratnaweera
Re: Problem with cli installer 2.3.3+
Group Particularly helpful Moodlers
Hi

> ive tried to install it from the cli

What are the instructions you were following? There is http://docs.moodle.org/23/en/Administration_via_command_line but no http://docs.moodle.org/23/en/Installation_via_command_line.

> and it doesn't work

Once that _it_ is clear, the next question is where did it stop, with what message?

> i tried copying the moodle folder to /var/www/html and executed the http://localhost/moodle with lynx and it worked,

Once the installation instructions are on the table we know how _it_ worked!

> but i really need to install it from cli...

Back to the original question. Do you mean you have _only_ shell access. Not even http (to visit http://your.server/moodle or whatever)? Or do you mean, you need do install Moodle purely in a shell script?
 
Average of ratings: -