Wednesday, March 16, 2022

How To Install Crater Invoicing Solution on Ubuntu 20.04

Crater is a free and open-source invoicing application based on the Laravel PHP framework. It is designed for individual users or small and medium-sized businesses to help track payments and expenses as well as create professional invoices. It comes with a suite of tools that are used to manage invoices. Crater allows users to create and send professional invoices to their clients.
Homepage - https://craterapp.com/
_________________________________________________________________________________________
Server - Os:  Ubuntu 20.04.3 LTS 64Bit        | IP -192.168.1.80            |Hostname -  ubuntu.example.com
_________________________________________________________________________________________
lsb_release -d ; hostname ; hostname -I

add-apt-repository ppa:ondrej/php -y ; apt-get update
apt install -y apache2 build-essential mariadb-server mariadb-client php7.4 libapache2-mod-php7.4 php7.4-cli php7.4-fpm php7.4-cgi php7.4-bcmath php7.4-curl php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-sqlite3 php7.4-xml php7.4-zip php7.4-snmp php7.4-imap php7.4-common php7.4-tidy php7.4-pgsql php7.4-ldap php7.4-soap php7.4-xsl php7.4-redis php7.4-xmlrpc

a2enmod rewrite expires ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini
systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation

mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpassword';
flush privileges;
quit

wget https://craterapp.com/downloads/file/6.0.5 -O crater.zip
unzip crater.zip ; mv crater /var/www/html/crater
chown -R www-data:www-data /var/www/html/ ; chmod -R 777 /var/www/html/
nano  /etc/apache2/sites-available/yourdomain.conf
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/crater/public
ServerName www.yourdomain.com
<Directory /var/www/html/crater/public/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/yourdomain.com-error_log
CustomLog /var/log/apache2/yourdomain.com-access_log common
</VirtualHost>

a2ensite yourdomain.conf ; a2dissite 000-default.conf  ; apache2ctl configtest ; echo "192.168.1.80 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com/  | SNcAiM7cFLJNjCT
________________________________________________________________________________________

No comments:

Post a Comment