{"id":18317,"date":"2016-01-13T15:10:02","date_gmt":"2016-01-13T21:10:02","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=18317"},"modified":"2022-06-03T03:43:53","modified_gmt":"2022-06-03T08:43:53","slug":"install-simple-invoices-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-simple-invoices-on-centos-7\/","title":{"rendered":"Install Simple Invoices on CentOS 7"},"content":{"rendered":"
Simple Invoices is a web based open source invoicing system. It is very simple but functional application, supporting various billing formats. It is great for small organizations and home users. In this blog post we will guide you through the installation for Simple Invoices on a CentOS 7 VPS<\/a> with Apache, PHP and MariaDB.<\/p>\n To start the Simple Invoices installation, login to your server as user root<\/p>\n and as usual, run the following command to make sure that all packages on your CentOS 7 virtual server<\/a> are up to date:<\/p>\n Now, we will install Apache web server:<\/p>\n Once it is installed, start Apache and set it to start on system start up:<\/p>\n Install PHP among with few PHP modules required by the application:<\/p>\n Run the following commands to install MariaDB<\/p>\n Start the MariaDB server and enable it to start on system start up:<\/p>\n Run the Simple Invoices requires a blank database. Log in to the MariaDB server as user \u2018root\u2019 and create new database and user for the application.<\/p>\n Don’t forget to replace \u2018PASSWORD\u2019 with an actual strong password.<\/p>\n Download the latest stable release of Simple Invoices from their official website:<\/p>\n Install the ‘unzip’ package necessary for unpacking the Simple Invoices zip archive and unpack the downloaded archive to the document root directory of your server:<\/p>\n Edit the Simple Invoices configuration file and enter the details of the database we created:<\/p>\n Change the ownership of the ‘\/var\/www\/html\/simpleinvoices\/’ directory:<\/p>\n Create Apache virtual host for your website. Create \u2018\/etc\/httpd\/conf.d\/vhosts.conf\u2019 file with the following content:<\/p>\n and create the virtual host:<\/p>\n Restart the Apache web server for the changes to take effect:<\/p>\n Now, open your favorite web browser and point it to http:\/\/yourdomain.com to run the web installer. You will have to choose your database type and enter the necessary information to complete the installation.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Simple Invoices<\/strong> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS<\/span>.<\/strong> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" Simple Invoices is a web based open source invoicing system. It is very simple but functional application, supporting various billing … <\/p>\nssh root@IP<\/pre>\n
yum -y update<\/pre>\n
yum install httpd<\/pre>\n
systemctl start httpd\r\nsystemctl enable httpd<\/pre>\n
yum -y install php php-pdo php-common php-mysql<\/pre>\n
yum install mariadb mariadb-server<\/pre>\n
systemctl start mariadb\r\nsystemctl enable mariadb<\/pre>\n
mysql_secure_installation<\/code> script to secure the database server and set your MariaDB root password.<\/p>\n
mysql -u root -p\r\n\r\nCREATE DATABASE simpleinvoices;\r\nCREATE USER 'siuser'@'localhost' IDENTIFIED BY 'PASSWORD';\r\nGRANT ALL PRIVILEGES ON `simpleinvoices`.* TO 'siuser'@'localhost';\r\nFLUSH PRIVILEGES;\r\nexit<\/pre>\n
wget https:\/\/bitbucket.org\/simpleinvoices\/simpleinvoices\/downloads\/simpleinvoices.2011.1.zip<\/pre>\n
yum -y install unzip\r\nunzip simpleinvoices.2011.1.zip -d \/var\/www\/html\/<\/pre>\n
vim \/var\/www\/html\/simpleinvoices\/config\/config.ini\r\n\r\ndatabase.params.host\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = localhost\r\ndatabase.params.username\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = siuser\r\ndatabase.params.password\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = PASSWORD\r\ndatabase.params.dbname\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = simpleinvoices<\/pre>\n
chown -R apache:apache \/var\/www\/html\/simpleinvoices\/<\/pre>\n
vim \/etc\/httpd\/conf.d\/vhosts.conf\r\n\r\nIncludeOptional vhosts.d\/*.conf<\/pre>\n
mkdir \/etc\/httpd\/vhosts.d\/\r\nvim \/etc\/httpd\/vhosts.d\/yourdomain.com.conf\r\n\r\n<VirtualHost YOUR_SERVER_IP:80>\r\nServerAdmin webmaster@yourdomain.com\r\nDocumentRoot \"\/var\/www\/html\/simpleinvoices\/\"\r\nServerName yourdomain.com\r\nServerAlias www.yourdomain.com\r\nErrorLog \"\/var\/log\/httpd\/yourdomain.com-error_log\"\r\nCustomLog \"\/var\/log\/httpd\/yourdomain.com-access_log\" combined\r\n\r\n<Directory \"\/var\/www\/html\/simpleinvoices\/\">\r\nDirectoryIndex index.html index.php\r\nOptions FollowSymLinks\r\nAllowOverride All\r\nRequire all granted\r\n<\/Directory>\r\n<\/VirtualHost><\/pre>\n
systemctl restart httpd<\/pre>\n