Author Topic: config.php file STILL doesn't work?  (Read 22668 times)

0 Members and 1 Guest are viewing this topic.

Offline macgeekjay

  • Newbie
  • *
  • Posts: 10
    • View Profile
config.php file STILL doesn't work?
« on: April 30, 2003, 10:16:08 PM »
http://www.agentnine.com/4images/index.php

It always goes to the install.php file which has been deleted. I know, I've checked the FAQ page and fixed the config.php file and uploaded it with the proper information.

STILL no luck!!!!

Any ideas?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
config.php file STILL doesn't work?
« Reply #1 on: April 30, 2003, 10:35:29 PM »
Link is broken.

Would u post entire config.php code here?
(remove username password for security reason)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
config.php file STILL doesn't work?
« Reply #2 on: April 30, 2003, 10:52:05 PM »
Perhaps your web site isn't configured to return index.php as a default page.

In the base root directory for your web site, create (or edit) a file named ".htaccess" without the quotes (") of course.  The file name must begin with a period (.)  Inside, place this line:
Code: [Select]
DirectoryIndex index.php index.htm index.html index.cgi

Offline macgeekjay

  • Newbie
  • *
  • Posts: 10
    • View Profile
config.php file STILL doesn't work?
« Reply #3 on: April 30, 2003, 11:06:02 PM »
I believe it is set up to use index.php files as defult as I've got a couple other sites on this same server using PHP just fine.

MY CONFIG.PHP FILE

Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File&#58; config.php                                           *
 *        Copyright&#58; &#40;C&#41; 2002 Jan Sorgalla                                *
 *            Email&#58; jan@4homepages.de                                    *
 *              Web&#58; http&#58;//www.4homepages.de                             *
 *    Scriptversion&#58; 1.7                                                  *
 *                                                                        *
 *    Never released without support from&#58; Nicky &#40;http&#58;//www.nicky.net&#41;   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen &#40;Lizenz.txt&#41; für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    &#40;Licence.txt&#41; for further information.                              *
 *                                                                        *
 *************************************************************************/

$db_servertype  =  "mysql" ;  
$db_host  =  "localhost" ;  
$db_name  =  "agentnine_com" ;  
$db_user  =  "agentnine" ;  
$db_password  =  "******" ;  

$table_prefix  =  "4images_" ;

define &#40;'4IMAGES_ACTIVE' ,  1&#41;;  

?>

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
config.php file STILL doesn't work?
« Reply #4 on: April 30, 2003, 11:14:28 PM »
there is defenetly something wrong with your config (looks fine to me though)
here is an error when I try open config.php:
Quote
Parse error: parse error in /home/virtual/site133/fst/var/www/html/4images/config.php on line 25


what editor do u use?
maybe try remove spaces before each ; (I doubt that's the problem though)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline macgeekjay

  • Newbie
  • *
  • Posts: 10
    • View Profile
config.php file STILL doesn't work?
« Reply #5 on: April 30, 2003, 11:23:00 PM »
I deleted the spaces and everything and still no luck.

What are the permissions supposed to be set to on this congif.php file?

I used Dreamweaver to edit the original PHP file. But just tried TextEdit and deleted little crosses that were added to the file....


... upload....

.. 777 ...

OOO! A different error!

Warning:  Access denied for user: 'apache@localhost' (Using password: YES) in /home/virtual/site133/fst/var/www/html/4images/includes/db_mysql.php on line 39
 
 Warning:  MySQL Connection Failed: Access denied for user: 'apache@localhost' (Using password: YES)  in /home/virtual/site133/fst/var/www/html/4images/includes/db_mysql.php on line 39
 
DB Error: Could not connect to the database server (localhost, ).

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
config.php file STILL doesn't work?
« Reply #6 on: April 30, 2003, 11:33:38 PM »
Quote from: macgeekjay
Warning:  Access denied for user: 'apache@localhost' (Using password: YES) in /home/virtual/site133/fst/var/www/html/4images/includes/db_mysql.php on line 39
 
 Warning:  MySQL Connection Failed: Access denied for user: 'apache@localhost' (Using password: YES)  in /home/virtual/site133/fst/var/www/html/4images/includes/db_mysql.php on line 39
 
DB Error: Could not connect to the database server (localhost, ).

Alright, this is much better ;)
this means, that username / password were denied at the DB server.
check again the settings, or ask your host.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline macgeekjay

  • Newbie
  • *
  • Posts: 10
    • View Profile
config.php file STILL doesn't work?
« Reply #7 on: May 01, 2003, 12:04:27 AM »
YEAH!

It's gettin there!! Now the page loads but with a couple errors....

Warning:  Cannot add header information - headers already sent by (output started at /home/virtual/site133/fst/var/www/html/4images/config.php:37) in /home/virtual/site133/fst/var/www/html/4images/includes/sessions.php on line 85
 
 Warning:  Cannot add header information - headers already sent by (output started at /home/virtual/site133/fst/var/www/html/4images/config.php:37) in /home/virtual/site133/fst/var/www/html/4images/includes/sessions.php on line 85
 
 Warning:  Cannot add header information - headers already sent by (output started at /home/virtual/site133/fst/var/www/html/4images/config.php:37) in /home/virtual/site133/fst/var/www/html/4images/includes/sessions.php on line 85

Offline macgeekjay

  • Newbie
  • *
  • Posts: 10
    • View Profile
config.php file STILL doesn't work?
« Reply #8 on: May 01, 2003, 12:06:51 AM »
Dang. I can't even get into the Admin area. I get a ton more errors.....

Warning:  Cannot add header information - headers already sent by (output started at /home/virtual/site133/fst/var/www/html/4images/config.php:37) in /home/virtual/site133/fst/var/www/html/4images/admin/admin_functions.php on line 168
 
 Warning:  Cannot add header information - headers already sent by (output started at /home/virtual/site133/fst/var/www/html/4images/config.php:37) in /home/virtual/site133/fst/var/www/html/4images/admin/admin_functions.php on line 169
 
 Warning:  Cannot add header information - headers already sent by (output started at /home/virtual/site133/fst/var/www/html/4images/config.php:37) in /home/virtual/site133/fst/var/www/html/4images/admin/admin_functions.php on line 170
 
 Warning:  Cannot add header information - headers already sent by (output started at /home/virtual/site133/fst/var/www/html/4images/config.php:37) in /home/virtual/site133/fst/var/www/html/4images/admin/admin_functions.php on line 171
 
 Warning:  Cannot add header information - headers already sent by (output started at /home/virtual/site133/fst/var/www/html/4images/config.php:37) in /home/virtual/site133/fst/var/www/html/4images/admin/admin_functions.php on line 172


ARG!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
config.php file STILL doesn't work?
« Reply #9 on: May 01, 2003, 12:33:11 AM »
make sure in your config.php nothing after closing ?> not even space!
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline macgeekjay

  • Newbie
  • *
  • Posts: 10
    • View Profile
config.php file STILL doesn't work?
« Reply #10 on: May 01, 2003, 12:36:48 AM »
THIS THING ROCKS!!!

*phew*

Thanks so much!!!!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
config.php file STILL doesn't work?
« Reply #11 on: May 01, 2003, 01:17:31 AM »
check folders permissions (CHMOD - u can find the settings in the /docs/installation.txt)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline macgeekjay

  • Newbie
  • *
  • Posts: 10
    • View Profile
config.php file STILL doesn't work?
« Reply #12 on: May 01, 2003, 01:32:42 AM »
Two last questions:

Isn't there supposed to be an "upload" button/link for registered users to upload images?

I checked the box in the Control Panel to Auto Create Thumbnails (instead of people having to upload a seperate thumbnail) but it's not doing it. Do I ALWAYS have to go in and create the thumbnails for missing thumbnails Manually???


THANKS!

Offline ImaginaryInk

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://www.imaginaryink.com
Similar Problem
« Reply #13 on: May 02, 2003, 05:20:50 AM »
This is the closest that I have found to my problem, maybe someone can help.

My message is:


Warning: main(./lang/deutsch/install.php) [function.main]: failed to create stream: No such file or directory in /home/monica/public_html/4images/install.php on line 84

Warning: main() [function.main]: Failed opening './lang/deutsch/install.php' for inclusion (include_path='') in /home/monica/public_html/4images/install.php on line 84

Warning: Cannot modify header information - headers already sent by (output started at /home/monica/public_html/4images/install.php:84) in /home/monica/public_html/4images/install.php on line 100

Warning: Cannot modify header information - headers already sent by (output started at /home/monica/public_html/4images/install.php:84) in /home/monica/public_html/4images/install.php on line 101
<?php /



I tried making sure that there was no space at the end of  config.inc.php
what else would anyone suggest???  HELP PLEASE!!!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
config.php file STILL doesn't work?
« Reply #14 on: May 02, 2003, 09:38:44 AM »
did u edit any other files?
did u correctly CHMOD folders/files ?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)