I'm triyn' to install flarum on a Lamp VM by MS Azure Bitnami LAMP 7.4.18-0
So I've created the virtual machine, checked php, mysql and composer versions (composer was to oldie so I updated it)
Outputs:
php
~$ php --version
PHP 7.4.18 (cli) (built: May 4 2021 14:52:49) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.18, Copyright (c), by Zend Technologies
(I tell you in advance that phpmyadmin is installed by default and works, learned it through some pain of failed installations)
mysql
~$ mysql --version
mysql Ver 8.0.24 for Linux on x86_64 (Source distribution)
composer
~$ composer
COMPOSER LOGO
Composer version 2.0.13 2021-04-27 13:11:08
Apache seems not to be installed
sudo systemctl apache2 status
Unknown operation apache2
But do I need Apache? 🤔 Cause my Idea is to install flarum locally to the VM (with localhost as host for database etc) and reach the site through the VM's public ip like http://51.104.35.1xx/flarum/public (this to avoid spending money for a domain and DNS reg for now)
Anyway... I’ve already done these things:
~$ ssh -N -L 888:127.0.0.1:80 myusername@51.104.35.1xx /*to access the VM webroot (and phpmyadmin) through 127.0.0.1:8888 in my browser
THEN
~$ ssh myusername@51.104.35.1xx
Password:__
~$ cd /home/bitnami/htdocs
/home/bitnami/htdocs$ mkdir flarum && cd flarum
/home/bitnami/htdocs/flarum$ composer create-project flarum/flarum . --stability=beta
Now, I presume, I have flarum installed with public directory and .htaccess file (as mentiond in the install gude)
/*ls -a output:*/
/home/bitnami/htdocs/flarum/public$ ls -a
. .. assets .htaccess index.php web.config
Going to >>>http://127.0.0.1:8888/flarum/public
Getting This:
Solved with
sudo chown -R bitnami:daemon /opt/bitnami/apache/htdocs/flarum/
sudo chmod -R g+w /opt/bitnami/apache/htdocs/flarum
And finally get it!
So what to do next to make the forum reachable as a normal website? (I failed another installation, flarum was completely installed and accessible from 127.0.0.1:8888/flarum/public but it was unusable... "Something went wrong!" at any action including Administration and admin's profile)
Guess I've insert wrong values and break somethind in the database stuff...