Spooonky If you scroll to the end of apache2.conf @Jonkanon added "i tried to highligh the changes i did with Bold code, but no". So i don't think he has those ** in it's actual config.
Jonkanon Spooonky that did not work. i did run the apache2ctl configtest and ive notice the .htaccess file in Flarum/public is not there. how do i get it?
localhost:/etc/apache2$ apache2ctl configtest
apache2: Syntax error on line 152 of /etc/apache2/apache2.conf: Could not open configuration file /var/www/flarum/public/ports.conf: No such file or directory
Action 'configtest' failed.
Change back ServerRoot on line 152 to it's original value and not to /var/www/flarum/public then Apache should find ports.conf again (afair /etc/apache2/ports.conf)!
Wouldn't it be more sensible to leave the whole apache2.conf untouched and create a VirtualHost in sites-available - and afair acrivate it via a2ensite (it's been years since i worked last with Apache). And set the DocumentRoot /var/www/flarum/public (if this is the correct path) and everything else for Flarum only in that VirtualHost!