cscfi / cakephp-rr
CakePHP 资源注册表
dev-master
2021-09-17 03:27 UTC
Requires
- php: >=5.6
- cakephp/cakephp: 3.8.*
- cakephp/migrations: ^2.0.0
- cakephp/plugin-installer: ^1.0
- league/oauth2-client: ^2.4
- mobiledetect/mobiledetectlib: 2.*
- muffin/oauth2: ^1.1
Requires (Dev)
- cakephp/bake: ^1.9.0
- cakephp/cakephp-codesniffer: ^3.0
- cakephp/debug_kit: ^3.17.0
- josegonzalez/dotenv: 3.*
- phpunit/phpunit: ^5|^6
- psy/psysh: @stable
Suggests
- dereuromark/cakephp-ide-helper: After baking your code, this keeps your annotations in sync with the code evolving from there on for maximum IDE and PHPStan compatibility.
- markstory/asset_compress: An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.
This package is auto-updated.
Last update: 2024-09-21 23:00:32 UTC
README
CakePHP 资源注册表,用于管理具有用户身份验证的 OIDC 依赖方,并为 Shibboleth IdP OIDC 扩展发布 oidc 元数据文件。
安装
服务器
yum install epel-release yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum install -y yum-utils yum-config-manager --disable remi-php54 yum-config-manager --enable remi-php73 yum install php composer httpd unzip mc
CakeRR
- 下载 Composer 或更新
composer self-update
。
安装 CakePHP 项目
cd /var/www
composer create-project cscfi/cakephp-rr cakephp-rr --stability dev
创建 logs/tmp 目录并配置 selinux
chown apache /var/www/html/logs -R
chown apache /var/www/html/tmp -R
chcon --type httpd_sys_rw_content_t /var/www/html/logs/ -R
chcon --type httpd_sys_rw_content_t /var/www/html/tmp/ -R
配置 Apache 网络服务器
systemctl start httpd
systemctl enable httpd
编辑 /etc/httpd/conf/httpd.conf 允许 .htaccess 文件
<Directory /var/www/html>
AllowOverride All
</Directory>
配置数据库
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
您现在可以使用机器的网络服务器查看默认主页,或者使用以下命令启动内置网络服务器:
bin/cake server -p 8765
然后访问 https://:8765
以查看欢迎页面。
更新
由于此骨架是您应用程序的起点,并且各种文件已根据您的需求进行了修改,因此无法提供自动升级,您必须手动进行更新。
配置
阅读并编辑 config/app.php
并设置 'Datasources'
以及与应用程序相关的任何其他配置。您还需要在此处定义以下内容。
'client_secret' => '<SECRET>',
'auth_url' => 'https://<HOST>/',
'redirect_url' => 'https://<HOST>/',
迁移数据库模式
./bin/cake migrations migrate
布局
默认情况下,应用程序骨架使用 Foundation (v5) CSS 框架的一个子集。但是,您可以将其替换为任何其他库或自定义样式。