setup phpWCMS local / how to configure right?

Post non-phpwcms related topics here - but I don't want to see "hey check this or that other cms". Post if you have a point or worthwhile comment, don't post just to increase you post count!
Post Reply
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

setup phpWCMS local / how to configure right?

Post 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 :-)
Last edited by cyrano on Mon 24. Jan 2005, 12:00, edited 4 times in total.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
Mike1
Posts: 70
Joined: Thu 10. Jun 2004, 13:39

Post 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
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post 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.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
Post Reply