PDA

View Full Version : missing index.php after install


webUser
02-26-2004, 03:42 PM
hi,

I want to use phpdig, took the following steps:

1. Downloaded the latest version of the search engine software - phpdig-1.8.0.zip
2. Unzipped the file to /usr/local/phpdig/.
3. Added a directory entry to Apache's httpd.conf.
4. Created a "phpdig" database in MySQL.
5. Used the init_db.sql file to populate the database with the required tabled. Verified that the tables are created. The tables are empty to start with... is that OK?
6. Copied _connect.php to connect.php and made the necessary changes to "dbprefix", "host", "username" and "password" settings in connect.php.
7. Tried to access http://<server>/phpdig/index.php, and "FILE NOT FOUND" error shows up. Looked at /usr/local/phpdig/ and there IS NO index.php file. There is a index.php file in [PHPDIG]/admin/. Trying to access that just shows up an empty browser window... nothing renders on the screen.

WHAT AM I MISSING...??? :bang:

Somebody help, please!

Charter
02-26-2004, 03:52 PM
Hi. Try accessing http://www.domain.com/phpdig/search.php for the search page. You can change search.php to index.php by setting SEARCH_PAGE in the config file and making sure that the PHP search file matches the same name. As for accessing the admin/index.php page, do you get a popup box asking for a username and password?

webUser
02-26-2004, 04:07 PM
Thanks for getting back so quickly. I tried to access http://<server>/phpdig/search.php... and a blank browser screen is all I get. Same as with http://<server>/admin/index.php...

I put in a test.php file with phpinfo(); in /usr/local/phpdig/ and accessed the file through the browser/server. The PHP information is rendered in the browser as expected. So I am not sure what is wrong.

Also, I do not get any authentication dialog box when I access the http://<server>/admin/index.php (or install.php) page.

:(

Charter
02-26-2004, 04:12 PM
Hi. Try calling connect.php directly from the browser. Does it say anything? Did you change the directory structure that came with PhpDig?

webUser
02-27-2004, 02:42 AM
I accessed http://<server>/includes/connect.php directly, and the blank browser screen appears again. I tried in Netscape and Opera as well, just to make sure this was not an IE quirk, and the same behavior persists.

I did not change the directory structure internal to phpdig. I only uncompressed phpdig-1.8.0.zip to /usr/local/phpdig.

Thanks for your continued and quick support...

webUser
02-27-2004, 02:51 AM
I had another related question... on the download page for phpdig-1.8.0.zip, there is an archive content section that lists all the files as part of this install archive. The first entry is "/index.php".

But, when I uncompress the .zip file, there IS NO index.php in the root path of the archive; although there is such a file at [PHPDIR]/admin/index.php.

I copied /usr/local/phpdir/admin/index.php to /usr/local/phpdir/index.php... there are additional errors related to files being referenced relative to the path /usr/local/phpdir/admin/ and not /usr/local/phpdir/.

Charter
02-27-2004, 09:15 AM
>> ...archive content section that lists ... there IS NO index.php in the root path of the archive...

Hi. The index.php file was replaced with the search.php file, and the archive content section updated. However, this is not the problem.

I'm not sure about steps two and three that were performed. PhpDig should go in a web accessible area like so:

/usr/local/apache/htdocs/phpdig/

What OS/setup are you running?

webUser
02-27-2004, 10:42 AM
Hi,

I am using Enterprise Redhat Linux 2.1 with Apache Web Server.

By extracting phpdig-1.8.0.zip to /usr/local/phpdig/, I had to create a Directory entry in Apache's httpd.conf file, anaologous to creating a virtual directory entry in IIS.

To anyway ensure that was not the problem, I removed the directory entry and moved the phpdig/ folder under the default Apache DocumentRoot at /var/www/html/.

The behaviour is still the same... :(

tomas
02-27-2004, 11:28 AM
hi,

try this:

- craete a new folder named phpdig
- unzip phpdig-1.8.0.zip into this folder
- upload this folder via ftp to /var/www/html
- set folder temp (/var/www/html/phpdig/admin/temp) to 777
- set folder includes (/var/www/html/phpdig/includes) to 777
- set folder text_content (/var/www/html/phpdig/text_content) to 777
- set config.php (/var/www/html/phpdig/includes/config.php)
define('PHPDIG_ADM_AUTH','1'); to define('PHPDIG_ADM_AUTH','0');
- call http://your_server_ip(eg. 192.168.1.1)/phpdig/admin/install.php

what happens?

tomas