php works - blank page

php works - blank page

by Satu Peltonen -
Number of replies: 10

Please help me, I've worked hours to find answer but...

First time installation successed. During the installation process (when checking my PHP settings), I got warnings about gd and memory limit. So I installed newer versions from php to get gd. Phhh... Now Moodle installation ends after database information. Just blank page. No error messages in apache logfiles.

I can try to install moodle over and over again if I reopen browser. btw I've tried to use IE and netscape.

<? phpinfo() ?>  works

I have updated apache and changed mysql-rpm (now back to src-version) without any luck.

My plattform now:

RedHat Linux 7.2, Apache-1.3.31 (rpm), php-4.2.2-4.a (rpm), mysql-3.23.49a (src)

Average of ratings: -
In reply to Satu Peltonen

Re: php works - blank page

by Herbert Keijers -
Have you checked the output of phpinfo ?
What are the readings on GD and MEMORY_LIMIT ?
Have you also updated the php-mysql rpm ?

Can you give the location of your file, containing <? phpinfo() ?> ?

In reply to Herbert Keijers

Re: php works - blank page

by Satu Peltonen -

smile 

Memory limit 8M, GD Support enabled, GD Version 1.6.2 or higher

http://www.doipcenter.com/test.php

I use mod_php:

rpm -q mod_php
mod_php-4.2.2-4.arvin.rh7.2

I turned error messaging on and got following:

Fatal error: Call to undefined function: mysql_connect() in /home/http/htdocs/moodle/lib/adodb/drivers/adodb-mysql.inc.php on line 340

what does it mean?

In reply to Satu Peltonen

Re: php works - blank page

by Samuli Karevaara -
Satu, in the php.ini the MySQL module is not active. Find the line
;extension=php_mysql.dll
in php.ini and remove the ";" in front of the line.
In reply to Samuli Karevaara

Re: php works - blank page

by Herbert Keijers -
Samuli,
I don't think Satu is on a Window's system ...
Neverteless you are right that his problem is with the mysql daemon since no items related to mysql are returned in phpinfo.

Satu, first you should fix your mysql problem. See if it is running on your system.
(Ignore (first) my other post ... )
Sorry blush
In reply to Herbert Keijers

Re: php works - blank page

by Samuli Karevaara -
Herbert, yes, my bad. No need to push the dll hell smile

However, I don't think that phpinfo ever shows if MySQL is running or not, just if the currently set up PHP supports MySQL functions.
In reply to Samuli Karevaara

Re: php works - blank page

by Herbert Keijers -
Correct !
The more I think about Satu 's problem, the more I am convinced that the php-mysql rpm should be installed to let php talk to the mysql daemon.

In reply to Satu Peltonen

Re: php works - blank page

by Herbert Keijers -
Looks like your value of "memory_limit" should be increased.
You wil find it in /etc , look for php.ini . Look for the value of memory_limit and set it for example to 32M (or even more).

Can you also check on the admin pages of moodle what you get for memory_limit ? (using the php-info button)
Normally an "good" installation of Moodle will adapt the memory limit.
Can you check if safe_mode=Off in your php.ini file ?

Can you check if mysql is running ?
In reply to Satu Peltonen

Re: php works - blank page

by Satu Peltonen -

Thank you from helping me! This is really a swamp!

OK, I've increased memory_limit to 32M, safe_mode= off, Mysql is running.

I didn't find any suitable php-mysql-rpm to php-4.2.2 so I upgraded (again) php-4.3.2.

Then I had to install (again) MySQL-server +client 4.0.21-0. After that I was able to install php-mysql-4.3.2

When restarting apache I got error message: Cannot load /etc/httpd/modules/libphp4.so into server: /etc/httpd/modules/libphp4.so: undefined symbol: __gmp_randinit_lc_2exp_size

Perhaps apache and php versions wasn't comatible? I couldn't find newer apcache. Rather install whole new Linux distribution.

I had to downgrade php back to 4.2.2 to get apache work.sad 

Any hints?

In reply to Satu Peltonen

Re: php works - blank page

by Herbert Keijers -
I feel with you in the swamp ...smile
The best I can come up with is to do a ldd (man ldd) on libphp4.so

Perhaps this gives some clues ...
Good luck!
In reply to Satu Peltonen

Re: php works - blank page

by Satu Peltonen -

Problem solved - finally!

I think the main issue was incompatible version of php.

I downgraded php to version I started with (php-4.2.2 > php-4.1.2). Even gd is now working!! surprise

This lady is quite stubborn, I'am afraid wink Thanks again!