Moodle v 2.2.2 - Clean Installation Issue

Moodle v 2.2.2 - Clean Installation Issue

by Kenny Ryan -
Number of replies: 8

Hello,

I'm using the most recent version of Moodle v2.2.2 with nGinX v1.0.4. I ran the installation in my browser and everything seemed to install just fine. When I go to the sub-domain that I have it on, "moodle.mySite.com", the URL changes to "http://index.php/?sessionstarted=1&sessionverify=1&lang=en". Could someone help me with this issue?

Average of ratings: -
In reply to Kenny Ryan

Re: Moodle v 2.2.2 - Clean Installation Issue

by Alex Saavedra -

Kenny,

Verify that config.php has $CFG->wwwroot properly configured:

$CFG = 'http://moodle.mySite.com';

A. Saavedra

In reply to Alex Saavedra

Re: Moodle v 2.2.2 - Clean Installation Issue

by Kenny Ryan -

Hello Alex,

This is what I have in my config.php file.

 

<?php  // Moodle configuration file

unset($CFG);
global $CFG;
$CFG = new stdClass();

$CFG->dbtype    = 'pgsql';
$CFG->dblibrary = 'native';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'moodle';
$CFG->dbuser    = 'moodle';
$CFG->dbpass    = 'moodlepassword';
$CFG->prefix    = 'mdl_';
$CFG->dboptions = array (
  'dbpersist' => 0,
  'dbsocket' => '',
);

$CFG->wwwroot   = "http://moodle.mysite.com";
$CFG->dataroot  = '/home/user/moodledata';
$CFG->admin     = 'admin';

$CFG->directorypermissions = 0777;

$CFG->passwordsaltmain = 'Py/_8DnB+nJdJ6Y&L>F>Q=#NE#';

require_once(dirname(__FILE__) . '/lib/setup.php');

In reply to Kenny Ryan

Re: Moodle v 2.2.2 - Clean Installation Issue

by Guillermo Madero -

Hi Kenny,

You seem to have some subdomain configuration problem. I guess you might have a dot htaccess file in your subdomain directory. You need to check its contents.

In reply to Guillermo Madero

Re: Moodle v 2.2.2 - Clean Installation Issue

by Kenny Ryan -

I'm using nGinX and it wouldn't read that file. I'll attempt to translate that configuration to nGinX and give it a whirl.

In reply to Kenny Ryan

Re: Moodle v 2.2.2 - Clean Installation Issue

by Alex Saavedra -

Hi Kenny,

As Guillermo pointed out you should now check on the web server side. The access log could bring some light in case some Rewrite or Redirect directives are in place.

HTH,

A. Saavedra

In reply to Alex Saavedra

Re: Moodle v 2.2.2 - Clean Installation Issue

by Kenny Ryan -

The server is giving back a 303 and I'm trying to redirect it back to a 200. I'm using nGinX to run Moodle, but I'm not sure if I have the correct configurations. Any suggestions?

In reply to Kenny Ryan

Re: Moodle v 2.2.2 - Clean Installation Issue

by Guillermo Madero -

The 303 HTTP status code is returned when the requestor should make a separate GET request to a different location to retrieve the response; in other words, this status code specifies the address where the response to the request should be found.

Maybe one of the following might help you configure your server:

http://nginx.org/en/docs/http/converting_rewrite_rules.html

http://wiki.nginx.org/HttpRewriteModule

http://wiki.nginx.org/Configuration