Error in default.inc.php

Please post all install related problems here. Visit this forum first for troubleshooting.
Post Reply
jaap
Posts: 3
Joined: Sat 8. May 2004, 02:14

Error in default.inc.php

Post by jaap »

phpWCMS looks a great program! After installation and creating the database tables I encountered a problem during the first time use. The following error occurred:

Warning: mysql_pconnect(): Access denied for user: 'wwwrun@localhost' (Using password: NO) in /home/sites/site4/web/php/cms1/include/inc_lib/default.inc.php on line 25
Error while trying to connect to localhost

These are the lines, which I made during setup and which gave a succesfull table creation:

<?php

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

// site values
$phpwcms["site"] = "http://pro.xt.nl/";
$phpwcms["admin_email"] = "mail@xt.nl";

// paths
$phpwcms["root"] = "php/cms1"; //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"


I hope it's a simple problem and somebody will be able to provide a solution. All the best!
Pappnase

Post by Pappnase »

hello

sorry are you sure that this is the right login for the database!?
SNap
Posts: 314
Joined: Wed 5. May 2004, 10:45
Location: Passau, Bavaria, Germany
Contact:

Re: Error in default.inc.php

Post by SNap »

jaap wrote:Warning: mysql_pconnect(): Access denied for user: 'wwwrun@localhost' (Using password: NO) in /home/sites/site4/web/php/cms1/include/inc_lib/default.inc.php on line 25
Error while trying to connect to localhost
jaap wrote: $phpwcms["db_user"] = "shopuser";
so which one is correct?
'welcome to the real world!' datensysteme-lenk
jaap
Posts: 3
Joined: Sat 8. May 2004, 02:14

Thanks for your replies

Post by jaap »

The user "shopuser" is the indicated username. With this username and corresponding password I managed to complete the setup and the tables were automatically created.

The user "wwwrun" does not exist in my MySQL database. So I don't know where this username originates from.

Any more suggestions?

Thanks for your help.
sayitfast1
Posts: 21
Joined: Fri 5. Mar 2004, 07:32

Post by sayitfast1 »

I get this sometimes when I do not have the correct permissions set on some files....
jaap
Posts: 3
Joined: Sat 8. May 2004, 02:14

Problem solved

Post by jaap »

Thanks for your advice. I changed permissions in some include submaps and now it runs perfect.
Pappnase

Re: Problem solved

Post by Pappnase »

jaap wrote:Thanks for your advice. I changed permissions in some include submaps and now it runs perfect.
hello

could you tell us wich one's!? maybe sombody get's this problem also!
Post Reply