moodle 2.9 not accessing from the browser

moodle 2.9 not accessing from the browser

by Ripa Desai -
Number of replies: 21
Hello,

I am on moodle 2.9 and ubuntu 16.04. I make a mirror copy of my production. I want to upgrade my moodle from 2.9 to 3.2. I can access moodle from my browser when I am on /var/www path.I want my standard path.So I am changing documentRoot path from /var/www to /var/www/html in/etc/apache2/default.conf and in assigning dirroot from /var/www to /var/www/html. moodle folder is resided under html folder. and 192.168.1.6/moodle is assigned as my wwwroot.
All set up seems to me is perfect. However when I am trying to access my moodle from browser. I  am getting a blank page
Did you ever get this situation before?
How did you solve that?


Average of ratings: -
In reply to Ripa Desai

Re: moodle 2.9 not accessing from the browser

by Ripa Desai -

Hello,


I can put standard path when I am installing moodle


My standard path would be

wwwroot:192.168.1.6/moodle

dirroot: /var/www/html


However, when I implement upgrade and putting standard path I am getting the blank page when I am accessing 192.168.1.6/moodle from the browser

Any ideas

When I put this standard path:


wwwroot: 192.168.1.6/moodle

dirroot:/var/www/html

/etc/apache2/default.conf

DocumentRoot:

/var/www/html

It seems like I am missing something from the configuration side and I am unaware about that...

Thanks

In reply to Ripa Desai

Re: moodle 2.9 not accessing from the browser

by Ken Task -
Picture of Particularly helpful Moodlers

Is the wwwroot you show here exactly what's in config.php file of  the moodle code in /moodle?

IF so, then add the protocol ... http:// in front of the IP/moodle/

This assumes that when you try http://IP address you do get a welcome page or notification page that you are running Ubuntu.

'spirit of sharing', Ken

In reply to Ken Task

Re: moodle 2.9 not accessing from the browser

by Ripa Desai -
Hello,



Thanks for your reply. I will follow that steps and let you know..





Thanks



On May 22, 2017 5:21 PM, "Ken Task (via Moodle.org)" <noreply@moodle.org>
In reply to Ripa Desai

Re: moodle 2.9 not accessing from the browser

by Ripa Desai -

Hello,


I am following exact same thing that you are talking about:


I want to add all my moodle code into moodle folder and want to access that folder by following


192.168.1.6/mooodle

However, when I try to access moodle by above way.

I am getting a blank browser


I am sharing a screenshot that I am aware of to make this thing work

/etc/apache2

default.conf

docroot

/var/www/html

config.php

cmd


Do I need to make any changes other than that?


Thanks

In reply to Ripa Desai

Re: moodle 2.9 not accessing from the browser

by Ripa Desai -

Hello,

I want to access moodle by this way.

My config.php file is resided under

loc

Below you can see my set up...

docroot

moodle


When I try to I am getting a blank page

blank page


Any help would be appreciated.

I am doing upgrade from 2.9 to 3.0

Thanks

In reply to Ripa Desai

Re: moodle 2.9 not accessing from the browser

by Ken Task -
Picture of Particularly helpful Moodlers

There are some lines in config-dist.php file that show how to turn on debugging via config.php.

Copy those lines from config-dist.php and put them into config.php.

No need to restart apache.   Just attempt to hit the site via:

http://ipaddress/moodle/

Let's see if it says anything.

Also, you might want to check other server logs ... /var/log/apache2/ (I think) error.log

And we are sure that ownerships of the moodle directory is www-data .. group www-data.  Correct?

The 'moodle' code directory itself needs to have at least read by all ...

ls -ld moodle

and you should see an 'x' in three places ... owner, group, and others.

'spirit of sharing', Ken



Average of ratings: Useful (1)
In reply to Ripa Desai

Re: moodle 2.9 not accessing from the browser

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

What happens when you just enter the ip?  Do you get the default apache page?

In reply to Emma Richardson

Re: moodle 2.9 not accessing from the browser

by Ripa Desai -

Rightnow, as per my moodle settings to config files:

When I write :192.168.1.6:


I am seeing moodle folder inside that.


Thanks...

In reply to Ripa Desai

Re: moodle 2.9 not accessing from the browser

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

How do you have your apache setup?  Is this the only site on the server?  What does your apache default config look like?

In reply to Emma Richardson

Re: moodle 2.9 not accessing from the browser

by Ripa Desai -

I am attaching my default.conf

default

In reply to Ripa Desai

Re: moodle 2.9 not accessing from the browser

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Yes, you have it confused!

So you have told apache that the default site for the server is in your moodle folder - this is correct.

But then you have told Moodle config that moodle is inside a moodle folder in the default site (which is already in the moodle folder).

In your moodle config file, change wwwroot to just the ip address.

You don't really need to the dirroot so I would just comment that out.

See if that works.

In reply to Emma Richardson

Re: moodle 2.9 not accessing from the browser

by Mihir J -

Hi

you can also try to remove /moodle from the document root in your apache conf. and keep the wwwroot of the site same as it is moodle config.

thanks!

In reply to Mihir J

Re: moodle 2.9 not accessing from the browser

by Ripa Desai -

Hello,


I tried and it still not working..


Thanjs

In reply to Ripa Desai

Re: moodle 2.9 not accessing from the browser

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Which did you try?  Can you post your adjusted apache config and moodle config?

In reply to Emma Richardson

Re: moodle 2.9 not accessing from the browser

by Ripa Desai -

Hello, 

 

I am trying to build a test environment with standard changes. . My default setting in my original environment was /var/www/config.php and all the moodle data were resided under the 

/var/www folder. We are on the moodle 2.9+ and Ubuntu 14.04 environment.

Our previous set up of the moodle was like this screenshot:

I can access our moodle easily through the browser by this setup.

old


 I was referring moodle 2.9+ installation guide. 

https://docs.moodle.org/29/en/Step-by-step_Installation_Guide_for_Ubuntu 

On that guide they mention that: 

 

  • Ubuntu Server 14. 04LTS has some minor differences from 12. 04LTS, mainly to the Apache Sites Configuration, now resides at /etc/apache2/sites-available/000-default.conf and the Default Webroot at present at /var/www/html/. This document has been updated to reflect those changes,

So I was trying to follow that route. Now I would like to move my www folder data into a 

moodle folder. 

I want to keep my standard settings so no one gets confused in future who is using moodle in my absent.

I am attaching my current settings here. 

Please take a look :

/etc/apache2/00-default.conf




/var/www/html/moodle/Config.php





Now when I am trying to access moodle by writing http://192.168.1.6/moodle. I am getting a blank page.

 

Thanks

 





In reply to Ripa Desai

Re: moodle 2.9 not accessing from the browser

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

So is there a moodle folder inside your html folder?  Or did you put the moodle files in there directly?

Perhaps you could post a screen shot of your folders showing exactly where the moodle files reside now...

In reply to Ripa Desai

Re: moodle 2.9 not accessing from the browser

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Totally blank?  What is your php version?  Is it compatible?

In reply to Emma Richardson

Re: moodle 2.9 not accessing from the browser

by Ripa Desai -
By changing the folder from /var/www to /var/www/html...doesn't create any compatibility issues...



Thanks

In reply to Ripa Desai

Re: moodle 2.9 not accessing from the browser

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

But you said this was a copy and that you were wanting to upgrade so I was unsure if the server was set up the same or if you have already upgraded moodle which might require a higher version of php than you have installed.  Try deleting the cache and localcache folders from your moodleDATA folder.  Look at your php error logs.  Turn on debugging in Moodle config and see if you get any errors.  

In reply to Emma Richardson

Re: moodle 2.9 not accessing from the browser

by Ripa Desai -

I didn't upgrade my system.. I just want to change the location as standard location which could be /var/www/html..

I can access moodle using my previous setup. However, I would like to have standard set up in moodle. 

I will try this things and let you know what happens...


Thanks