Installation
Download Files
Section titled “Download Files”mkdir -p /var/www/billingcd /var/www/billingcurl -Lo Billing.zip https://github.com/Zastinian/Billing/releases/latest/download/Billing.zipunzip Billing.ziprm Billing.zipchmod -R 755 storage/* bootstrap/cache/Configure
Section titled “Configure”mysql -u root -p
# Remember to change 'yourPassword' below to be a unique passwordCREATE USER 'BillingUser'@'127.0.0.1' IDENTIFIED BY 'yourPassword';CREATE DATABASE billing;GRANT ALL PRIVILEGES ON billing.* TO 'BillingUser'@'127.0.0.1' WITH GRANT OPTION;exitcp .env.example .envcomposer install --no-dev --optimize-autoloader
php artisan key:generate --forceEnvironment Configuration
Section titled “Environment Configuration”Please read!
Section titled “Please read!”If these steps are omitted, billing may not work.
php artisan p:update:config
php artisan migrate --seed --force
php artisan p:update:settingsSet Permissions
Section titled “Set Permissions”# If using NGINX or Apache (not on CentOS):chown -R www-data:www-data /var/www/billing/*
# If using NGINX on CentOS:chown -R nginx:nginx /var/www/billing/*
# If using Apache on CentOSchown -R apache:apache /var/www/billing/*Set Up Cron Job
Section titled “Set Up Cron Job”Then, let’s set up a cron job. Run the following command to open the crontab configuration.
crontab -eCopy and paste the following line to the file.
* * * * * php /var/www/billing/artisan schedule:run >> /dev/null 2>&1Optimize Performance
Section titled “Optimize Performance”Cache the configurations and views to optimize the performance.
php artisan config:cache
php artisan view:cache
php artisan queue:restartAdmin User
Section titled “Admin User”php artisan p:make:client example@domain.com --admin