Example:
www home dir: /var/www/test/public
core dir: /var/www/test/core
Base URL: http://localhost/test/
git clone https://github.com/cash168/test-work.git
cd test-work/
cp -r core/ /var/www/test/
cp -r public/ /var/www/test/
cd /var/www/test/
-
Edit /var/www/test/public/coreconfig.php set core directory:
$coreDir='/var/www/test/core';
-
Edit /var/www/test/core/config.php set smarty directory, site URL and mysql settings:
//smarty config
$smartyDir='/var/www/test/core/smarty';
$smartyTemplateDir='/var/www/test/core/templates';
$smartysetCompileDir='/var/www/test/core/templates_c';
$smartysetCacheDir='/var/www/test/core/cache';
//base site url
$baseUrl='http://localhost/test';
//MySQL
$mysqlServer="DBSERVER";
$mysqlUser="BDUSER";
$mysqlPass="DBPASSWORD";
$mysqlDB="test";
-
Create DB test and import test.sql
-
Open URL http://localhost/test/ and login
user: test
password: test