Skip to content

lenzoburger/ElephantResort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elephant Resort

Luxury Hotel Website - Developed in PHP and hosted on AWS

Dependencies

  1. Linux or Windows Subsystem Linux (WSL)
  2. Apache2 Server
  3. MariaDB/MySQL
  4. Php (v5+)

Setup

Install dependencies

  1. 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.
    • Download and install Ubuntu (WSL) from the windows store
    • Launch Ubuntu and complete initial startup steps
  2. 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
  3. 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
  4. 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

Clone & Run

  1. 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 to localhost then Ctrl+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
  2. cd into apache default DocumentRoot folder cd /var/www/html
  3. Clone repo: git clone https://github.com/lenzoburger/ElephantResort.git
  4. Launch browser and Navigate to url: http://localhost/ElephantResort
  5. Launch preferred IDE/Editor in folder /var/www/html/ElephantResort to edit project

Tools

  1. phpMyAdmin
  2. Composer
  3. Git
  4. Visual Studio Code & Extensions: