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 196thank 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: "" I setup "charset=iso-8859-1" in the original installation.
Thanx for listening :-)