icon for lab

CT310

Recitation 7 - FuelPHP

In this recitation, we will:


What is FuelPHP?

  1. Download the zip file from this link: http://fuelphp.com/files/download/42
    • cd ~
    • wget http://fuelphp.com/files/download/42
  2. Unzip the zip file. The resulting extracted folder should be named fuelphp-1.8 or something similar.
    • unzip 42 # the zip file comes in named as 42
  3. Copy the folder named fuel from fuelphp-1.8 and paste it in your home directory (not public_html, should be named with your EID). This will be our frameworks base folder.
    • cp -r ~/fuelphp-1.8.2/fuel ~/
  4. Make a folder named ct310 inside your local_html folder.
    • mkdir ~/local_html/ct310
  5. Copy all contents of fuelphp-1.8/public to your ct310 folder.
    • cp -r ~/fuelphp-1.8.2/public/* ~/local_html/ct310/
  6. Set permissions to ct310 and the fuel base folder to 755.
    • chmod -R 755 ~/fuel ~/local_html/ct310
    • Using chmod with the -R flag will apply permissions recursively to all contained files and folders
  7. Open the file named index.php that currently resides in your local_html/ct310.
  8. Inside the file, replace all occurrences of __DIR__.'/../fuel/ to __DIR__.'/../../fuel/.
    • There should be 3 occurrences in total
    • If you do this wrong you'll likely see an error like "no composer autoloader found"
  9. Hit https://www.cs.colostate.edu:4444/~YOUR_EID_HERE/ct310 in your web browser. The framework homepage should now open successfully and you should see something like this:
  10. fuel defaul welcome page