Blank Page while accessing admin/install.php

Installing and configuring Tera-WURFL on your server.

Blank Page while accessing admin/install.php

Postby venki » Thu Jun 03, 2010 12:45 pm

Hi,

I am trying to use Tera-WURFL with Redhat Linux 5 and Apache 2.2 server with Mysql5. I am getting a blank page when i enter http://localhost/Tera-WURFL/admin/install.php in my browser and hence I am not able to install. The same php file worked in windows when i tried to install it. My php is working fine and apache is also configured correctly in the Linux. Please help.

Thanks,
Venki
venki
 
Posts: 5
Joined: Thu Jun 03, 2010 12:34 pm

Re: Blank Page while accessing admin/install.php

Postby kamermans » Thu Jun 03, 2010 12:50 pm

When you get a blank page in PHP it is almost always because there was a fatal error and your installation of php is configured to suppress errors. The fastest way to see what's wrong is to look at your webserver's error_log - do you have access to that? (maybe in /var/log/apache2/error.log or similar). Also, you should check to make sure you have the MySQLi extension loaded. If you're unsure how to check this, please let me know what distro of Linux you are using; or if you are using shared hosting, what admin panel you are using (cpanel, parallels/plesk, etc...)

EDIT: Sorry, I overlooked the fact that you are using Redhat EL5. Your error log is probably in /var/log/httpd/
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: Blank Page while accessing admin/install.php

Postby venki » Thu Jun 03, 2010 3:30 pm

Hi,

I see the following errors in the log

[Thu Jun 03 14:26:54 2010] [error] [client 127.0.0.1] File does not exist: /var/www/php/favicon.ico
[Thu Jun 03 14:29:25 2010] [error] [client 127.0.0.1] PHP Fatal error: Class 'mysqli' not found in /var/www/php/Tera-WURFL/DatabaseConnectors/TeraWurflDatabase_MySQL5.php on line 477

Could you also tell me more about the MySQLi

Thanks,
Venki
venki
 
Posts: 5
Joined: Thu Jun 03, 2010 12:34 pm

Re: Blank Page while accessing admin/install.php

Postby kamermans » Thu Jun 03, 2010 4:08 pm

MySQLi is a PHP module that provides improved access to MySQL servers. On RedHat/Fedora/CentOS, the MySQLi module comes with the php-mysql. To install this, go to a Linux shell and run the following command:
Code: Select all
sudo yum install php-mysql


If it is already installed, then it's not enabled so please send me the output of this command:
Code: Select all
sudo grep -Ri mysqli /etc/php*


Here's some good info on MySQLi: http://us.php.net/manual/en/mysqli.overview.php
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: Blank Page while accessing admin/install.php

Postby venki » Thu Jun 03, 2010 4:24 pm

The following were the o/p of both the commands

sudo yum install php-mysql

Loaded plugins: rhnplugin, security
There was an error communicating with RHN.
RHN support will be disabled.
Error communicating with server. The message was:

Error Message:
Please run rhn_register as root on this client
Error Class Code: 9
Error Class Info: Invalid System Credentials.
Explanation:
An error has occurred while processing your request. If this problem
persists please enter a bug report at bugzilla.redhat.com.
If you choose to submit the bug report, please be sure to include
details of what you were trying to do when this error occurred and
details on how to reproduce this problem.

Setting up Install Process
No package php-mysql available.
Nothing to do

sudo grep -Ri mysqli /etc/php*

;extension=php_mysqli.dll
[MySQLi]
; http://php.net/mysqli.max-persistent
mysqli.max_persistent = -1
; http://php.net/mysqli.allow_local_infile
;mysqli.allow_local_infile = On
; http://php.net/mysqli.allow-persistent
mysqli.allow_persistent = On
; http://php.net/mysqli.max-links
mysqli.max_links = -1
; http://php.net/mysqli.cache_size
mysqli.cache_size = 2000
; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
; http://php.net/mysqli.default-port
mysqli.default_port = 3306
; http://php.net/mysqli.default-socket
mysqli.default_socket =
; http://php.net/mysqli.default-host
mysqli.default_host =
; http://php.net/mysqli.default-user
mysqli.default_user =
; Default password for mysqli_connect() (doesn't apply in safe mode).
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; http://php.net/mysqli.default-pw
mysqli.default_pw =
mysqli.reconnect = Off
venki
 
Posts: 5
Joined: Thu Jun 03, 2010 12:34 pm

Re: Blank Page while accessing admin/install.php

Postby kamermans » Thu Jun 03, 2010 4:30 pm

Ok, it looks like it's not installed, can you run this command please?:
Code: Select all
locate *.so | grep mysqli


You should see something like this:
Code: Select all
# locate *.so | grep mysqli
/usr/lib/php/modules/mysqli.so
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: Blank Page while accessing admin/install.php

Postby kamermans » Thu Jun 03, 2010 4:31 pm

By the way, the reason yum install php-mysql didn't work is because your copy of RedHat is not registered with the RedHat Network (RHN) - until you register it you will not be able to easily update/install new packages.
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: Blank Page while accessing admin/install.php

Postby kamermans » Thu Jun 03, 2010 4:36 pm

Could you also run this? Based on the output I will provide you a link to download and install the correct php-mysql package for your system.
Code: Select all
rpm -q php && rpm -q php-mysql && uname -a && cat /etc/redhat-release


On one of my Fedora servers, this is the output, it should be similar for you:
Code: Select all
php-5.2.4-3
php-mysql-5.2.4-3
Linux *myhostname* 2.6.24.5-85.fc8 #1 SMP Sat Apr 19 12:39:34 EDT 2008 i686 i686 i386 GNU/Linux
Fedora release 8 (Werewolf)
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: Blank Page while accessing admin/install.php

Postby venki » Thu Jun 03, 2010 4:51 pm

I am getting nothing for locate *.so | grep mysqli and for
rpm -q php && rpm -q php-mysql && uname -a && cat /etc/redhat-release
package php is not installed

But if i put a php file say test.php and enter http://localhost/test.php it runs perfectly

I did not install php as a rpm package i followed instructions from http://www.lamphowto.com/
venki
 
Posts: 5
Joined: Thu Jun 03, 2010 12:34 pm

Re: Blank Page while accessing admin/install.php

Postby kamermans » Thu Jun 03, 2010 4:56 pm

Interesting. Do you know what version of php you have? (you can run this from the shell: php -r 'echo PHP_VERSION."\n";')
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Next

Return to Installation / Configuration

Who is online

Users browsing this forum: No registered users and 3 guests

cron