Online Garage Sale website
First(1) location in database should be 'Unknown'/'Unset'
Edit /etc/apache2/apache2.conf
and remove Indexes
or change it to -Indexes
Alternatively create a new directory block just for the project (allows access for other projects in development)
<Directory /var/www/ogs/>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Edit /etc/php/8.1/apache2/php.ini
and increase the size of upload_max_filesize
and post_max_size
; Maximum allowed size for uploaded files.
upload_max_filesize = 5M
; Must be greater than or equal to upload_max_filesize
post_max_size = 5M
Restart server:
sudo service apache2 restart