Make sure that your environment has proper software versions.
- PHP version
5.6. - Composer has version 1.6.3.
- Create a MariaDB (recommened) or a
MySql database; you'll need the database
host,name,userandpasswordshortly.
Create a MariaDB (recommened) or a
MySql database; you'll need the database
host, name, user and password shortly.
Clone the code:
git clone --branch=develop https://github.com/bellcom/seas-nve
cd seas-nveInstall composer packages (you'll be asked for database and mailer settings during the installation):
SYMFONY_ENV=prod composer install --no-dev --optimize-autoloader
Install assets and update the database schema:
SYMFONY_ENV=prod app/console assets:install --symlink
SYMFONY_ENV=prod app/console cache:clear --no-warmup
SYMFONY_ENV=prod app/console cache:warmup
SYMFONY_ENV=prod app/console doctrine:migrations:migrate --no-interaction
SYMFONY_ENV=prod app/console aaplus:post-migrate
SYMFONY_ENV=prod app/console aaplus:post-migrate:20160711133430Set file system permissions: https://symfony.com/doc/2.7/setup/file_permissions.html
Create a super administrator user:
SYMFONY_ENV=prod app/console fos:user:create --super-adminFinally, set up a web server as described on https://symfony.com/doc/2.7/setup/web_server_configuration.html.
After all installation steps it's possible you will get errors for some pages.
-
Configuration pages
/belysningtiltagdetail_nytarmaturand/belysningtiltagdetail_erstatningslyskilderequiresintlphp extension on server. -
General configuration page
/configuration. Configuration entity has inconsistency in default values for keysmtmFaellesomkostningerNulHvisArealMindreEndandmtmFaellesomkostningerNulHvisTotalEntreprisesumMindreEnd. You can updateConfigurationtable manually and set these keys as nullable. -
Create building page
/bygning/newrequires groups:Aa+,Rådgiver,Interessentin system. These groups are not created by default. You can add/(copy and rename) them in db (fos_grouptable) manually. -
Project includes pdf converting process that based on KnpSnappyBundle component. It requires wkhtmltopdf
>= 0.12.2tool to be install on server.
4.1 You may need to add you project host to /etc/hosts, to allow wkhtmltopdf tool resolves paths to images and sources from html content that going to be converted.
4.2 Allow system save temporary data to tmp folder. Check key sys_temp_dir and set it to accessible for webserver directory.