Can't get to PHP setup page

I’ve installed SQL, PHP, and Apache on a virtualbox. When I go to the address of the vm 192.168.56.101 I get he Apache2 Ubuntu Default Page. But when I go to 192.168.56.101/xibo-server the PHP setup page is not coming up. I’ve successfully set this up on another vm at another location but I seem to be missing a step.

The following directory is in place:

/var/www/xibo-server

Tony

Have you tried making a info.php file to see if php is working correctly?

I’ve just created a file info.php inside the var/www/ directory and added the following text to it: <? phpinfo(); ?>

when I go to http://192.168.56.101/info.php i get page not found. Am I testing this properly based on your suggestion?

Tony

Odd, normally if PHP is not set up correctly it tries to download the info.php. But it sounds like something isn’t set up correctly on the web server. Try and get the php info file to load up correctly.

Could this be because I’m using php 7.0?

I couldn’t find the correct command to download php5 so I just did apt-install php and it installed 7.0

Tony

PHP 7 should still work with the PHP info file, have you setup apache to use php?

I did the following

sudo apt-get update
sudo apt

sudo apt-get install apache2 mysql-server php5

downloaded 1.7.8.tar.gz
tar xvzf 1.7.8.tar.gz
sudo mv 1.7.8.tar.gz /var/www/xibo-server
sudo chown www-data:www-data -R /var/www/xibo-server

sudo mkdir /media/xibo-library
sudo chown www-data:www-data -R /media/xibo-library

Restarted Apache

I don’t know what OS your using, all i know is when i have set up CentOS boxes you had to do more then just install the packages, you have to configure apache to use php, Id suggest looking up a guide for your distro on setting up the LAMP stack

Ok that might be the step i’m missing. I’m using Ubuntu server 16

Thanks for your help