Install stopped after creating config.php file

Re: Install stopped after creating config.php file

by Brian Lockwood -
Number of replies: 4

Did you copy the suggested config.php contents into your config.php?

In reply to Brian Lockwood

Re: Install stopped after creating config.php file

by Frank Lister -

Hello Brian,

Yes I did. That is when it all went to foo bar.

Actually, by removing the config.php file, I get to start all over with the online setup process where you set your Moodle directories and database location and password then it recreates the data that you cut & paste into the config.php file.

I have redone this process three times and get the same results each time.


On my web server (Ubuntu 14.04) I have MySQL and PhP installed.

On my file server (Solaris 11) I have installed MySQL on a VM.

I am wondering if PhP is not finding the MySQL db on the file server?

From the CLI on the web server I can open/create/delete objects within the db on the file server.

I can RWX to the mount on the web server (Moodle Data Files located on a share from the file server).


I do not understand the errors that I'm getting or why sad


Thanks for the help smile

In reply to Frank Lister

Re: Install stopped after creating config.php file

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

You have a configuration issue. The question is, Where?

Start with the two Apache errors:
1. Create a simple index.html in the moodle directory and visit your Moodle site. As a safety measure move the index.php there to a safe place. You should get the HTML displayed.

2. Once that works, get the PHP info displayed: https://docs.moodle.org/en/PHP#Displaying_phpinfo_in_Moodle. Go through it checking the values of important parameters.

P.S. When you repeat the installation procedure by deleting the config.php, you cleaned the moodledata directory completely and dropped/recreated the database, right?
In reply to Frank Lister

Re: Install stopped after creating config.php file

by Brian Lockwood -

I wonder if the solaris server is not listening on the correct port because of a firewall.

Can you do telnet <ip of mysql server> 3306 from the moodle server? Assuming 3306 is the port mysql is listening on?

In reply to Brian Lockwood

Re: Install stopped after creating config.php file

by Brian Lockwood -

Cancel that, sorry, I see you can see the mysql server from the moodle server in you post above.

I would look in the mysql error log and see if there is an error there.

When you query the mysql server on the file server from the web server, are you using the same account as the moodle server is expecting to use?

Also, when you query the mysql server from the webserver are you using mysql client on the webserver? In other words, you arent sshing in from the webserver and then using the mysql server?