Basic Slim Micro PHP Framework with Twig, Idiorm and SAML2 tutoring application
- Validate that PHP, all the needed PHP extensions and essential build packages are installed
- Debian:
apt-get install php5 build-essential git curl php5-curl php5-gmp php5-mcrypt mysql-server mysql-client mbstring
- Ubuntu:
apt-get install got curl php5-gmp
- Clone this repository Install on a directory at your choice:
git clone [email protected]:sa8-webrtc/webtut-frontend.git
- Download composer.phar following the instructions on https://getcomposer.org/download/
- execute
./composer.phar update
- Debian: Don't use the nodejs package from standard repo (uninstall if installed
apt-get remove nodejs
) but instead use these instructions for install: https://github.com/nodesource/distributions - For Node.js v4.x:
curl -sL https://deb.nodesource.com/setup_4.x | bash -
apt-get install -y nodejs
- CentOS:
yum install npm
- Install node depencies for this project:
npm install
grunt bootstrap
(really needed?)grunt dist
- If you want to define a database, please edit models/Database.mysql and change "webtut" database name to what you require.
- Import sql-database:
mysql -u root -p < models/Database.mysql
cp app/config-dist.php app/config.php
and edit your config.php (db password, usernames, paths, ..)
Validate that the /cache and the /logs directory exist and are on the same user:group as the webserver
On /html/.htaccess-dist there are references to a rewrite rule. Validate that does reflect your instalation. Copy it as .htaccess. Enable Apache to use .htaccess configuration directives.
On /httpd there is also an examples of a configuration file that may be used if you preffer to configure Apache directly.
- If you need debug info, set the environment variable "deploy_mode" to "development"
- ext/mcrypt
- ext/openssl
- ext/mbstring