mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-11 15:34:21 -04:00
Updated Debian 8 Install (markdown)
parent
fee30eb9a6
commit
1cb4a433aa
@ -3,7 +3,7 @@
|
||||
InvoiceNinja Self Hosted on Debain 8
|
||||
Deploy Invoice Ninja On Debian 8 Securely:
|
||||
|
||||
Login as root then Update and install dependencies:
|
||||
## Login as root then Update and install dependencies:
|
||||
|
||||
`apt-get update && apt-get -y upgrade`
|
||||
|
||||
@ -13,7 +13,7 @@ Now lets secure the database, read the questions asked and reply Y to all of the
|
||||
|
||||
`mysql_secure_installation`
|
||||
|
||||
Lets create the database for Invoice Ninja:
|
||||
## Lets create the database for Invoice Ninja:
|
||||
|
||||
`mysql -uroot -p`
|
||||
|
||||
@ -27,17 +27,17 @@ Lets create the database for Invoice Ninja:
|
||||
|
||||
`exit`
|
||||
|
||||
Now lets install php and nginx our webserver. I have choosen PHP version 7.1
|
||||
## Now lets install php and nginx our webserver. I have choosen PHP version 7.1
|
||||
|
||||
`apt-get install nginx php7.1 php7.1-fpm php7.1-cli php7.1-mcrypt php7.1-gd php7.1-curl php7.1-common php7.1-gmp php7.1-json php7.1-zip php7.1-xml php7.1-readline php7.1-opcache php7.1-mysql php7.1-mbstring`
|
||||
|
||||
Install composer which manages the install of Invoice Ninja :
|
||||
## Install composer which manages the install of Invoice Ninja :
|
||||
|
||||
`curl -sS https://getcomposer.org/installer | php`
|
||||
|
||||
`sudo mv composer.phar /usr/local/bin/composer`
|
||||
|
||||
Installing Invoice Ninja:
|
||||
## Installing Invoice Ninja:
|
||||
|
||||
Choose a location for your invoice ninja install. I choose to install it in my user's home folder.
|
||||
|
||||
@ -47,7 +47,7 @@ cd to your install location then
|
||||
|
||||
`composer install --no-dev -o`
|
||||
|
||||
Now edit your user file for php-fpm
|
||||
## Lets setup FAMP stack. Edit your user file for php-fpm
|
||||
|
||||
`nano /etc/php/7.1/fpm/pool.d/`
|
||||
|
||||
@ -59,7 +59,7 @@ and change it to this, if it already the same, continue.
|
||||
|
||||
`listen = /var/run/php-fpm.sock`
|
||||
|
||||
Next edit the Invoice Ninja config of your site.
|
||||
## Next edit the Invoice Ninja config of your site.
|
||||
|
||||
cd /etc/nginx/sites-available
|
||||
|
||||
@ -167,7 +167,9 @@ If you notice, this file is created in the sites-available folder. But there is
|
||||
|
||||
`sudo ln -s /etc/nginx/sites-available/**your_ininja_site** /etc/nginx/sites-enabled/**your_ininja_site**`
|
||||
|
||||
Now Invoice Ninja and the WebServer are configured to only allow https. In the file above under listen 443 we made references to certificates. Let us create those certificates now.
|
||||
Now Invoice Ninja and the WebServer are configured to only allow https. In the file above under listen 443 we made references to certificates.
|
||||
|
||||
## Let us create those certificates now.
|
||||
|
||||
`mkdir -p /etc/nginx/ssl`
|
||||
|
||||
@ -195,7 +197,7 @@ Set correct permissions:
|
||||
|
||||
`sudo chown -R www-data:www-data storage bootstrap public/logo`
|
||||
|
||||
Ok lets see if this all works:
|
||||
### Ok lets see if this all works:
|
||||
|
||||
`service php7.1-fpm restart`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user