Ok, So here is a tutorial for installing flarum on Ubuntu Local Hos.
First, Let's Setup a Web Server. For This, we need Apache, MySQL and PHP(maybe any other tool as well). So, Open your Terminal.
Run the following command:
sudo apt-get update
1. Install Apache: Run the following code in the terminal
sudo apt-get install apache2
2. Install MySQL:
sudo apt-get install mysql-server
3. Install PHP:
sudo apt-get install php5 libapache2-mod-php5 and then
sudo apt-get install curl php5-cli git
4. Make Sure to Restart Apache:
sudo /etc/init.d/apache2 restart
Now, Check if you get anything on http://localhost.com. If you get some error try following this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu
Next, Let's Install Composer. Without Composer, you can't install and keep up with the latest version of Flarum.
Let's Update the directory again:
sudo apt-get update
Now, Install Composer using
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
Git is required because we want to copy Flarum from the Github to other localhost.
Git should have automatically installed because we specified the git while installing curl. You can check it using
git command. If it shows not found then install it using
sudo apt-get install git otherwise move forward.
composer in the terminal to check for any error. This time also see if you've got any error or not.
Other Follow the steps above again. Or Shoot me a reply.
Now open terminal and browse to the localhost directory (I don't know where it is :\ ) using terminal (command: cd) and use this command:
composer create-project flarum/flarum . --stability=beta
Solving Some problems:
1. It may show errors such as extension php_~~~ not installed etc. To solve this open php.ini and look for the specific text and remove the comment before it i.e.
2. Make sure to use
sudo apt-get update if you get errors while installing curl php apache or mysql, composer etc.
3. I don't use Ubuntu much but you can give me a reply if. I'll try to solve it.