Page 1 of 1

setup phpWCMS local / how to configure right?

Posted: Mon 24. Jan 2005, 10:53
by cyrano
GOT IT, read more at the end :-)


Hi i try to setup a local phpwcms version from an online working version.

I changed in conf.inc.php

Code: Select all

$phpwcms["db_host"]           = "localhost";
$phpwcms["db_user"]           = "root";
$phpwcms["db_pass"]           = "";
$phpwcms["db_table"]          = "tablename";
$phpwcms["db_prepend"]        = "";
$phpwcms["db_pers"]           = 1;

// site values
$phpwcms["site"]              = "";
$phpwcms["admin_email"]       = "";

I changed the name of the sql backup as i named the local db name.

changed in db.sql also the host and db name to local name, but get this errors:




Code: Select all

Warning: main(H:/xampp/htdocs/include/inc_front/content.article.inc.php) [function.main]: failed to open stream: No such file or directory in H:\xampp\htdocs\wd\include\inc_front\content.func.inc.php on line 196

Warning: main() [function.include]: Failed opening 'H:/xampp/htdocs/include/inc_front/content.article.inc.php' for inclusion (include_path='.;H:\xampp\php\pear\') in H:\xampp\htdocs\wd\include\inc_front\content.func.inc.php on line 196
what's to do?

thank you for tips and suggestions.

Running XAMPP 1.4.11 under WIN XP

NOT REALLY SOLVED:
Changed also the subfolder in "root" to the folder that contains wcms :-)
Turned off rewrite URL too and it works now.

Works still in frontend.
When I want to login I got a failed error.

This works now when access direct in frontend status, but when going to the login section and want to login i still got the errors displayed that i described above.
Uff.

So what did i wrong in configuration?

SOLVED NOW:
I have to give my root also the folders name with host "http://localhost/" then it works in both ways - frontend and backend.

Code: Select all

$phpwcms["db_host"]           = "localhost";
$phpwcms["db_user"]           = "root";
$phpwcms["db_pass"]           = "";
$phpwcms["db_table"]          = "tablename";
$phpwcms["db_prepend"]        = "";
$phpwcms["db_pers"]           = 1;

// site values
$phpwcms["site"]              = "http://localhost";
$phpwcms["admin_email"]       = "";

// paths
$phpwcms["root"]               = "foldername";         //default: "" 
One error occures: I did not get displayed the german Umlaute correct (like ä,ü,ö). what's do to therefore?
I setup "charset=iso-8859-1" in the original installation.

Thanx for listening :-)

Posted: Mon 24. Jan 2005, 11:24
by Mike1
I use this:

Code: Select all

// database values
$phpwcms["db_host"]           = "localhost";
$phpwcms["db_user"]           = "db_user";
$phpwcms["db_pass"]           = "db_pass";
$phpwcms["db_table"]          = "db_table";
$phpwcms["db_prepend"]        = "";
$phpwcms["db_pers"]           = 0;

// site values
$phpwcms["site"]              = "http://localhost/";
$phpwcms["admin_email"]       = "info@mail.com";

// paths
$phpwcms["root"]         		= "";         //default: ""


etc

Posted: Mon 24. Jan 2005, 11:54
by cyrano
hi mike1;

thankx for your reply.

I changed aas you mentioned but still got errors.

I only can fix it when changing in conf.inc.php the root directory.

When i want to login i leave it empty, when looking the site in frontend status i give the folder name there.

strange.