Update 'README.md'

This commit is contained in:
mattronix 2023-11-02 17:25:53 +00:00
parent 1957b37256
commit d7334cb0f0

View file

@ -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:
<Directory /var/www/html/printer-manager-admin/public>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Then Run:
a2en enable rewrite
systemctl restart apache2
You are good to go!
apache2 change vhost
enable rewrite
enable overide htaccess file
```