Luxury Hotel Website - Developed in PHP and hosted on AWS
- Linux or Windows Subsystem Linux (WSL)
- Apache2 Server
- MariaDB/MySQL
- Php (v5+)
-
Install Ubuntu (WSL/Windows 10 only) :
- If WSL (Windows Subsystem Linux) feature is not already enabled on your computer:
- Open PowerShell as Administrator and run
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Restart your computer when prompted.
- Open PowerShell as Administrator and run
- Download and install Ubuntu (WSL) from the windows store
- Launch Ubuntu and complete initial startup steps
- If WSL (Windows Subsystem Linux) feature is not already enabled on your computer:
-
Install Apache2
- Add the following PPA to get latest version of Apache. In Ubuntu/WSL Bash run:
sudo add-apt-repository ppa:ondrej/apache2
- Update local package index;
sudo apt-get update
- Install Apache;
sudo apt-get install apache2
- Add the following PPA to get latest version of Apache. In Ubuntu/WSL Bash run:
-
Install MariaDB/MySQL (Optional)
- Add repo with the latest MariaDB packages
sudo apt-get install software-properties-common sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ams2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu xenial main'
- Install MariaDB
sudo apt-get update sudo apt-get install mariadb-server
- Start MariaDB:
sudo service mysql start
- Run the following and follow prompts:
mysql_secure_installation
- Add repo with the latest MariaDB packages
-
Install PHP
- Add PPA to get the latest version of php:
sudo add-apt-repository ppa:ondrej/php sudo apt-get update
- Install PHP 7.1 packages:
sudo apt-get install php7.1 libapache2-mod-php7.1 php7.1-mcrypt php7.1-mysql php7.1-mbstring php7.1-gettext php7.1-xml php7.1-json php7.1-curl php7.1-zip
- Add PPA to get the latest version of php:
- Configure Apache (WSL/Windows 10 only)
- Edit Apache default virtual host configuration file:
sudo nano /etc/apache2/sites-enabled/000-default.conf
- Update
DocumentRoot
to/var/www/html/ElephantResort
- Update
ServerName
tolocalhost
thenCtrl+o
Enter
Ctrl+x
to save and exit - Enable Apache modules that are necessary and restart/start server:
sudo a2enmod rewrite sudo service apache2 restart
- Edit Apache default virtual host configuration file:
- cd into apache default DocumentRoot folder
cd /var/www/html
- Clone repo:
git clone https://github.com/lenzoburger/ElephantResort.git
- Launch browser and Navigate to url:
http://localhost/ElephantResort
- Launch preferred IDE/Editor in folder
/var/www/html/ElephantResort
to edit project