「InvoicePlane」の版間の差分

提供: ArchWiki
ナビゲーションに移動 検索に移動
(→‎PHPの設定: デフォルトタイムゾーンの設定を追加)
(Pkg/AUR テンプレートの更新)
(2人の利用者による、間の6版が非表示)
1行目: 1行目:
 
[[Category:オフィス]]
 
[[Category:オフィス]]
  +
[[Category:ウェブアプリケーション]]
[[en:Invoiceplane]]
 
  +
[[en:InvoicePlane]]
 
[http://invoiceplane.com InvoicePlane] は見積書・請求書・顧客・入金を管理するセルフホスト型のオープンソースアプリケーションです。
 
[http://invoiceplane.com InvoicePlane] は見積書・請求書・顧客・入金を管理するセルフホスト型のオープンソースアプリケーションです。
   
 
== インストール ==
 
== インストール ==
   
{{AUR|invoiceplane}} パッケージをインストールしてください。
+
{{AUR|invoiceplane}} パッケージを[[インストール]]してください。
   
 
== 設定 ==
 
== 設定 ==
18行目: 19行目:
 
}}
 
}}
   
=== PHPの設定 ===
+
=== PHP の設定 ===
公式リポジトリの {{Pkg|php-mcrypt}} を[[インストール]]してください。
+
{{Pkg|php-mcrypt}}{{Broken package link|パッケージが存在しません}} パッケージを[[インストール]]してください。そして、{{ic|/etc/php/php.ini}} の {{ic|mcrypt.so}} を有効にします:
そして、{{ic|/etc/php/php.ini}} の mcrypt.so を有効にします。デフォルトのタイムゾーンも設定します。設定しない場合UTCが使われます。
 
 
extension=mcrypt.so
 
extension=mcrypt.so
   
  +
デフォルトのタイムゾーンも設定してください。設定しない場合 UTC が使われます:
[Date]
 
  +
; Defines the default timezone used by the date functions
 
; http://php.net
 
/date.timezone
 
 
date.timezone = "Asia/Tokyo"
 
date.timezone = "Asia/Tokyo"
   
60行目: 58行目:
 
# ln -s /usr/share/webapps/invoiceplane/ /srv/http/invoiceplane
 
# ln -s /usr/share/webapps/invoiceplane/ /srv/http/invoiceplane
   
[[nginx]]の設定ファイルを作成します
+
[[nginx]] の設定ファイルを作成します:
 
{{hc|/etc/nginx/invoiceplane.conf|<nowiki>
 
{{hc|/etc/nginx/invoiceplane.conf|<nowiki>
 
server {
 
server {
88行目: 86行目:
 
</nowiki>}}
 
</nowiki>}}
   
そして {{ic|/etc/nginx/nginx.conf}} にファイルを記述:
+
そして {{ic|/etc/nginx/nginx.conf}} に {{ic|invoiceplane.conf}} ファイルを記述:
 
# InvoicePlane configuration
 
# InvoicePlane configuration
 
include invoiceplane.conf;
 
include invoiceplane.conf;
94行目: 92行目:
 
=== インストールウィザード ===
 
=== インストールウィザード ===
   
データベースとウェブサーバーを設定したら、http://yourdomain/invoiceplane/setup からインストールウィザードのページを開いて指示に従ってください。
+
データベースとウェブサーバーを設定したら、http://your-invoiceplane-domain.com/index.php/setup からインストールウィザードのページを開いて指示に従ってください。
   
 
== ローカリゼーション ==
 
== ローカリゼーション ==

2018年1月18日 (木) 22:02時点における版

InvoicePlane は見積書・請求書・顧客・入金を管理するセルフホスト型のオープンソースアプリケーションです。

インストール

invoiceplaneAUR パッケージをインストールしてください。

設定

データベース

以下は MariaDB を使って Invoiceplane のデータベースをセットアップする例です。データベースの名前は invoiceplane、ユーザー名は invoiceplane、パスワードは password としています:

CREATE DATABASE invoiceplane;
GRANT ALL PRIVILEGES ON invoiceplane.* TO invoiceplane@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;

PHP の設定

php-mcrypt[リンク切れ: パッケージが存在しません] パッケージをインストールしてください。そして、/etc/php/php.inimcrypt.so を有効にします:

extension=mcrypt.so

デフォルトのタイムゾーンも設定してください。設定しない場合 UTC が使われます:

date.timezone = "Asia/Tokyo"

ウェブサーバー

Apache

Apache の設定ファイルを作成:

/etc/httpd/conf/extra/invoiceplane.conf
Alias /invoiceplane "/usr/share/webapps/invoiceplane"
<Directory "/usr/share/webapps/invoiceplane">
    DirectoryIndex index.php
    AllowOverride All
    Options FollowSymlinks
    Require all granted
</Directory>

そして /etc/httpd/conf/httpd.conf にファイルを記述:

# InvoicePlane configuration
Include conf/extra/invoiceplane.conf

Lighttpd

Lighttpd の設定に invoiceplane のエイリアスを作成:

alias.url = ( "/invoiceplane" => "/usr/share/webapps/invoiceplane/")

それから設定で mod_alias, mod_fastcgi, mod_cgi を有効にしてください (server.modules セクション)。

Nginx

nginx で invoiceplane を使用するには、まず使用したいサーバーのルートディレクトリを確認してください。ルートディレクトリが /srv/http の場合、以下のようにシンボリックリンクを作成:

# ln -s /usr/share/webapps/invoiceplane/ /srv/http/invoiceplane

nginx の設定ファイルを作成します:

/etc/nginx/invoiceplane.conf
server {
    listen 80;
    root /srv/http/invoiceplane;
    index index.php index.html index.htm;
    server_name invoiceplane.example.com;

    location / {
        try_files $uri $uri/ /index.php?q=$uri&$args;
    }
    location ~ .php$ {
      try_files $uri = 404;
      fastcgi_pass  unix:/run/php-fpm/php-fpm.sock;
      fastcgi_index index.php;
      include fastcgi.conf;
    }

    location = /favicon.ico {
      log_not_found off;
      access_log off;
    }

    access_log /var/log/nginx/invoiceplane_access.log main;
    error_log  /var/log/nginx/invoiceplane_error.log;
}

そして /etc/nginx/nginx.confinvoiceplane.conf ファイルを記述:

# InvoicePlane configuration
include invoiceplane.conf;

インストールウィザード

データベースとウェブサーバーを設定したら、http://your-invoiceplane-domain.com/index.php/setup からインストールウィザードのページを開いて指示に従ってください。

ローカリゼーション

英語以外の言語を使いたい場合は Translation / Localization を参照してください。

参照