Blank page during install

Blank page during install

by Tim Oppenheim -
Number of replies: 9
Hi.

I am new here and am trying to install on a shared Linux host using php 4.47 and MySQL 4.1.22. I have tried 1.8.3 and the last stable build. I have tried installing and deleting and reinstalling.

The installer stats working. it checks that I have the required php components. It starts building tables. It goes through about 4 or 5 of them and then I end on a blank page. Going to the site ( http://training.rpanashville.com) it will redirect you to admin ,so I am assuming the database has populated correctly, but the page is blank.

Any ideas as to where I strayed?

Tim
Average of ratings: -
In reply to Tim Oppenheim

Re: Blank page during install

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers

When you get a blank page, PHP is crashing before being able to send anything back to the browser, not even an error message. All you can do is enabling PHP logging and have a look there to see what's going on.

Have a look at the following URL to enable PHP error logging inside Moodle: http://docs.moodle.org/en/Installation_FAQ#Why_is_a_particular_page_blank_or_incomplete.3F

Saludos. Iñaki.

In reply to Iñaki Arenaza

Re: Blank page during install

by Mike Smith -
many thanks for your reply. I will check this out. Mike
In reply to Iñaki Arenaza

Re: Blank page during install

by Tim Oppenheim -
Thanks for that.

Okay I have enabled the two lines in a php.ini file in the moodle root, but still no joy. I don't believe that I have the same server setup as mentioned in the documents so that may not work. I have looked through my server error logs and do not have an error showing. The site is redirecting to admin/index.php.

Is there some additional error reporting I can do?

Thanks

Tim
In reply to Tim Oppenheim

Re: Blank page during install

by Richard Enison -

TO,

Are you sure the php.ini file in the "moodle root" is the active one? Why not run the phpinfo script (see http://docs.moodle.org/en/phpinfo) and it will give you the path to the active php.ini, near the top of the page. Make your change to that one, and try again.

RLE

In reply to Richard Enison

Re: Blank page during install

by Tim Oppenheim -
Richard,

Thanks for that. Okay :

/usr/local/Zend/etc/php.ini

Since this is a shared host, how can I correct? When I contacted tech support on the memory issue they inserted a php.ini file into my directory with with the memory config on it. I just added the two logging lines to that. Like this:

memory_limit = 40M
display_errors = On
display_startup_errors = On
Any other ideas? Would it be better to downgrade to an earlier version? If so what was the best release previously?

Thanks for all the help so far

Tim



In reply to Tim Oppenheim

Re: Blank page during install

by Richard Enison -

TO,

Well, one would hope that the tech support people knew what they were doing when they put the php.ini file in your folder. I was not aware you were using a shared host. In that case, the path you posted would be the default php.ini file, which you probably don't have access to. I remembered reading somewhere that you used to need multiple php.ini files until a certain version of php, and I was trying to find where that was before I posted my last post. I thought it was either in the Moodle docs or the php manual, but I couldn't find it in either place, so I'm not sure which version php started using only one ini file. Maybe it was 5.0.

If it turns out that the php.ini file in your folder is being ignored, there is one other way you might be able to change those php settings (actually, two, but the second involves programming) if you host will allow it. Is there a file called .htaccess in your folder? If not, perhaps you could create one. In either case, you can add these lines to it:

php_flag display_errors 1
php_flag display_startup_errors 1

See http://docs.moodle.org/en/Installing_Moodle#Using_a_.htaccess_file_for_webserver_and_PHP_settings. Again, this assumes you are using Apache and the host allows .htaccess files.

RLE

In reply to Richard Enison

Re: Blank page during install

by Just H -
I thought it was either in the Moodle docs or the php manual, but I couldn't find it in either place, so I'm not sure which version php started using only one ini file. Maybe it was 5.0.

Correct, (at least in my experience when I was using a hosted solution) if using a version of PHP 4 you need a custom php.ini file in all directories that has php files in them. See "Using PHP" on this site for scripts for creating, duplicating and deleting custom php.ini files.

Regards
H
In reply to Richard Enison

Re: Blank page during install

by Tim Oppenheim -
Richard,

Thanks for all this but I just not making any progress. It occurred to me that I could have a path problem. I created a subdomain (training) and linked it to my moodle directory called training at the public_html level. My moodledata directory sits on the same level as the training directory, but outside the training subdomain.

Could I have a problem with this setup? Should I set moodledata inside training so that both are pointed to from the training.rpanashville.com sub? Like I said the page redirects to admin/index.php but gives me a blank page

Sorry for the gibberish, but I really need to get this going. My hosting company ( a small orange) is excellent, but I need to know what to tell them if it's a php issue. Would I be better to host on mysql 5?

Barring that can I hire someone to help me install?

Thanks for your awesome patience. I am getting all the feedback from this forum and it is spectacular.

Tim


In reply to Tim Oppenheim

Re: Blank page during install

by Richard Enison -

TO,

Sorry we haven't been able to help you. I am assuming you have tried everything that has been suggested (like the FAQ on blank pages, the script on custom php.ini files, etc.) although you haven't explicitly said so or given detailed descriptions of the results you got, which makes it difficult to continue trying to diagnose your problem.

Could there be a problem with the setup? Maybe. I'm not sure what you mean by your moodledata folder is at the same level as the training directory, but outside the training subdomain. Whatever subdomain, it should be outside the web-accessible folder (more on this in the next paragraph), which I presume is public_html. If training and moodledata are both subfolders of public_html, that is not good.

Should moodledata be inside training? I would say no. Generally moodledata is to be kept outside the web-accessible folder for security reasons. If it must be put there, it is recommended to have a .htaccess file in it to prevent access from web browsers. See http://docs.moodle.org/en/Installing_Moodle#Creating_the_data_directory_.28moodledata.29

Would you be better with mysql 5? I know of no reason you would. Did you mean PHP 5? If so, maybe, but not 5.0.x. Use at least 5.1.

Can you hire someone to help you install? Of course. Naturally the people in charge of Moodle would prefer you hire a Moodle Partner (see moodle.com), but they are pricey. You and I are in the same country, and last time I checked it is still more or less free. I'm not going to tell you to hire me, and I'm not going to tell you not to. But if you are considering it, I should say that I am not really a Moodle expert, although sometimes it seems that way because I am a long-time programmer. Further communication along these lines should be done via private Moodle messages.

RLE