installation problems

installation problems

by ping chuan tan -
Number of replies: 22
i have entered the install.php but till the creation of data directory.. i encountered some problems.. i created a directory using the mkdir command.. the directory is created but the directory says error.. have to create manually or something like that.. any one have any solutions?
Average of ratings: -
In reply to ping chuan tan

Re: installation problems

by Herbert Keijers -
Probably the directory you created has no write permissions for the webserver.
Can you give a little bit more info ?
In reply to Herbert Keijers

Re: installation problems

by ping chuan tan -
how do you check if there is write permission for the webserver? what other information must i provide? sorry i am still quite a newbie in linux and using the software..
In reply to ping chuan tan

Re: installation problems

by Herbert Keijers -
To provide you the right information i have to ask a couple of more questions (sorry smile)
In the post above you used mkdir to create a directory.
  1. Do you have shell or ftp access to your server ?
    (If you have root shell access please mention)
  2. What distribution of Linux is your (hosting)server running ?
    (not so bad if you don't know)
In reply to Herbert Keijers

Re: installation problems

by ping chuan tan -
1. i lock in as root to install the moodle.. so i don't know if that is counted..

2. i am using linux 8.0
In reply to ping chuan tan

Re: installation problems

by Herbert Keijers -
So you are boss of your own box. That makes things more easy
I assume you did following :
#root@yourbox : mkdir moodledata
then you must set the directory permissions so your webserver (apache) can write (read and excecute) to it
#root@yourbox : chmod 777 moodledata
Thats it !
  1. Keep in mind that the directory moodledata should be out of the scope of the webserver.
  2. chmod 777 sets permissions wide open, but since you are root I assume your box is only for testing.
You should run the install again (to test), that means delete the config.php file (if excits) and browse to the web location Moodle is in.
The install procedure starts over again, hopefully with no errors this time smile

In reply to Herbert Keijers

Re: installation problems

by ping chuan tan -
you say chmod 777 sets permissions wide open.. what does that mean? can you explain further how the command works.. i am still a newbie so wants to know more..do you know about mysql stuffs?
In reply to ping chuan tan

Re: installation problems

by Herbert Keijers -
quote :
"you say chmod 777 sets permissions wide open.. what does that mean? can you explain further how the command works.."

Yes, please read this

quote :
"i am still a newbie so wants to know more..do you know about mysql stuffs?"

Everyone starts as a newbie. If your mysql question is out of my scope, I'm sure someone else in the forum can pick up your thread.

Good luck !
In reply to Herbert Keijers

Re: installation problems

by ping chuan tan -
now i have encountered another problem.. till one part of the installation, they ask for database name and password, is this database name and password u set for ur mysql? after i keyed in the database name and password i am posted to an empty page.. but i searched for the config.php file.. it does not exist.. how do i restart the installation if it hangs..
In reply to ping chuan tan

Re: installation problems

by Herbert Keijers -
First of all you should have made a database for moodle in mysql. To verify do following on a shell prompt:
# mysql -u root -p (the system will ask for your root mysql password)
> SHOW DATABASES; (You ask mysql which databases there are)

Perhaps you get something like this:
+----------------+
| Database |
+----------------+
| moodle
| mysql |
| test |
+----------------+
3 rows in set (0.00 sec)

If the moodle database does not exits, you have to create one

mysql> CREATE DATABASE moodle;

mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,ALTER ON moodle.*
TO moodleuser@localhost IDENTIFIED BY 'yourpassword';
mysql> quit

# mysqladmin -p reload

----------------------
(the above comes from the moodle documentation)
----------------------
Run the install program again by navigating your browser to your moodle web location.
Everything should check green ( I hope ).
When asked for the moodle database user/password combination you should enter the ones you entered
for moodleuser/yourpassword above

In reply to Herbert Keijers

Re: installation problems

by ping chuan tan -
i encountered some admin problems.. i tried to enter the mysql monitor vby typeing mysql. it says

ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)


what should i do? actually all the installation and configuration should be done using the root account is it?
In reply to ping chuan tan

Re: installation problems

by Herbert Keijers -
Perhaps your mysqlserver is running without root password ?
First try this:

# mysql -u root (without the -p password option)

If it works, you are in. (best to set a password)

If not, a google seach came up with this :

Proceed as follows.

  • Stop the db engine
     /etc/init.d/mysql stop
Restart the daemon
     /usr/bin/mysqld_safe --skip-grant-tables &
Go to the MySQL interactive command
     mysql -h your_hostname mysql
Change the password with GRANT
     GRANT ALL PRIVILEGES ON * to root@localhost IDENTIFIED BY 'passwd';
FLUSH PRIVILEGES;

Maybe it should be better to flush privileges from mysqladmin:

     mysqladmin -h localhost flush-privileges

That's it. Now try to login as usual.


In reply to Herbert Keijers

Re: installation problems

by ping chuan tan -
i reinstall the whole moodle but until the end of the installation.. the whole install.php website turn into a empty page.. nothing was displayed.. so i was wondering wats was wrong..
any solutions?
In reply to ping chuan tan

Re: installation problems

by Herbert Keijers -
Can you check the error_log file of apache ?
In reply to Herbert Keijers

Re: installation problems

by ping chuan tan -
where is the error log file of apache located?
In reply to ping chuan tan

Re: installation problems

by Herbert Keijers -
On most *NIX systems the log files will be in /var/log
You might want to check out this FAQ
In reply to Herbert Keijers

Re: installation problems

by ping chuan tan -
after the page with the database password and database name, i reached a blank page.. y is it so? i am really desperate for help now.
In reply to ping chuan tan

Re: installation problems

by Herbert Keijers -
Started a new sub-thread because it's getting awfully small ...
You are going to test two things :
  1. Is php working on your system ?
    To test this create a new file called phpinfo.php in the root of your moodle directory. It must contain only the following line :
    <?php phpinfo(); ?>
    Call the file in your browser by :
    http://your.host/moodle/phpinfo.php
    If you get readings, php is working, move to 2
  2. <>Can php talk to mysql ?><>On some Linux systems you have to install an rpm called
php-mysql-(version) to let php interact with mysql.
On a command line type : (without the #)
# rpm -q php-mysql
If the system returns "... not installed", you must install that rpm package. If it is there ...
>Try to run the moodle again ...Hope this helps
In reply to Herbert Keijers

Re: installation problems

by ping chuan tan -
still the same result.. i am getting blank page at the end of installation... any possible solutions..
In reply to ping chuan tan

Re: installation problems

by Herbert Keijers -
Is your site online ?
In reply to Herbert Keijers

Re: installation problems

by ping chuan tan -
no.. my site is local host..if i want to make it online how to do go about doing it.. u have been using moodle for quite a while i guess. does moodle fulfill the points i state below:

1. able to build a question bank of questions.
2. able to upload files e.g. pictures and text files.
3. able to random choose questions for a quiz.
In reply to ping chuan tan

Re: installation problems

by Herbert Keijers -
1. able to build a question bank of questions.
Yes
2. able to upload files e.g. pictures and text files.
Yes
3. able to random choose questions for a quiz.
Yes
And much more ... smile

Hope you get Moodle to run. It's really worth all you efforts !
There are many questions from people with getting blank pages.
Do a search in the forums, hope you find a answer to your specific problem
In reply to Herbert Keijers

Re: installation problems

by ping chuan tan -
you are a mathematics teacher right? i have a few questions.. i have problems uploading picture files.. when i uploaded the file in both site files and files, the moment i go and edit the quiz the image section will have something saying "no image have been uploaded to your course". for calculated questions, the correct answer formula is the formula used to solve the question or the answer. can you let me have a sample view of your moodle website. can i categorise the questions bank in terms of level of education, subject, and difficultY?