Welcome Guest, Not a member yet? Register   Sign In
Codeigniter Website Showing Blank Page in AWS Elastic Beanstalk
#9

(This post was last modified: 05-18-2017, 10:47 AM by spjonez.)

(05-16-2017, 06:32 PM)RedRepublic01 Wrote:
(05-16-2017, 08:10 AM)spjonez Wrote: Pull the logs from the EB control panel and see what it's doing. You may want to turn on show errors in your software config in EB. Or you can SSH into the box and run this:

wget -O - localhost

Logs are in /var/log/httpd

Is that giant pile of x's your domain name, like http://www.example.com/ ?

The giant pile of x's consist of the URL generated by the environment instance in Elastic Beanstalk.

I really don't get why this is happening. I've run all tests on my localhost and it works perfectly. Sad

I also followed AWS instructions and archived the entire project into a .ZIP file.

That's the internal network name on AWS not your base url. If you're using a different domain in local and production set it to this:

Code:
$config['base_url'] = 'http' . (((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 's' : '') . '://' . $_SERVER['SERVER_NAME'] . '/';

The logs in AWS will tell you what's happening if you haven't setup eb-cli to SSH into it yet. If you're trying to access the site under HTTPS you need to update your Elastic Load Balancer with port 443 it's not on by default.

If you can post your error/access logs them I can take a look for you.
Reply


Messages In This Thread
RE: Codeigniter Website Showing Blank Page in AWS Elastic Beanstalk - by spjonez - 05-18-2017, 10:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB