Problem installation

17 replies
gangan
gangan's picture
Joined: 05/28/2009
User offline. Last seen 51 weeks 2 days ago.

hello all,

I have a problem during the installation
after installation, at this URL http://ip/green/login.php is empty, all the screen is white
nothing in /var/log/httpd/error.log
nothing in /var/log/greesql/grennsql.log
I use the documentation present in this site

Same with php verbose, nothing white screen

an idea ?

thanks in advance

yuli
yuli's picture
Joined: 01/30/2008
User offline. Last seen 2 days 2 hours ago.

It looks very strange. Can you create a simple test.php file and place it to the application sources.

This test.php file can contain the following commands:
<?php
phpinfo();
?>

Open it in the browser and check if you are getting PHP information:
http://ip/green/test.php

Yuli

gangan
gangan's picture
Joined: 05/28/2009
User offline. Last seen 51 weeks 2 days ago.
yuli
yuli's picture
Joined: 01/30/2008
User offline. Last seen 2 days 2 hours ago.

Hello

We need to enable additional PHP debugging in order to find the exact problem.

Can you please add the following lines to login.php script at the beginning after "<?php":


ini_set('display_errors',1);
error_reporting(E_ALL);

Thanks,
Yuli

gangan
gangan's picture
Joined: 05/28/2009
User offline. Last seen 51 weeks 2 days ago.

I do this modification in login.php and my /etc/php.ini have display_errors On
the url is always empty.

http://92.243.22.49/green/login.php

thanks for your help

yuli
yuli's picture
Joined: 01/30/2008
User offline. Last seen 2 days 2 hours ago.

Hello

Can you tell me what are the permissions of the "templates", "templates_c", "libs" and "images" directories ?

Yuli

gangan
gangan's picture
Joined: 05/28/2009
User offline. Last seen 51 weeks 2 days ago.

drwxr-xr-x 2 backuppc backuppc 4096 Jul 11 13:41 templates
drwxrwxrwx 2 backuppc backuppc 4096 Jul 11 13:41 templates_c
drwxr-xr-x 4 backuppc backuppc 4096 Jul 11 13:41 libs
drwxr-xr-x 2 backuppc backuppc 4096 Jul 11 13:41 images

backuppc is my user apache2

yuli
yuli's picture
Joined: 01/30/2008
User offline. Last seen 2 days 2 hours ago.

I got another ideas:

1. Enable debugging in smarty PHP template engine. Open lib.php file and add the following :

$smarty->debugging = TRUE;
after the following line:
$smarty = new Smarty;

2. Check apache access and error logs.

Yuli

gangan
gangan's picture
Joined: 05/28/2009
User offline. Last seen 51 weeks 2 days ago.

[Mon Jul 27 21:56:46 2009] [error] [client 85.250.130.145] File does not exist: /var/www/html/favicon.ico
[Mon Jul 27 22:28:51 2009] [error] [client 85.250.130.145] File does not exist: /var/www/html/favicon.ico
[Mon Jul 27 22:29:17 2009] [error] [client 85.250.130.145] File does not exist: /var/www/html/green/templates/style.css, referer: http://92.243.22.49/green/templates/login.tpl
[Mon Jul 27 22:29:54 2009] [error] [client 85.250.130.145] File does not exist: /var/www/html/green/lib
[Mon Jul 27 22:33:10 2009] [error] [client 213.89.30.135] File does not exist: /var/www/html/favicon.ico
[Mon Jul 27 22:33:13 2009] [error] [client 213.89.30.135] File does not exist: /var/www/html/favicon.ico
[Mon Jul 27 22:33:23 2009] [error] [client 85.250.130.145] File does not exist: /var/www/html/green/templates_c/newes.txt
[Mon Jul 27 22:33:27 2009] [error] [client 85.250.130.145] File does not exist: /var/www/html/green/templates_c/news.txt
[Mon Jul 27 23:24:02 2009] [error] [client 82.67.23.91] File does not exist: /var/www/html/favicon.ico
[Mon Jul 27 23:24:04 2009] [error] [client 82.67.23.91] File does not exist: /var/www/html/favicon.ico

gangan
gangan's picture
Joined: 05/28/2009
User offline. Last seen 51 weeks 2 days ago.

[Mon Jul 27 21:56:46 2009] [error] [client 85.250.130.145] File does not exist: /var/www/html/favicon.ico
[Mon Jul 27 22:28:51 2009] [error] [client 85.250.130.145] File does not exist: /var/www/html/favicon.ico
[Mon Jul 27 22:29:17 2009] [error] [client 85.250.130.145] File does not exist: /var/www/html/green/templates/style.css, referer: http://92.243.22.49/green/templates/login.tpl
[Mon Jul 27 22:29:54 2009] [error] [client 85.250.130.145] File does not exist: /var/www/html/green/lib
[Mon Jul 27 22:33:10 2009] [error] [client 213.89.30.135] File does not exist: /var/www/html/favicon.ico
[Mon Jul 27 22:33:13 2009] [error] [client 213.89.30.135] File does not exist: /var/www/html/favicon.ico
[Mon Jul 27 22:33:23 2009] [error] [client 85.250.130.145] File does not exist: /var/www/html/green/templates_c/newes.txt
[Mon Jul 27 22:33:27 2009] [error] [client 85.250.130.145] File does not exist: /var/www/html/green/templates_c/news.txt
[Mon Jul 27 23:24:02 2009] [error] [client 82.67.23.91] File does not exist: /var/www/html/favicon.ico
[Mon Jul 27 23:24:04 2009] [error] [client 82.67.23.91] File does not exist: /var/www/html/favicon.ico

yuli
yuli's picture
Joined: 01/30/2008
User offline. Last seen 2 days 2 hours ago.

Hello

I have just one solution for you. You need to add debug messages to the script.

You can simple do it by adding print messages to the code:
print "1";

Do it after each line in login.php script. Increase number after each line. If the script hangs in lib.php script - you need to add printing of messages to this script as well.

Hope this will help us to detect the real problem.

Yuli

gangan
gangan's picture
Joined: 05/28/2009
User offline. Last seen 51 weeks 2 days ago.

i have :

Warning: session_start() [function.session-start]: open(/var/lib/php/session/sess_884b0s1ap5d1t23vlgv0enci54, O_RDWR) failed: Permission denied (13) in /var/www/html/green/login.php on line 6

at url : http://92.243.22.49/green/login.php

yuli
yuli's picture
Joined: 01/30/2008
User offline. Last seen 2 days 2 hours ago.

Hello

Looks like you have a problem creating a session file. Can you run the following command to make session directory writable:

chmod 0777 /var/lib/php/session

PS. Check that this directory exist. If not create one.

Thanks,
Yuli

gangan
gangan's picture
Joined: 05/28/2009
User offline. Last seen 51 weeks 2 days ago.

if i do this :

cd /var/lib/php/
chown -R backuppc: session/

i haven't an error

always print : 1

http://92.243.22.49/green/login.php

yuli
yuli's picture
Joined: 01/30/2008
User offline. Last seen 2 days 2 hours ago.

Hello

Can you add print command to different lines of the login.php file with different value.

For example (login.php file):


<?php
print 'login1';
session_start();
print 'login2';
$_SESSION['login'] = 1;
print 'login3;
require 'lib.php';
print 'login4';
global $demo_version;
print 'login5';
global $smarty;
..........

If the script is stuck in lib.php please add printing to it as well.

Yuli

annie
annie's picture
Joined: 01/30/2010
User offline. Last seen 25 weeks 3 days ago.

Thanks for the post. Keep the great work.

BlueClaw
BlueClaw's picture
Joined: 05/21/2010
User offline. Last seen 5 weeks 6 days ago.

Was a solution found?
I'm in the adding print statement stage.
Thanks
John

BlueClaw
BlueClaw's picture
Joined: 05/21/2010
User offline. Last seen 5 weeks 6 days ago.

Solution:
yum install php-mysql

Back to top