Total Pageviews

Tuesday, 17 June 2014

在linux vps上搭建基于php+mysql的建站程序-october

cd /var/www
git clone https://github.com/octobercms/october
cd october

root@as3:/var/www/october# ls
app        CHANGELOG.md   index.php        phpunit.xml  server.php  uploads
artisan    composer.json  modules          plugins      tests      
bootstrap  phpdoc.dist.xml  README.md    themes
root@as3:/var/www/october# composer.phar install

Open the file app/config/app.php and set the following array values:

'url' => 'http://yourwebsite.com', // Your website address

'key' => 'UNIQUE_ENCRYPTION_KEY',  // Pick a unique encryption key

Open the file app/config/cms.php and set the following array values:

'activeTheme' => 'demo',           // Enter the active theme to use

'backendUri' => '/backend',        // Optional, customize your backend URL

Open the file app/config/database.php and set the database configuration values.

Next, run the CLI update process, this will build the database tables:

php artisan october:up

You can sign in to the back-end area using the default username admin and password

admin.(from http://octobercms.com/docs/help/console#console-install,
http://octobercms.com/docs/help/installation)

访问http://as3.brite.biz/october/即可看到网站效果。
http://as3.brite.biz/october/test1
http://as3.brite.biz/october/test2
http://as3.brite.biz/october/chinese-economy
http://as3.brite.biz/october/jingle-bell
登录地址:http://as3.brite.biz/october/backend/,登录后,访问
http://as3.brite.biz/october/backend/backend/users/mysettings以更改密码.