Tag Archives: FusionInvoice

FusionInvoice installation on LAMP

FusionInvoice installation on Linux / Apache / MySQL / PHP (LAMP) with czech language support
https://www.fusioninvoice.com/

aptitude install apache2 mysql-server php5 php5-mcrypt php5-mysql

mkdir /var/www/fusion
cd /var/www/
wget -O fusion.zip https://www.fusioninvoice.com/download_file/15/install
unzip fusion.zip
rm -f fusion.zip
mv FusionInvoice-1.3.5-full/ fusion

mkdir /var/www/fusion/application/language/cz_CZ
cd /var/www/fusion/application/language/cz_CZ
wget -O fusion-translation.zip https://crowdin.net/download/project/fusioninvoice.zip
unzip -j fusion-translation.zip cs/application/language/* .
rm -f fusion-translation.zip

cd /var/www
chown -R www-data:www-data fusion

mysql -u root -p

CREATE DATABASE `fusion`;
CREATE USER `fusion`;
SET PASSWORD FOR 'fusion' = PASSWORD('mysecretpassword');
GRANT ALL PRIVILEGES ON `fusion`.* TO 'fusion'@'localhost' IDENTIFIED BY 'mysecretpassword';
FLUSH PRIVILEGES;
EXIT

rm -f ~/.mysql_history

/var/www/fusion/application/config/config.php
Replace

$config['index_page'] = 'index.php';

with
$config['index_page'] = '';

/var/www/fusion/application/config/database.php

$db['default']['username'] = 'fusion';
$db['default']['password'] = 'mysecretpassword';
$db['default']['database'] = 'fusion';

/var/www/fusion/.htaccess

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]

/etc/apache2/sites-available/fusion

<VirtualHost *:80>
ServerAdmin sysadmin@mydomain.com
ServerName fusion.mydomain.com
ServerAlias localhost
DocumentRoot /var/www/fusion

<Directory /var/www/fusion>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
DirectoryIndex index.php index.html
</Directory>

ErrorLog /var/log/apache2/fusion-error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/fusion-access.log combined
</VirtualHost>

/etc/apache2/ports.conf
# comment following line
#NameVirtualHost *:80
Listen 80

a2enmod rewrite
a2ensite fusion
service apache2 reload

http://localhost/index.php/setup