Problem running Kirby 3 on AWS EC2

originally had site hosted on westhost. they have terminated my site abruptly. lucky i had the site root directory backup. i have lost the server configurations.

Kirby 3.4.2 version.
what i have done so far.

  1. created ec2 with enough space.
  2. uploaded the backup to /tmp and unzip to /var/www/html/
  3. tried to run the website.
  4. tried to do the htaccess and htaccess works when i put jibberish there.
  5. i have double checked the user and group permissions.

errors

  1. get $panel is undefined in menu_custom.php
  2. cors for all my images.
  3. sub pages and links all dont work.
  4. i tried to remove the media folder and see if refreshing homepage would regenerate. (big no)

Please help. the sites been down for almost 3 days now… im out of ideas.
ps. we can set up a time for teamviewer!!!

If you have already checked all the requirements from Requirements | Kirby CMS, maybe setting the RewriteBase in .htaccess is necessary?

As mentioned on Discord, I have no idea about EC2. :face_with_peeking_eye:

I feel like it’s the htaccess that’s killing the site when moved… but the domain and everything is the same though

Maybe this helps? apache - htaccess works in localhost but doesn't work in EC2 instance - Stack Overflow