Home - TeamHangLoose/sa2014 GitHub Wiki

Welcome to the sa2014 wiki!


This article describe how to run the site in a few steps on your enviromnent.

Recommendations: NETBEANS, APACHE Web Server, PHP, MySQL, Composer

  1. Clone or download the complete source code to your desktop.

  2. Start Netbeans. In the Projects area, choose PHP Application with Existing Sources and click Next. The New PHP Project > Name and Location panel opens. In the Project Name text field, enter the name of the project. In the Project Name text field, enter the name of the project. In the Sources Folder field, specify the folder from where you want to import the source files. From the Default Encoding dropdown list, choose the default encoding for your project. If you want to store NetBeans metadata in a different location than your source files, select "Put NetBeans metadata into a separate directory." For example, you might want to store your sources in your document root but the NetBeans metadata in your NetBeansProjects directory

  3. Browse in Netbeans to sa2014/source Files/config/autoload/doctrineconnection.local.php

  4. Create a new database in MySQL with: Create database 'YOUR DATABASENAME'

  5. Put the folow code in there (doctrineconnection.php) <?php return array( 'doctrine' => array( 'connection' => array( 'orm_default' => array( 'driverClass' =>'Doctrine\DBAL\Driver\PDOMySql\Driver', 'params' => array( 'host' => 'localhost', 'port' => '3306', 'user' => 'DeinUser', 'password' => 'DeinPasswort', 'dbname' => 'DeineDatenBank', )))));

  6. Go to your hosts file in your OS and create a new entry like: 127.0.0.1 sa2014.local

  7. In the php installtion folder search tthe php.ini file. Follow extensions must be enabled by erase the #

` extension=php_openssl.dll`

` extension=php_pdo_mysql.dll`

` extension=php_fileinfo.dll`

` extension=php_gd2.dll`

`extension=php_mysql.dll`

`extension=php_fileinfo.dll `

`extension=php_gd2.dll `

  1. Go to your apache installation folder and edit the vhost file. copy and paste the folloew code in. <VirtualHost *:80> ServerName sa2014.local ServerAlias sa2014.local ServerAdmin administrator DocumentRoot "C:/YOUR PROJECT DESTINATION FOLDER /public" ErrorLog "logs/localhost.is-by.us-error.log" CustomLog "logs/localhost.is-by.us-access.log" common <Directory "C:/ YOUR PROJECT DESTINATION FOLDER /public"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> </VirtualHost>

  2. Restart your apache web service

  3. Open up cmd and browse to your Installation folder.

  4. Enter in cmd composer install

  5. Enter in cmd composer update

  6. Open up cmd and browse to your Installation folder vendor/bin/

  7. Enter in cmd doctrine-module orm:validate-schema and doctrine-module orm:schema-tool:create

  8. Go to your MySQL Installation and put the follow code per command line on your database:

    `INSERT INTO `role` (`id`, `parent_id`, `roleId`) VALUES (1, NULL, 'guest');`

    `INSERT INTO `role` (`id`, `parent_id`, `roleId`) VALUES (2, 1, 'user');`

    `INSERT INTO `role` (`id`, `parent_id`, `roleId`) VALUES (3, 2, 'admin');`

⚠️ **GitHub.com Fallback** ⚠️