cscfi / cakephp-rr
CakePHP Resource registry
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 3
Type:project
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 resource registry for managing OIDC Relying Parties with User authentication and oidc metadata file publishing for Shibboleth IdP OIDC extension.
Installation
Server
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
- Download Composer or update
composer self-update
.
Install CakePHP project
cd /var/www
composer create-project cscfi/cakephp-rr cakephp-rr --stability dev
Create logs/tmp directories and configure selinux for em
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
configure Apache web server
systemctl start httpd
systemctl enable httpd
edit /etc/httpd/conf/httpd.conf for allowing .htaccess files
<Directory /var/www/html>
AllowOverride All
</Directory>
Configure database
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
You can now either use your machine's webserver to view the default home page, or start up the built-in webserver with:
bin/cake server -p 8765
Then visit http://localhost:8765
to see the welcome page.
Update
Since this skeleton is a starting point for your application and various files would have been modified as per your needs, there isn't a way to provide automated upgrades, so you have to do any updates manually.
Configuration
Read and edit config/app.php
and setup the 'Datasources'
and any other
configuration relevant for your application. You also need following defined here.
'client_secret' => '<SECRET>',
'auth_url' => 'https://<HOST>/',
'redirect_url' => 'https://<HOST>/',
Migrate database schema
./bin/cake migrations migrate
Layout
The app skeleton uses a subset of Foundation (v5) CSS framework by default. You can, however, replace it with any other library or custom styles.