Got it!
I went through my old installation and compared with the new fresh one. It turned out that I had to do the following changes:
in
include/inc_lib/default.inc.php:
1. Change the real path to use the physical path instead of using the $_SERVER['DOCUMENT_ROOT'] :
from
Code: Select all
define ("PHPWCMS_ROOT", preg_replace('/\/$/', '', $_SERVER['DOCUMENT_ROOT']).(($phpwcms["root"]) ? "/".$phpwcms["root"] : "") ); // DOCUMENT_ROOT + phpwcms directory
to
Code: Select all
define ("PHPWCMS_ROOT", preg_replace('/\/$/', '', "/Users/my_username/Sites/phpwcms").(($phpwcms["root"]) ? "/".$phpwcms["root"] : "") ); // DOCUMENT_ROOT + phpwcms directory
in
include/inc_conf/cinf.inc.php:
2. Change the site variable from
Code: Select all
$phpwcms["site"] = "http://localhost/";
to
Code: Select all
$phpwcms["site"] = "http://mypowerbook.local/~my_username/phpwcms/";
3. Change the root from
Code: Select all
$phpwcms["root"] = "~my_username/phpwcms";
to
Now I can finally edit my articles!