yiichina / yii2-cms Goto Github PK
View Code? Open in Web Editor NEWYiiCMS - 基于 Yii2 的高度可定制化开源 CMS
Home Page: https://www.yiicms.com
License: Other
YiiCMS - 基于 Yii2 的高度可定制化开源 CMS
Home Page: https://www.yiicms.com
License: Other
竟然没找到哪里有写默认的帐号密码。
m130524_201442_init 里面如果设置数据库为$tableOptions = 'CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ENGINE=InnoDB';
会报下面的错误;
Apply the above migrations? (yes|no) [no]:yes
*** applying m130524_201442_init
create table {{%user}} ...Exception 'yii\db\Exception' with message 'SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
The SQL being executed was: CREATE TABLE user (
id int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
username varchar(255) NOT NULL UNIQUE,
auth_key varchar(32) NOT NULL,
password_hash varchar(255) NOT NULL,
password_reset_token varchar(255) UNIQUE,
email varchar(255) NOT NULL UNIQUE,
status smallint(6) NOT NULL DEFAULT 10,
created_at int(11) NOT NULL,
updated_at int(11) NOT NULL
) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ENGINE=InnoDB'
in E:\Code\richin-cms\vendor\yiisoft\yii2\db\Schema.php:664
Error Info:
Array
(
[0] => 42000
[1] => 1071
[2] => Specified key was too long; max key length is 767 bytes
)
could not find package yiichina/yii-cms with stablity stable.
Yii Migration Tool (based on Yii v2.0.32)
Creating migration history table "migration"...Done.
Total 3 new migrations to be applied:
m130524_201442_init
m140506_102106_rbac_init
m170717_850926_app_init
Apply the above migrations? (yes|no) [no]:yes
*** applying m130524_201442_init
> create table {{%user}} ... done (time: 0.023s)
> create table {{%auth}} ... done (time: 0.012s)
> add foreign key fk-auth-user_id-user-id: auth (user_id) references user (id) ... done (time: 0.041s)
*** applied m130524_201442_init (time: 0.677s)
*** applying m140506_102106_rbac_init
Error: Failed to instantiate component or class "dektrium\rbac\components\DbManager".
后台admin默认密码是什么?
when I visited:
http://www.yiicms.com/
it show:
Welcome to nginx on Fedora!
This page is used to test the proper operation of the nginx HTTP server after it has been installed. If you can read this page, it means that the web server installed at this site is working properly.
Website Administrator
This is the default index.html page that is distributed with nginx on Fedora. It is located in /usr/share/nginx/html.
You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /etc/nginx/nginx.conf.
[ Powered by nginx ] [ Powered by Fedora ]
Invalid Configuration – yii\base\InvalidConfigException
The table does not exist: {{%pubport}}
基本都可以跑起来,但是后台登录后提示:
The file or directory to be published does not exist: /Users/apple/docker/wwwroot/yii2-cms/vendor/bower-asset/chart.js/dist
参考了一些解决办法,好像不太行
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.