AWS ubuntu server, web page not loading
I'm struggling with something on my AWS ubuntu instance. I'm trying to install MyBB on my server. I've created an RDS database and an EC2 ubuntu instance. On my instance, I've installed apache2 and extracted the files into /var/www/html but whenever I go to my publicip/install/install.php I receive the code for the .php file instead of the installation page of the board.
I've posted a few pictures below, please keep in mind that I'm not that experienced and that I'm learning!:)
Here's my web server:view of my web server
And here's the wep page:view of the web page
32 Answers
You installed apache2 but you didn't install PHP or the PHP module/processor.
Run the following:
sudo apt update
sudo apt install libapache2-mod-php
sudo a2enmod php
sudo service apache2 restartThat should make it work.
1Installing MySQL
sudo apt install mysql-serverInstalling PHP
sudo apt install php libapache2-mod-php php-mysql
sudo systemctl restart apache2
sudo apt install php-cliTesting PHP Processing on your Web Server
sudo nano /var/www/your_domain/info.phpThis will open a blank file. Add the following text, which is valid PHP code, inside the file:
<?php
phpinfo();
?>