Page is not getting loaded properly

Page is not getting loaded properly

by Madhukar Boppidi -
Number of replies: 21

Hello,

I have a requirement to clone the current production Moodle to another VM and address some of the security Vulnerabilities . Before addressing those I have accessed the application on Clone server after starting all services, like Apache and MySQL.

I am able to hit the website, but page is not getting loaded properly.

Can someone please help me on these, I have cleared the cache as well but still not working .

I am attaching the page I am currently getting now.

I really appreciate your help on this.


Thanks,

Madhukar



Average of ratings: -
In reply to Madhukar Boppidi

Re: Page is not getting loaded properly

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

What is the operating system, if Unix the flavour/distribution, of your VMs?

How exactly did you "clone"? You can link to the tutorial you followed.

Is the clone too accessed through the Internet? What is the URL like? (You can screen hide your domain by changing the name, but keep the pattern.)

About the "screen-shot": This is a FOSS community, most of us don't appreciate having to open propriatory formats like DOCX. You can simply attach the screen-shot as a picture rather than going through Microsoft Word. On top of that, you noticed that the screen-shot discloses your sites name?

In reply to Visvanath Ratnaweera

Re: Page is not getting loaded properly

by Ken Task -
Picture of Particularly helpful Moodlers

+20 to alternative to .docx.  A lot of helpdesk folks do not have any office suite installed on their helpdesk work station for obvious reasons.

'SoS', Ken

In reply to Visvanath Ratnaweera

Re: Page is not getting loaded properly

by Madhukar Boppidi -

HI Visvaath.. Thanks for your reply.

It is linux OS, and we usually clone as it is, after the clone I have changed the httpd.conf and http.ssl.conf files as per the new hostname (cloned VM).  After that I have restarted the apache and I did not see any error in the logs, but when I hit the URL, the content is not loading properly.

Can you please suggest me where are these Images are stored in PHP. Do i need to change any thing as per the new cloned server. Please advice.

For sure next time I will copy paste the screenshots as per your suggestion.


Thanks,

Madhukar


In reply to Madhukar Boppidi

Re: Page is not getting loaded properly

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

Got it. Cloning in your virtualization product. Apparently you've got the networking change, new IP, new domain name, Apache conf and moodle/config.php, otherwise Moodle won't have responded.

Try the the obvious ones first. Purge the browser cache. Also delete everything in moodledata/ except moodledata/filedir/. Then try.

In reply to Visvanath Ratnaweera

Re: Page is not getting loaded properly

by Madhukar Boppidi -
Thanks for your response Viswa.
I tried Purge the browser cache, but still did not worked yet.

Under Moodle data I have following directories mentioned below, can you please let me know do you want me to remove everything except moodledata/filedir

total 48
drwxrwxrwx 2 ribapp ribapp 4096 Aug 14 2013 muc
drwxrwxrwx 258 ribapp ribapp 4096 May 2 2014 filedir
drwxrwxrwx 49 ribapp ribapp 4096 Jan 26 2017 lock
-rw-rw-rw- 1 ribapp ribapp 296 Oct 13 2018 .htaccess
drwxrwxrwx 4 ribapp ribapp 4096 May 25 2019 lang
drwxrwxrwx 5 ribapp ribapp 4096 Apr 1 13:01 temp
drwxrwxrwx 5 ribapp ribapp 4096 Apr 7 07:06 trashdir
drwxrwxrwx 10 root root 4096 Apr 30 16:42 .
drwxrwxrwx 3 ribapp ribapp 4096 Apr 30 17:45 cache
drwxrwxrwx 6 ribapp ribapp 4096 Apr 30 17:45 localcache
drwxr-xr-x 18 root root 4096 May 2 14:12 ..
In reply to Madhukar Boppidi

Re: Page is not getting loaded properly

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

We are on a copy (clone) - the original is intact, right? Then what is the disaster that could happen? Whatever, this is free advice - free of any responsibility!

Yes, the next obvious thing I suggest is to delete moodledata/muc/, lock/, .htaccess, lang/, temp/, trashdir/, cache/ and localcache/. i.e. everything in moodledata/ except moodledata/filedir/.

In reply to Madhukar Boppidi

Re: Page is not getting loaded properly

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
In reply to Howard Miller

Re: Page is not getting loaded properly

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Try this - Using_slash_arguments

...that almost always means you're using nginx and haven't followed... Nginx
In reply to Howard Miller

Re: Page is not getting loaded properly

by Madhukar Boppidi -
Thanks Miller, Can you please let me know in details.
I really appreciate. Honestly I never worked on Moodle before.
In reply to Madhukar Boppidi

Re: Page is not getting loaded properly

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
See that blue text... they're links
In reply to Howard Miller

Re: Page is not getting loaded properly

by Madhukar Boppidi -
Hi Miller,

Thanks for your response, We are using Apache as web-server, as recommended in the links I have enable the following setting, but still facing the same error.

AcceptPathInfo On

I really appreciate your help on this.

Thanks,
Madhukar
In reply to Madhukar Boppidi

Re: Page is not getting loaded properly

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Ok - that's unlikely to be Apache.

Switch on Debugging (using the lines from config-dist.php) and then right click on one of the broken images and open in a new tab. Do you get error messages?
In reply to Howard Miller

Re: Page is not getting loaded properly

by Madhukar Boppidi -
Thanks Miller. Where can i find the config-dist.php.
In reply to Madhukar Boppidi

Re: Page is not getting loaded properly

by Ken Task -
Picture of Particularly helpful Moodlers

Howard must be on break .... sooo I'll 'chip in' so you can move foward ...

config-dist.php should be found in your directory for moodle code ... same location as config.php ... unless it's been removed for some reason.

'SoS', Ken

In reply to Ken Task

Re: Page is not getting loaded properly

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Even I sleep sometimes... big grin
In reply to Howard Miller

Re: Page is not getting loaded properly

by Madhukar Boppidi -
Thanks Miller,Ken, Visva...

I am in to config-dist.php and where do i need to enable debugging .... Even i check the link in Miller comment and it did not help.
In the link mentioned it is showing Site administration > Development > Debugging can i do this way.

sorryfor late reply.
In reply to Madhukar Boppidi

Re: Page is not getting loaded properly

by Madhukar Boppidi -
Hi Miller,

Can you please reply if you get a chance.

Thanks,
Madhu
In reply to Madhukar Boppidi

Re: Page is not getting loaded properly

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
In reply to Visvanath Ratnaweera

Re: Page is not getting loaded properly

by Madhukar Boppidi -
Yes Visva, Even I replied to that as well.
Do you want me to delete everything except /filedir as mentioned below. Please advice

total 48
drwxrwxrwx 2 ribapp ribapp 4096 Aug 14 2013 muc
drwxrwxrwx 258 ribapp ribapp 4096 May 2 2014 filedir
drwxrwxrwx 49 ribapp ribapp 4096 Jan 26 2017 lock
-rw-rw-rw- 1 ribapp ribapp 296 Oct 13 2018 .htaccess
drwxrwxrwx 4 ribapp ribapp 4096 May 25 2019 lang
drwxrwxrwx 5 ribapp ribapp 4096 Apr 1 13:01 temp
drwxrwxrwx 5 ribapp ribapp 4096 Apr 7 07:06 trashdir
drwxrwxrwx 10 root root 4096 Apr 30 16:42 .
drwxrwxrwx 3 ribapp ribapp 4096 Apr 30 17:45 cache
drwxrwxrwx 6 ribapp ribapp 4096 Apr 30 17:45 localcache
drwxr-xr-x 18 root root 4096 May 2 14:12 ..
[root@ENT-UT-UHMOO05 moodledata]# pwd
/opt/moodledata