Flux IT Document Manager Test is a simple document manager system. It was developed for apply to a job at Flux IT.
As it is a Web Application, you need to have installed at least this packages:
$ apache2
$ mysql-server
$ php5-cli
$ php-pear
$ libapache2-mod-php5
$ php5-mysqlnd
$ git-core (for clonning the repository)
First of all, check that your WebServer is running here
After that, it is recommended that you edit your /etc/hosts file and put this line:
$ 127.0.0.1 flux_docs.local
Now, you have to set-up a VirtualHost. As an example, you have to make one like this:
<virtualhost *:80>
ServerName flux_docs.local
DocumentRoot "/path/to/project/flux_docs/web"
DirectoryIndex index.php
<directory "/path/to/project/flux_docs/web">
AllowOverride All
Allow from All
</directory>
Alias /sf /path/to/project/flux_docs/lib/vendor/symfony/data/web/sf
<directory /path/to/project/flux_docs/lib/vendor/symfony/data/web/sf>
AllowOverride All
Allow from All
</directory>
</virtualhost>
And of course, enable it with:
$# a2ensite flux_docs (if you named the VH 'flux_docs')
The PHP5 Apache2 Module and Rewrite:
$# a2enmod php5
$# a2enmod rewrite
$# service apache2 restart
This is a PHP Symfony 1.4 App, so, you need to check your environment, with this script at the root of the project:
$ php check_configuration.php
Keep in mind that is recommended that all the items listed by the check script say OK.
After that, you have to edit config/databases.yml and set-up your DB configuration.
Once you have done that, run the following commands:
$ php symfony doctrine:build --all [y]
$ php symfony doctrine:data-load
$ php symfony guard:create-user [email protected] admin admin
$ mkdir cache
$ mkdir log
$ chmod +w cache
$ chmod +w log
$ php symfony cc
Please make the cache and log folders, with write permissions.
Set-up project permissions:
$ php symfony project:permission
If for any reason, Symfony can't set permissions because of the lack of system privileges for the logged user, please run that command as root.
Also, if Apache2 is always showing the default "It's works" page, and you are not expert setting up a WebServer, you should disable the 'default' site:
$ a2dissite default
$ service apache2 restart
That's all.
If you are a developer, the best way is to navigate the site with the prefix backend_dev.php; but you won't see any custom error page.
If you have edited your /etc/hosts file with the line above, you can start to browse the app at this address
If it doesn't work, see what's happening in your Apache2 config file.