Tuesday, April 5, 2022

How to Install Crater Invoicing Solution on Rocky Linux 8.5

 in This Tutorial you will Learn " How to Install Crater Invoicing Solution on Rocky Linux 8.5"

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.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/os-releases ; getconf LONG_BIT ; hostname ; hostname -I ; sestatus
dnf makecache ; dnf groupinstall "Development Tools" -y
dnf module enable php:7.4 ; dnf install httpd httpd-tools mariadb-server mariadb php php-cli php-mysqlnd php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap php-curl php-opcache php-bcmath php-fpm php-common php-json php-zlib php-gmp php-apcu php-openssl php-pdo php-intl php-json php-zip -y

systemctl enable httpd mariadb php-fpm ;  systemctl start httpd mariadb php-fpm
mysql_secure_installation

wget https://craterapp.com/downloads/file/6.0.6 -O crater.zip
unzip crater.zip ; mv crater /var/www/html/crater


mysql -u root -p
create database db;
create user `dbuser`@`localhost` IDENTIFIED BY 'dbpassword';
grant all on db.* TO `dbuser`@`localhost`;
flush privileges;
exit

nano /etc/httpd/conf.d/yourdomain.com.conf
<VirtualHost *:80>
    ServerName yourdomain.com
    ServerAlias www.yourdomain.com
    DocumentRoot /var/www/html/crater/public/
    <Directory /var/www/html/crater/public/>
        Options -Indexes +FollowSymLinks
        AllowOverride All
    </Directory>
    ErrorLog /var/log/httpd/yourdomain.com-error.log
    CustomLog /var/log/httpd/yourdomain.com-access.log combined
</VirtualHost>

chown -R $USER:$USER /var/www/html/* ; chmod -R 777 /var/www/*
apachectl configtest ; echo "192.168.1.20 www.yourdomain.com" >> /etc/hosts
firewall-cmd --permanent --add-service={http,https} ; firewall-cmd --reload  
mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.conf_backup

systemctl restart httpd ; systemctl status httpd
www.yourdomain.com
_________________________________________________________________________________________

No comments:

Post a Comment