Blank page on http://localhost/moodle

Blank page on http://localhost/moodle

بواسطة - Abhishek Sharma
عدد الردود: 8

Hi There ,

I've downloaded moodle and used the installation guide to install the moodle .

I'm a sys admin for a company, before I use it on a server for testing purpose i

tried to use it on localhost on centos . As per requirements i've apache web server  , php

all updated versions .

I've created new Db and user and associated that user with the Db and all the steps were in place

now when I started the installation with opening the http://localhost/moodle , first I for

error about the configuration i sorted that , it was because of the permissions .

Now my consern is that when I open http://localhost/moodle It gives me blank screen

 

I've studied all the forums but no go , I tried moodle 2.0 there i've also checked with the

config.php file also no go , now i've installed moodle 1.9 no go .

 

Need helpحزين

 

Thanks

متوسط التقييمات: -
رداً على Abhishek Sharma

Re: Blank page on http://localhost/moodle

بواسطة - Luis de Vasconcelos
صورة Particularly helpful Moodlers

Switch on the debugging functions in Moodle and PHP. Moodle should then display some error messages that will indicate what is wrong.

How did you install Moodle? 

رداً على Luis de Vasconcelos

Re: Blank page on http://localhost/moodle

بواسطة - Abhishek Sharma

This blank screen thing got rectified the problem was the location of the file moodle was

put into , now as its path is /var/www its getting me to the installation screen . But i'm

struck with other problems now as I tried it on live server now because its not working on

centos , so on the live server I can now upgrade the Php version now because that can be

a problem , I'm having 5.2.4 but that requires 5.2.8 ....

And I'm installing moodle on remote server ?

2)But the problem on centos is the same as I still see the blank page ..

 

Installation process used :

Downloaded the .tar file from moodle/downloads version MOODLE_20_STABLE

and unzipped it then created DB and user ...then tried to check in http://localhost/moodle

on centos

and for server http://118.0.0.0/moodle ---In this I can see the installation screen wher i

have error for the php version

But on the localhost I still dont see the installation screen ...

Thanks Luis for the response

رداً على Abhishek Sharma

Re: Blank page on http://localhost/moodle

بواسطة - Andrey Pryakhin

Did you try to type http://localhost/moodle/, with "/" at the end or even http://localhost/moodle/index.php ?

رداً على Andrey Pryakhin

Re: Blank page on http://localhost/moodle

بواسطة - Abhishek Sharma

Yes I tired both ....but the same blank page . Now is this the right location for the application

/var/www/moodle  for a localhost ? This is what I'm using on both server as well as localhost

.

رداً على Abhishek Sharma

Re: Blank page on http://localhost/moodle

بواسطة - Andrey Pryakhin
Check that your php match appropriate version of moodle as documented in the requirements for moodle. Uninstall all previous/earlier versions of php. Check that your pages start with <?php not with <? (due to short_open_tag is set to off) Check if your php5 is configured with "AddType application/x-httpd-php5 .php". I am not very familiar with CentOS and cannot tell you where exactly it should be. Make a simple php_info.php ----- <?php phpinfo(); ?> --- don't put any cr/lf or spaces after ending bracket Place it to your moodle directory and try to open http://localhost/moodle/phpinfo.php
رداً على Abhishek Sharma

Re: Blank page on http://localhost/moodle

بواسطة - Andrey Pryakhin

check also that your moodle data directory has write permission for www-data user or apache user

رداً على Andrey Pryakhin

Re: Blank page on http://localhost/moodle

بواسطة - Abhishek Sharma

Thanks Andrey I'm checking that now , Now the other concern is that on the live server

I've to install moodle Now the very first installation screen i get is to select the languge that

goes well but the next screen where it checks all the requirements it gives me an error

"Version 5.2.8 is required and you are running 5.2.4-2ubuntu5.10" But the version I

upgraded now was php5.3 .

Steps taken to install :

-downloaded php-5.3.6.tar.gz

-Unzipped on the server

in /root/php5.3/  directory used ./configure , make, make install to install it

And when i see php -v on server it shows 5.3 but the http://118.0.0.0/moodle/install.php

page give that error ?

رداً على Abhishek Sharma

Re: Blank page on http://localhost/moodle

بواسطة - Abhishek Sharma

HI,

I've everything sorted out the only concern is about this error check :

Server checks

Name Information Report Status
php
version 5.2.8 is required and you are running 5.2.4.2.5.17version 5.2.8 is required and you are running 5.2.4.2.5.17 Check

The above check status is in red , i've two php packages in this server one is php and another is php5 and by default its taking php5 and i tried to upgrade php but only php is upgrading not the php5 ..

Any help would be appreciated!