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

3

2 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 restart 

That should make it work.

1

Installing MySQL

sudo apt install mysql-server 

Installing PHP

sudo apt install php libapache2-mod-php php-mysql sudo systemctl restart apache2 sudo apt install php-cli 

Testing PHP Processing on your Web Server

sudo nano /var/www/your_domain/info.php 

This will open a blank file. Add the following text, which is valid PHP code, inside the file:

<?php phpinfo(); ?> 

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy