安装
在Ubuntu上安装InvoItePlane 16.04/18.04 LTS,使用github使用nginx
NGINX是最受欢迎,最安全的Web服务器。为了安装nginx,请使用以下命令
sudo apt install nginx
安装NGINX后,配置域并使用以下命令重新启动NGINX
sudo service nginx restart
接下来,需要安装数据库服务器,使用以下命令安装MySQL Server
sudo apt-get update; sudo apt-get install mysql-server; mysql_secure_installation
一旦安装了数据库服务器,请使用以下命令重新启动MySQL Server
sudo service mysql restart
安装用于处理的PHP
sudo apt-get install php-fpm php-mysql
现在,您已经安装了所有必需的软件,下一步是登录MySQL Server并创建InvoItePlane数据库。使用以下命令创建数据库。
CREATE DATABASE invoiceplane;
使用新密码创建一个名为“ InvoItePlane”的数据库用户。并通过运行以下命令授予用户对数据库的完全访问。使用所需的数据库用户和所需的密码更改。
CREATE USER 'invoiceplane'@'localhost' IDENTIFIED BY 'new_password_here';
GRANT ALL ON invoiceplane.* TO 'invoiceplane'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;
下载InvoItePlane最新版本
安装Git,Curl和Composer开始。
sudo apt install curl git
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
sudo composer install
更改为NGINX根目录,然后从GitHub下载InvoItePlane。
cd /var/www/html
sudo git clone https://github.com/InvoicePlane/InvoicePlane.git
cd /var/www/html/InvoicePlane
复制IPCONFIG文件,其中命令以下命令。
sudo cp /var/www/html/InvoicePlane/ipconfig.php.example /var/www/html/InvoicePlane/ipconfig.php
编辑ipconfig文件并更改站点URL。
sudo nano ipconfig.php
设置可摄影平面功能的正确权限。
sudo chown -R www-data:www-data /var/www/html/InvoicePlane/
sudo chmod -R 755 /var/www/html/InvoicePlane/
恭喜!您已经在Ubuntu上成功安装了InvoItePlane