Giter VIP home page Giter VIP logo

e15-spring21's People

Contributors

susanbuck avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

e15-spring21's Issues

FYI Week 1 assignment grades posted (+ tech stats)

Hi everyone,

Just an FYI that I've posted grades/feedback in Canvas for the Week 1 assignment.

You should get a notification from Canvas and be able to go in and view the assignment to see your score, any questions you might have missed, and any notes I may have left. You can expect this to happen every Friday from here on out.

If you have any logistical questions about this, you can ask that here.

If you have any questions about your specific grade/feedback, etc. please email me directly at [email protected].

Side note:
For anyone who is curious, below is a breakdown of technologies students in this course are using, taken from the start of semester questionnaire I had you complete. Beyond calibrating course material, I always find it interesting to see the trends in OS/Browsers semester to semester, so thought you might too.

Happy Friday everyone!

image
image

Thank you for the instructions!

Just wanted to drop by and say thank you @susanBuck. I really appreciate all the effort you put into creating these very detailed instructions and step-by-step directions. Setting up local servers and mapping them to cloud servers usually terrifies me. When doing so, I very often run into problems and end up spending hours and hours if not days troubleshooting them and this very often leaves me behind or have to work extra hard to catch up with the rest of the class. But in the course, I was able to create multiple local environments and map them to cloud servers, do that on multiple different machines, and yet to run into any roadblocks that weren't documented or talked about in the course documents. (knocking on wood.) I really appreciate how you made it seem very easy. Thank you!

Github SSH connection cmder Windows 10 PC

Environment

Github SSH connection cmder Windows 10 PC

What operating system are you using?

Windows 10 PC

The problem is that the .ssh connection won't work

C:\Users\Joseph.ssh
λ :\Users\Joseph.ssh λ ssh -T [email protected] Warning: Permanently added the RSA host key for IP address '140.82.112.4' to the list of known hosts. [email protected]: Permission denied (publickey).C:\Users\Joseph.ssh λ :\Users\Joseph.ssh λ ssh -T [email protected] Warning: Permanently added the RSA host key for IP address '140.82.112.4' to the list of known hosts. [email protected]: Permission denied (publickey)..

Steps taken
I followed the video for Windows 10 users on Youtube. I seem to have deleted "all" file permissions though when prompted to hit ok.

Additional context
Is there a way to add back the permissions? Maybe I should delete the config file and try again. There were to options given after I went to advanced tab and hit ok for files that weren't shown in the youtube video.

Laravel redirects to a route but then apache gives 404 error

Environment
Production server / DigitalOcean

What operating system are you using?
Mac

Describe the problem
The application form redirect works locally. However, after I followed the prep steps and deployed the app to http://e15p2.adejeffchen.me/, the form redirect gives me 404.
The homepage displays fine but when I submit the form, the POST status code is 404 Not Found.

Steps taken
Re-run Module rewrite by running

root@lamp-ubuntu-s-1vcpu-1gb-sfo2-01:/var/www/html/e15/p2# sudo a2enmod rewrite
Module rewrite already enabled

Double-checked VirtualHost

<VirtualHost *:80>
    ServerName e15p2.adejeffchen.me
    DocumentRoot "/var/www/html/e15/p2/public"
    <Directory "/var/www/html/e15/p1/public">
        AllowOverride All
        Options -Indexes
        Require all granted
    </Directory>
</VirtualHost>

Thanks.

project 1 - palindrome & numeric characters

According to the spec, "Non-alphabetic characters are ignored".

I would like to confirm that numeric characters are to be ignored too beside special characters.

Thanks,
Jeff

Access Forbidden when trying to access my new Laravel application via Chrome

Environment
Local Server

What operating system are you using?
Mac

Describe the problem
I have followed the steps in the lecture video and notes to start a new Laravel application on my laptop, but am not able to access the application via the local domain. The Error 403 comes up along with this message:

Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.

Steps taken
I have gone through the notes and tried the whole process three times but that's not fixing the issue. I have also tried to look on Google to see try and see if I could fix the error coming up but nothing seems to be working... :(

Additional context
Here is a screenshot from the webpage displaying the error:
Screenshot 2021-02-26 at 1 55 23 AM

Website recommendations to stay current with changes in technology.

This is a bit off topic and mainly for my curiosity. I am a newbie in the field of computer science and was wondering if anyone has any recommendations for websites, magazines, or journals that I could read, that would help me stay current with the ever changing world of computers.

For example, I stumbled upon a YouTube video that advertised a once trusted software program had been bought by a nefarious company and now the latest version had become a form of malware. Another example is the w3techs.com website in one of last week's videos, where the Prof. discussed the latest server trends. How does one keep up with all of the different changes and trends? Is there something similar to the "Wall Street Journal" but for computers?

Thank you for any recommendations anyone can provide.

Error message when running composer require --dev laravel/dusk - "Your requirements could not be resolved to an installable set of packages."

Repository URL
https://github.com/karnaout/e15/tree/main/p3

Production URL
http://e15p3.khaledarnaout.me/

Describe the problem
I recently upgraded my macOS Big Sur to version 11.3 and then tried to install dusk but I got this error message:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - laravel/dusk[v6.15.0, ..., 6.x-dev] require ext-zip * -> it is missing from your system. Install or enable PHP's zip extension.
    - Root composer.json requires laravel/dusk ^6.15 -> satisfiable by laravel/dusk[v6.15.0, 6.x-dev].

To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

image

It seems to be related to php-zip and where my php.ini file lives. However, I tried to fix this issue in a few different ways but none of them worked.

  • I tried to reinstall php-zip by running this command sudo apt install php-zip and got this error message:
    image

  • I tried to require a different version of dusk but that didn't work either.

To Reproduce
Steps to reproduce the behavior:

  1. Go to /p3
  2. in terminal run composer require --dev laravel/dusk
  3. See the error message
    image

Additional context
Add any other context about the problem here.

  • running php --ini returns:
    image

  • running which php returns:
    image

Issue with cloning E15 repository

Hello there,

Just an issue I've been having, but when I try to clone the git used for our LAMP-stack Droplet using the provided command, the link to which is here.

$ git clone [email protected]{username}/e15.git

I get the following error message about the repository not existing:

Please make sure you have the correct access rights
and the repository exists.
root@hes15:/var/www/html# git clone [email protected]:w2KZSmL8/e15.git
Cloning into 'e15'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

My SSH key has been authenticated, so I'm sure it isn't access rights. I apologise if I'm missing something here about where to get the repository, but does anyone know how to get it? Thanks so much for the assistance.

Edit:

I've attached below a picture of all the repositories I have access to, in case this helps.
Screenshot from 2021-02-12 05 31 55@2x

Sincerely,
Bryan

Week 9 assignment due date/time

Hi Susan,

It looks like the Week 9 assignment had a due date of April 8 at 4 pm, not by 11:59 pm. I noticed that it marked me late for submitting just after 9 pm. Was this a mistake, or did I miss that this week an exception to the usual time?

image

Thanks!
Keryn

visual studio automatic bracket closer

Hello

Is there a setting in visual studio or an extension that will automatically input a closing bracket/ parentheses/ ']'/ '}'/ '>' if we put the open version? I am used to it from my other coding ime coming from python and i'd like to know if there's a similar option!

EC2 & Laravel

Below is some information for configuring a Amazon Linux EC2 instance for use with Laravel and github.

I am hoping to use this approach for project three. All thoughts, pointers and advice is welcome.

These details helped me and assume you are familiar with AWS EC2 (SSH & CLI), Security Groups, and costs (everything used is free tier eligible). Please proceed at your own risk.

Create EC2 instance with the following details

Amazon Linux 2 AMI, t2 micro using below user data:

#! /bin/bash
yum update -y
yum -y install httpd
service httpd start
amazon-linux-extras enable php7.4
yum install php-cli php-pdo php-fpm php-json php-mysqlnd php-mbstring php-dom
yum install git
echo "<h1>Welcome Page<h1>" > /var/www/html/index.html

If any commands failed from the user data on instance provisioning,

sudo yum update -y
sudo yum install httpd -y
sudo systemctl restart httpd
sudo amazon-linux-extras enable php7.4
sudo yum install php-cli php-pdo php-fpm php-json php-mysqlnd php-mbstring php-dom -y
sudo yum install git -y

Install composer

sudo curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/bin/composer
sudo chmod +x /usr/bin/composer
sudo systemctl restart httpd

Connect to github

ssh-keygen -t rsa -C "[email protected]"
sudo cat /home/ec2-user/.ssh/id_rsa.pub
ssh -T [email protected]

Update mod_rewrite

sudo nano /etc/httpd/conf/httpd.conf
    Update AllowOverride All from AllowOverride None
    Check the inclusion of /etc/httpd/conf.d

Update DNS records

Use the public URL or an elastic IP of this instance

Production Domains

Comfirm git & Clone e15

cd /var/www/html
git clone [email protected]:username/e15.git

Deploy to Digital Ocean

For Each App

cd /var/www/html/e15/app

Install Composer

composer install --no-dev

App storage permissions

sudo chmod -R 775 /var/www/html/e15/app/storage

Create ev file

sudo cp /var/www/html/e15/p3/.env.example /var/www/html/e15/p3/.env

Move to app location and generate key

cd /var/www/html/e15/p2
sudo php artisan key:generate

Edit Env variables

sudo nano /var/www/html/e15/app/.env

Update virtual hosts

sudo nano /etc/httpd/conf.d/vhosts.conf
sudo systemctl restart httpd

Check your ec2 user file permissions for the web root and app folders with the AWS LAMP guide below.

Resources

AWS LAMP
AWS Instance creation
AWS mod rewrite

Relationships: Many to Many with the same table

If I have a many to many relationship with the same table, what is the recommended pivot table name? For example, a user can relate to many other users.

According to lecture note:

The convention for naming our pivot tables is to use the singular version of the name of the two tables you’re joining, separated with an underscore, in alphabetical order.

Should the pivot table name be user_user? or I can just called it related_user?

Thanks.

Okay to rebuild repository now ?

Environment
Local server & GitHub

What operating system are you using?
Mac

Describe the problem
I had some difficultly publishing my last project to production and did not get it sorted out until the last minute. So now I am getting my environment set up for project 3. I am familiar with AWS and have been successful with getting Laravel set up there, here is an example of my project 2 from an EC2 image.

Now, I am having issues pushing changes from my local environment to my e15 git repository. After doing an add -all then a commit, I get a message, 'nothing to commit, working tree clean'. The folders are very different at this point and I'm not sure where I went wrong here (something to do with branches, I think). I want to start my GitHub e15 repository over but I don't want to interfere with grading so I'm wondering if it is okay to start my e15 repository over now or if I should wait ? Is there a way to build my e15 repository with the content on my local e15 ?

I am also interested in knowing if you see any specific challenges with AWS and the features we will be developing in project 3? To facilitate the discussion, I would like to share my learnings and the process I used for this. Is this forum an appropriate place for this discussion or is another place better ?

Thank you,
Curtis

Typing Practice for Programmers: https://typing.io

Hi everyone,

The app typing.io came across my radar from a student in my other course, and I wanted to share it here because I thought it was interesting.

What is typing.io? Typing.io is a typing tutor/trainer for programmers. Typing.io's lessons are based on open source code, allow you to practice typing the key sequences that appear in real code.

Does typing speed bottleneck programming? Yes, every typo interrupts the thought process not unlike a slow compiler or UI lag. Faster and more accurate typing is like a better REPL — not only does this speed up development, it fundamentally affects the exploration process.

Hope everyone has a nice week.

Unexpected Redirects

Repository URL
https://github.com/sneadthaman/e15/tree/main/p3

Production URL

Describe the problem
Some of the routes are working as expected ('/' , '/{slug}') but other routes in the same auth group are being redirected back to '/'. I've looked for clues on this Stack forum (https://stackoverflow.com/questions/35020477/laravel-unexpected-redirects-302#45356645) but can't figure this out.

To Reproduce
Steps to reproduce the behavior:

  1. Go to project homepage ('/' and login as either Jill or Jamal)
  2. Click on Projects link in the navigation

Additional context
I have 3 projects seeded in the db so there is definitely data that the route could use

Not seeing changes with CSS

Environment
Local server

What operating system are you using?
Mac

Describe the problem
For some reason, my CSS is not being reflected on the page. The CSS file is located under the resources folder and this is the link I've set up under <head>:

<link href='/css/style.css' rel='stylesheet'>

Steps taken
I've tried deleting the link in the parent view and putting it in the child view. Am I doing something wrong? Or is it some permissions I haven't changed?

Blade auto-formatting (View file)

Hi 😄

For some reason, my VSCode auto-formatting started merging all the @if and @elseif lines into one line... Is there any way to avoid this? I've tried to Google whether this is an issue with perhaps the extension, but I haven't been able to figure it out. Is anyone else experiencing this issue?

It's not a huge deal, because it stops when I turn off the auto-formatting but it would be great if anyone had any solutions. ⭐️

HTTP 500 Error with Bookmark Laravel Project, Ubuntu 18.04 LTS

Environment
My XAMPP local server.

What operating system are you using?
I'm on Linux, Ubuntu 18.04 LTS.

Describe the problem
I'm getting an HTTP 500 error when loading the local domain version of the bookmark test project. I had no problems downloading composer, but when creating the project I got this error message,

` $ composer create-project --prefer-dist laravel/laravel bookmark
Creating a "laravel/laravel" project at "./bookmark"
Installing laravel/laravel (v7.30.1)
  - Downloading laravel/laravel (v7.30.1)
  - Installing laravel/laravel (v7.30.1): Extracting archive
Created project in /opt/lampp/htdocs/e15/bookmark
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information

                                                                                   
  [Seld\JsonLint\ParsingException]                                                 
  "https://repo.packagist.org/p2/fakerphp/faker.json" does not contain valid JSON  
  Parse error on line 1:                                                           
                                                                                   
  ^                                                                                
  Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['          

                                                                                   

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package>] [<directory>] [<version>]

Despite this, the project was created anyway, and I assumed there wouldn't be any further problems. I have set up the local domain and the virtual host file, both of which point as below:

127.0.0.1         e15.bookmark.loc

<VirtualHost *:80>
    ServerName e15bookmark.loc
    DocumentRoot /opt/lampp/htdocs/e15/bookmark/public
    <Directory /opt/lampp/htdocs/e15/bookmark/public>
        AllowOverride All
        Options -Indexes
        Require all granted
    </Directory>
</VirtualHost>

Steps taken
I've re-entered the local domain and virtual host file and restarted my Apache server. Any help would be appreciated.

XAMPP log error Trying to get Apache Server localhost 127.0.0.1 working

local server setup on PC

OS is:

Windows 10 PC x86 architecture

The Problem is~

Steps taken

XAMPP log error Trying to get Apache Server localhost 127.0.0.1 working
I tried already following the notes and killing port 80 but that didn't work. I tried changing the port to 8080 in the regular. conf file but this didn't work.

Here is my last attempt error log. Is it possible the C:/xampp/htdocs/ isn't set right? I'll attach the .conf and vhost file in this forum post.
'''

[Sat Mar 20 14:29:07.517295 2021] [authz_core:error] [pid 30728:tid 1836] [client 192.168.1.37:53506] AH01630: client denied by server configuration: C:/xampp/htdocs/

image

''<VirtualHost *:8080>
ServerName e15p2.loc:8080
DocumentRoot C:/xampp/htdocs/
<Directory C:/xampp/htdocs/>
AllowOverride All
Options -Indexes
Require all granted

<VirtualHost *:8080> ServerName e15p2.loc:8080 DocumentRoot C:/xampp/htdocs/ <Directory
C:/xampp/htdocs/> AllowOverride All Options -Indexes Require all granted

hosts.txt file here:

'''

127.0.0.1 e15p2.loc #localhost server

127.0.0.1:8080 e15p2.loc #localhost server

'''
image

image

Importing csv into database - issues with mapping

Repository URL
https://github.com/sneadthaman/e15/tree/main/p3

Describe the problem
I've been wanting to make a business dashboard for awhile and I think it may fit our Project 3 perfectly, however, I am attempting to import a csv file and am met with this error:
image

It's pretty clear to me that there is a mapping issue going on , so I attempted to import the csv file manually in the phpMyAdmin and I can see a bit more of the problem:
image

The ID number, which should begin at 1 and increment automatically, is actually the first field of the csv - Salesperson Code (185) -and the rest of the fields are hit or miss (some are mapping and others aren't).

This was the article I found online that "helped" get me to this point: https://justlaravel.com/import-csv-data-store-database/?utm_source=learninglaravel.net

The author of the article creates a Model class called 'Csvdata' which I've renamed to 'Customer' to provide consistency considering my table name is 'customers'. That seems to be correct...

Any ideas on what I am doing wrong regarding the mapping of the csv file to my customers table?

To Reproduce
Steps to reproduce the behavior:

  1. Clone project and run locally
  2. See error

443 Error https://e15p3.harvardjoeapps.com/ connection issue productinon and e15p3.loc issues local

Environment
Both local and production are down e15/p3

What operating system are you using?
Mac OSX 10.10.13 Yosemite

443 Port error Apache Digital Ocean Production
Not Found
The requested URL was not found on this server.

Apache/2.4.41 (Ubuntu) Server at e15p3.harvardjoeapps.com Port 443

Need to get files to load/render

Steps taken
gone through cheatseet local http://e15p3.loc and production . Restared Digital Ocean droplet. Set rules
to allow HTTPS port 443 for certbot redirect to https. port 22 SSH open. Killed unecceary PID's related to port 22
for ssh add, commit, push -> pull on produciton in e15.

Has two p3/p3 folders first p3 has .env file trouble deleting second p3 folder

Additional context
Port issues server connection issues.

Introduce yourself...

Hi everyone -

I thought I'd kick off a post where everyone can reply with an introduction to themselves so we can get to know each other.

Tell us what brought you to this course and any other details you care to share.

A little bit about myself - I'm a web programmer and educator, living in Arlington, MA.

In addition to this course, I also teach DGMD E-28 and CSCI E-15. I've also worked with students completing their capstones in the DGMD program.

In the past, I've taught at Wellesley, UPenn, and UMiami. When working in industry I was the head developer for an online e-commerce store.

More about my background here: susanbuck.net

All in all, I love creating things with code and teaching others how to do the same.

Looking forward to getting to know you all!

Project 2 requirement - server side validation

Hi,

Regarding the following requirement

Data from your forms should be validated server-side using Laravel’s validation functionality to avoid unexpected output. To make it easy to check your server-side validation, HTML and JavaScript validation should not be used.

I have 3 input types (input field, dropdown, radio button). If I only have the input field(s) testable, is that okay? (I will still add server side validation for dropdown and radio button inputs but I have pre-select for the dropdown and radio button when the page loads)

Thanks.

Project 2 Peer Review thread

In this week's videos (Week 9, Thu Apr 1), I'll cover the instructions for completing a peer review of Project 2. You will share your completed review in a reply to this thread.

Bonus/optional material: hesweb utils

Hi everyone,

When I had you create your course repositories, I had you use a template I provided (susanBuck/eX). In this template, I included a bash script called utils that provides shortcuts for many of the sys-admin related tasks we have to do when managing our servers.

If interested, here is a video explaining how to use these utils...

And the accompanying notes can be found here...

As I indicate in the video and notes, this script is considered in "beta" so I welcome any feedback or notes on issues you face when using it. It's also not required that you dig into this material or use the script - just throwing it out there for those that are interested!

Week 2 Part 6 Lecture follow-up: Snippets in VSCode

In the Week 2, Part 6 video I walk through the process of setting up p1 (Project 1) and during this setup, I use a macro on my computer to fill a HTML file with a starting HTML template.

In the video I said I'd follow-up on this in the forum if you wanted to set up a similar shortcut, so here's the info to do that:

On my system, I do this with a program called atext.

Alternatively, if you're using VSCode (another topic covered in this week's materials) you can create similar shortcuts using Snippets.

If you dig into either of these techniques and have any questions, let me know.

P3 database seeding issue

https://github.com/scoutperry/e15/tree/main/p3

When I try to seed my table, it throws an exception

When I use the migrate:fresh command everything works fine. its when I try to seed, whether by db:seed or by migrate:fresh --seed, I get the exception, so its definitely an issue with the RecipesTableSeeder, but I dont know/ can't see the mistake.

code of the exception:

$ php artisan migrate:fresh --seed
Dropped all tables successfully.
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table
Migrated:  2014_10_12_000000_create_users_table (36.62ms)
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated:  2014_10_12_100000_create_password_resets_table (32.62ms)
Migrating: 2019_08_19_000000_create_failed_jobs_table
Migrated:  2019_08_19_000000_create_failed_jobs_table (29.13ms)
Migrating: 2021_05_10_225316_create_recipes_table
Migrated:  2021_05_10_225316_create_recipes_table (16.28ms)
Seeding: Database\Seeders\RecipesTableSeeder

   UnexpectedValueException 

  The stream or file "/Applications/XAMPP/xamppfiles/htdocs/e15/p3/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

  at vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:111
    107▕             restore_error_handler();
    108▕             if (!is_resource($this->stream)) {
    109▕                 $this->stream = null;
    110▕ 
  ➜ 111▕                 throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened in append mode: '.$this->errorMessage, $this->url));
    112▕             }
    113▕         }
    114▕ 
    115▕         if ($this->useLocking) {

      +9 vendor frames 
  10  [internal]:0
      Illuminate\Foundation\Bootstrap\HandleExceptions::handleException(Object(UnexpectedValueException))

passing multiple variables in constructor class not passing properly

Repository URL
https://github.com/caronee/e15/tree/main/practice

Production URL
http://e15practice.caroli.me/

Describe the problem

I was rewriting my p1 because I was trying to push two variables using constructor/ classes instead of just one as in the professor's example videos.

I am getting an error when I run my public functions. I var_dumped in the constructor and in the isPalindrome function so you can see the output.

As you can see, the constructor works and I am getting values while inside it, but once I'm in the isPalindrome function (and any other function), I get undefined variables and properties because I'm not calling the variables correctly. I've tried to stackexchange the error and they seemed to say it was a 'this->' pointing error but I'm not sure where the pointing error is. I've attached a picture of what it looks like locally because it shows more errors than the production url.

image

I'm not sure if the error is in my process.php file and I have not written the _session part correctly or if the error is in how I call the variables in my actual functions.

image

To Reproduce
Steps to reproduce the behavior:

  1. fill in any value for the form
  2. See error say it's null after the var_dump from the constructor

Bookmark search setup returns "Undefined variable:" "$searchTerms"

https://github.com/scoutperry/e15/tree/main/bookmark

Ok so maybe I messed up following the notes first instead of the lecture (so I didn't troubleshoot as I went) but I have also watched the lecture and I can't see how $searchTerms isn't being defined for the view. It won't load the welcome page at all. I'm sure this is something small but I tried to see if the variables matched and they seem to... maybe there is an issue with the Page controller but I can't see it. I even did the suggestion to add the ?? to the $searchTerms variable and it threw a syntax error in the same line for an unexpected ')' that I also couldn't really understand.

Screen Shot 2021-03-17 at 8 54 32 PM

Screen Shot 2021-03-17 at 8 54 39 PM

Project 1 share thread

Hi everyone,

I wanted to start a thread where you all could share your Project 1's.

In reply to this thread, please share the following:

  • The link to your P1 on production (so everyone can view it)
  • The link to your P1 on Github (so we can see the code behind it)
  • A note (or more) about your experience building the project. Example:
    • Was there some part you got stuck on? If so, how did you get past the issue?
    • Did you use a technique, function, etc. that was unique from what we saw in lecture?
    • Did you execute an additional, unique string processor? If so describe.
    • Etc.

Access Denied Error when publishing my app

Repository URL
Production URL

Describe the problem
Application was working as expected on localhost. After pulling from GitHub to my production server, I am getting a permission error when accessing my http://e15p2.curtisg.me from a browser. I have updated my domain's DNS records (new droplet), updated new droplet's /etc/apache2/sites-enabled/000-default.conf file, update the permissions for storage & bootstrap/cache, and cleared local machine DNS cache.

To Reproduce
Steps to reproduce the behavior:

  1. Go to e15p2.curtisg.me
  2. Screenshot of the error is below,
    Screen Shot 2021-03-25 at 11 48 41 PM

Additional context
Copy of /etc/apache2/sites-enabled/000-default.conf

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        <Directory /var/www/html/>
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        <IfModule mod_dir.c>
            DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
        </IfModule>

</VirtualHost>

<VirtualHost *:80>
    ServerName e15p2.curtisg.me
    DocumentRoot "/var/www/html/e15/p2"
    <Directory "/var/www/html/e15/p2/">
        AllowOverride All
        Options -Indexes
        Require all granted
    </Directory>
</VirtualHost>

Any help is appreciated. Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.