diff --git a/README.md b/README.md index df3fc02..c7f8830 100644 --- a/README.md +++ b/README.md @@ -95,18 +95,35 @@ chown -R www-data:www-data printer-manager-admin/ printer-manager-admin cd printer-manager-admin composer install +sudo mysql_secure_installation +sudo mysql -u root -p -MYSQL Commands - +CREATE DATABASE printer_manager_admin; +CREATE USER 'printer-manager-admin'@'localhost' IDENTIFIED BY 'your_password'; +GRANT ALL PRIVILEGES ON printer_manager_admin.* TO 'printer-manager-admin'@'localhost'; +FLUSH PRIVILEGES; +exit; cp .env.example .env - +vim .env (edit the db config) php artisan key:generate php artisan migrate php artisan make:filament-user +vim /etc/apache2/sites-enabled/000-default.conf (set DocumentRoot /var/www/html/printer-manager-admin/public) +vim /etc/apache2/apache2.conf add the following: + + + Options Indexes FollowSymLinks + AllowOverride All + Require all granted + + +Then Run: + +a2en enable rewrite +systemctl restart apache2 + +You are good to go! -apache2 change vhost -enable rewrite -enable overide htaccess file ```