Install trouble

Please post all install related problems here. Visit this forum first for troubleshooting.
Davies FS
Posts: 18
Joined: Fri 13. Aug 2004, 13:00

Install trouble

Post by Davies FS »

When I installed my WCMS thing I got up to the part where it asks you to enter admin details. After entering all the details i clicked next and it kept saying there was a problem with the admin username and password. After 20 goes with no success I accidentaly did not click the "create admin account" and when i clicked next it went to the next step. After I finished the install the index came up and when I clicked login I got this:

Warning: main(./include/inc_lib/default.inc.php): failed to open stream: No such file or directory in /home2/daviesfs/public_html/login.php on line 27

Fatal error: main(): Failed opening required './include/inc_lib/default.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/daviesfs/public_html/login.php on line 27

And then when I try to go to index.php this comes up:
Warning: main(include/inc_lib/default.inc.php): failed to open stream: No such file or directory in /home2/daviesfs/public_html/index.php on line 38

Fatal error: main(): Failed opening required 'include/inc_lib/default.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/daviesfs/public_html/index.php on line 38

Help would be great !
Pappnase

Post by Pappnase »

hello

please post your conf.inc.php without password!
are at the last step all pathes marked green!?
wich version did you use!?
Davies FS
Posts: 18
Joined: Fri 13. Aug 2004, 13:00

Post by Davies FS »

Ok heres the conf.inc.php:
<?php

// database values
$phpwcms["db_host"] = "localhost";
$phpwcms["db_user"] = "daviesfs_svr";
$phpwcms["db_pass"] = "******";
$phpwcms["db_table"] = "daviesfs_localhost";
$phpwcms["db_prepend"] = "";
$phpwcms["db_pers"] = 1;

// site values
$phpwcms["site"] = "http://www.daviesfs.fs9.org/";
$phpwcms["admin_email"] = "djbailey90@hotmail.com";

// paths
$phpwcms["root"] = ""; //default: ""
$phpwcms["file_path"] = "phpwcms_filestorage"; //default: "phpwcms_filestorage"
$phpwcms["file_tmp"] = "phpwcms_tmp"; //default: "phpwcms_tmp"
$phpwcms["templates"] = "phpwcms_template"; //default: "phpwcms_template"
$phpwcms["dir_thlist"] = "thumb_list"; //default: "thumb_list"
$phpwcms["dir_preview"] = "thumb_preview"; //default: "thumb_preview"
$phpwcms["content_path"] = "content"; //default: "content"
$phpwcms["cimage_path"] = "images"; //default: "images"
$phpwcms["ftp_path"] = "phpwcms_ftp"; //default: "phpwcms_ftp"

// content values
$phpwcms["file_maxsize"] = 2097152; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"] = 538; //max width of the article content column - important for rendering multi column images
$phpwcms["img_list_width"] = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"] = 75; //max height of the list thumbnail image
$phpwcms["img_prev_width"] = 538; //max width of the large preview image
$phpwcms["img_prev_height"] = 400; //max height of the large preview image
$phpwcms["max_time"] = 1800; //logout after max_time/60 seconds

// other stuff
$phpwcms["compress_page"] = 0; //0 = OFF, 1-9: page compression ON (1 = low level, 9 = highest level)
$phpwcms["imagick"] = 0; //0 = GD, 1 = ImageMagick, 2 = ImageMagick 4.2.9
$phpwcms["imagick_path"] = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"] = 1; //0 = GD1, 1 = GD2
$phpwcms["rewrite_url"] = 0; //whether URL should be rewritable
$phpwcms["wysiwyg_editor"] = 3; //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
$phpwcms["phpmyadmin"] = 1; //enable/disable phpMyAdmin in Backend
$phpwcms["default_lang"] = "en"; //default language
$phpwcms["charset"] = "iso-8859-1"; //default charset 'iso-8859-1'
$phpwcms["allow_remote_URL"] = 0; //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed
$phpwcms["gt_mod"] = 0; //0 = Graphical Text MOD disabled, 1 = enabled

// dynamic ssl encryption engine
$phpwcms["site_ssl_mode"] = '0'; // tuns the SSL Support of WCMS on(1) or off (0) DEFAULT '0'
$phpwcms["site_ssl_url"] = ''; //URL assigned to the SSL Certificate. DON'T add a slash at the End! Exp. "https://www.yourdomainhere.tld"
$phpwcms["site_ssl_port"] = '443'; //The Port on which you SSL Service serve the secure Sites. Servers DEFAULT is '443'

// smtp values
$phpwcms['SMTP_FROM_EMAIL'] = 'daviesfs@yahoo.com'; // reply/from email address
$phpwcms['SMTP_FROM_NAME'] = 'Davies Flight Simulation Team'; // reply/from name
$phpwcms['SMTP_HOST'] = 'localhost'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT'] = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER'] = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH'] = 0; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER'] = ''; // default SMTP login (user) name
$phpwcms['SMTP_PASS'] = ''; // default SMTP password


// Try to check and uncomment the DOCUMENT_ROOT if you have problems
// often neccessary on IIS or default MacOS X webserver settings
// Do not use backslash "\" on Windows - always replace "\" by "/"
//$_SERVER['DOCUMENT_ROOT'] = '/home2/daviesfs/public_html';


?>

I used the phpwcms_1.1-RC4_2004-06-22 version and some of the things were red but I fixed them and they all came up green.

Thanks for the help
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Your login.php -and- index.php errors both seem to indicate problem with "general.inc.php". Have you confirmed that it is there in subfolder "/include/inc_lib"?? If so, also should check CHMOD for that folder path down to "general.inc.php". Make sure folders are 755 and files 644.
Davies FS
Posts: 18
Joined: Fri 13. Aug 2004, 13:00

Post by Davies FS »

Well it seems there was an error uploadeing the include file. I am missing about 10 of the sub files included the lib one so I will reinstall and tell you the results.
Davies FS
Posts: 18
Joined: Fri 13. Aug 2004, 13:00

Post by Davies FS »

Ok it still won't let me enter admin info, when I click create admin account it just comes up with an error saying please correct username and password. Help again please :P.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Have you tried the defaults? Or the original first one? Okay, I see this error:
Error while trying to connect to table "daviesfs_localhost"
Have you confirmed that the database tables got created? Is that the right name for the database? If so, you might want to delete all the tables that phpWCMS created and run setup again.

OK... now this is the error:
Warning: mysql_pconnect(): Access denied for user: 'daviesfs_svr@localhost' (Using password: YES) in /home2/daviesfs/public_html/include/inc_lib/default.inc.php on line 25
Error while trying to connect to localhost
Are the user/pass still correct in "conf.inc.php"?

Oops, back to this:
Error while trying to connect to table "daviesfs_localhost"
Davies FS
Posts: 18
Joined: Fri 13. Aug 2004, 13:00

Post by Davies FS »

Ok I just deleted the first database and made a new one but it still seems to come up with that same message only with the new DB name on it. When I told it to create DB tables on the installer it came up saying that could not be done and it would only let me continue if I selected use persistent db con. And it still wouldn't let me create and Admin user and pass.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Since it says "access denied" I can only assume that it doesn't like either the db_host, db_user, db_pass or db_table names in "config.inc.php"?? You have created a database named "daviesfs_localhost" CORRECT? And the username for that is now... "daviesfs_one" CORRECT? And you have used your control panel or phpMyAdmin to confirm that it exists?
Davies FS
Posts: 18
Joined: Fri 13. Aug 2004, 13:00

Post by Davies FS »

No the database name now is daviesfs_server. How can this help, should I show you the config again?
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

First, confirm a few things...

- Can you examine the database named "daviesfs_server" and see any tables that phpWCMS might have created?
Davies FS
Posts: 18
Joined: Fri 13. Aug 2004, 13:00

Post by Davies FS »

Umm I am very new to this, how do I see the tables it created? Do go to my domain cpanel?
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Probably, if you don't have access to phpMyAdmin :wink:

Maybe it's called something like "MySQL Management" in the CPanel
Davies FS
Posts: 18
Joined: Fri 13. Aug 2004, 13:00

Post by Davies FS »

Ok I have PHP My admin, where do I go inside that?
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

If you only have created one database... the left portion of window should show table structure of the database and name should be at the top above the window (and below the word HOME). If not find a link named databases.
Last edited by DeXXus on Fri 13. Aug 2004, 14:50, edited 1 time in total.
Post Reply