PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 08-13-2004, 12:50 AM   #1
BebopBogo
Green Mole
 
Join Date: Aug 2004
Posts: 3
Empty index.php screen after install

I am trying to install phpdig on my website. I followed the install instructions exactly but ran into some problems. The first time, I tried using the install.php script, but after fliling in the fields and clicking 'install' I got a blank mozilla window. So the second time I did everything manually, creating the database, configuring connect.php, etc. However, accessing http://www.mywebsite.com/phpdig-1.8.3/index.php resulted in the same problem: a blank, white, mozilla screen that simply sits there forever. No timeouts or anything.

Any help would be appreciated.

Adam

I'm on RH9 running Apache 2.0.4 and mySQL-standard 4.0.20.
<host>: 'localhost'
<user>: 'root'
<pass>: ''
<database>: phpdig
BebopBogo is offline   Reply With Quote
Old 08-13-2004, 04:27 AM   #2
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
Welcome to the forum, BebopBogo.

There are a lot of things that can trip you up in getting phpdig setup and installed. Did you go through the quick installation directions? If not, make sure you have done everything that says, then read through the rest of the documentation on that page to see if there is anything you'd like to customize.

Let us know how it goes, and if you still have any problems. We'll be glad to help.
vinyl-junkie is offline   Reply With Quote
Old 08-13-2004, 10:08 AM   #3
BebopBogo
Green Mole
 
Join Date: Aug 2004
Posts: 3
Yeah, I followed the quick install directions first, but the script didn't work (the first blank white page). I then continued down the page and followed those directions, creating the mysql database and everything by hand. After that, the index.php page was white.

The instructions seemed pretty clear, and I went through them quite a bit. Do you think the problem could be with mySQL? Is there any way to debug the index.php file? (You know, at least get SOMETHING to show on the mozilla screen...) I am a programmer in Java, C/C++, some bash, but just starting in php.

mySQL seems like the only thing that could be wrong... unless Apache is having troubles. Anything else to add to the list?

--Adam
BebopBogo is offline   Reply With Quote
Old 08-13-2004, 05:55 PM   #4
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
Well, go through all the setup instructions and just double-check to make sure everything is setup according to that.

The only time I got a blank screen like that was when I customized the template with something that didn't work. Have you done anything like that?

It's usually some little thing you missed somewhere.

Let us know if you still need help. We don't give up easily around here.
vinyl-junkie is offline   Reply With Quote
Old 08-15-2004, 03:31 PM   #5
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi, you wrote that you go to http://www.mywebsite.com/phpdig-1.8.3/index.php but what happens if you go to http://www.mywebsite.com/phpdig-1.8.3/admin/index.php or http://www.mywebsite.com/phpdig-1.8.3/search.php?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 08-17-2004, 08:31 PM   #6
BebopBogo
Green Mole
 
Join Date: Aug 2004
Posts: 3
Perhaps this is the problem:
PHP version: 4.2.2
Apache version: 2.0.40

Anyway, since our last posts, I have learned a lot more PHP and have added debug comments to see the flow of the scripts and how they relate to eachother. I may have found a potential problem. But first I'll answer the last post's questions:

The blank page after running the install.php script made me doubt it's usefulness. So I checked
# mysql
> show databases
which resulted in
mysql
test
and nothing more. As I suspected, the script failed somewhere. So I created the database myself, then checked it:

# mysql
mysql> create database phpdig;
mysql> quit
# mysql phpdig < /home/becker/www/phpdig-1.8.3/sql/init_db.sql
mysql> show tables;

+------------------+
| Tables_in_phpdig |
+------------------+
| clicks |
| engine |
| excludes |
| includes |
| keywords |
| logs |
| site_page |
| sites |
| sites_days_upd |
| spider |
| tempspider |
+------------------+
11 rows in set (0.00 sec)

Good. I moved on to rename _connect.php to connect.php and modified the 5 'defines' to '', 'localhost', 'root', 'mypassword', 'phpdig' and saved it.

I then opened http://adambecker.homelinux.com:888/....8.3/index.php and ... Object not found. index.php turned out to be in the admin directory. So I tried http://adambecker.homelinux.com:888/...dmin/index.php and ... blank white page. So I moved index.php from the admin dir to the base dir and once again ran the first URL and got a bunch of errors like, "Warning: Failed opening '../includes/config.php' for inclusion." index.php defenitely belongs in the admin dir.

According to the directions, the search page should be visible from the index.php page. Now it's on to unexplored territory!

http://blahblah.com:888/search.php also resulted in a blank white page.

-------------------------------------------------

Stuck there. So I started over again and tried to figure out why the install.php script wouldn't work. I added a bunch of debugging 'echo' statements as I traced the scripts. I found that connect.php was never accessed because the no_connect variable was set to zero at the beginning of the install.php script. After tracing code for another hour, I finally went back and changed the no_connect to 1. It finally accessed the connect.php script, but gave an error, "no such command: mysql_connect" or something like that. I can connect to mysql via 'mysql --host='localhost' --usr='root' --password='mypass'' so I know that's possible.

Now I'm done and ready to give up. Maybe one more try after I upgrade php and apache... whew, this is a lot of work!
BebopBogo is offline   Reply With Quote
Old 08-17-2004, 09:14 PM   #7
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi, don't move the files around. The default admin page location is http://adambecker.homelinux.com:888/phpdig-1.8.3/admin/index.php and the default search page location is http://adambecker.homelinux.com:888/phpdig-1.8.3/search.php. The HTML source of the search page gives just <html><body></body></html> so maybe this is a PHP configuration issue? Check your error logs for possible clues.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blank screen with install.php russh Script Installation 11 05-10-2005 10:33 AM
PHP Install? ergobob How-to Forum 3 07-09-2004 05:43 PM
search.php and blank screen gymsmoke Script Installation 1 04-04-2004 06:10 AM
missing index.php after install webUser Script Installation 8 02-27-2004 10:28 AM
$argc and $argv are empty when running spider.php from the shell bsw114 Mod Submissions 1 02-20-2004 07:52 AM


All times are GMT -8. The time now is 05:57 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.