Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8751849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:07:32+00:00 2026-06-13T13:07:32+00:00

I have a project hosted in Amazon EC2 Ireland (Ubuntu). I develope with CodeIgniter,

  • 0

I have a project hosted in Amazon EC2 Ireland (Ubuntu).

I develope with CodeIgniter, and I want to use S3 to storage files.

I’ve used three or four specific libraries for use S3 with CodeIgniter, and none have worked. I tried official AWS SDK for PHP, and the compatibility test is OK, but the sample doesn’t work. I think that the problem is access to S3.

I create in S3 Management three buckets, two in Ireland and one in US standard, and I can access files by browser, S3 Organizer (S3Fox) and Cyberduck. But I don’t access with my project.

Anyone can help me?

Sorry for my bad English…

Controller amazona.php:

   <?php defined('BASEPATH') OR exit('No direct script access allowed');

class Amazona extends CI_Controller {

    var $bucket = 'cubito';

    function __construct()
    {
        parent::__construct();
        $this->load->library('S3');
    }

    function index()
    {
/*      $data['files'] = $this->s3->getBucket('cubito'); */
        $data['texto'] = "prueba";
        $this->load->view('amazona', $data);
    }
}

?>

view amazona.php:

<html>
    <head>
        <title>prueba</title>
    </head>

    <body>
        <a href="http://cubito.s3.amazonaws.com/imagen.jpg">imagen</a>
        <img src="http://cubito.s3.amazonaws.com/imagen.jpg" />
        <p><?php echo($texto); ?></p>
        <p><?php echo($this->s3->listBuckets()); ?></p>

    </body>

</html>

I added a bucket policy, but still doesn’t work:

{
    "Version": "2008-10-17",
    "Id": "Policy1351373775750",
    "Statement": [
        {
            "Sid": "Stmt1351373767997",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "s3:*",
            "Resource": [
                "arn:aws:s3:::cubito",
                "arn:aws:s3:::cubito/*"
            ]
        }
    ]
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:07:32+00:00Added an answer on June 13, 2026 at 1:07 pm

    I did it!!

    I change the var $endpoint in the s3 library.
    The original:

    public static $endpoint = 's3.amazonaws.com';
    

    The change:

    public static $endpoint = 's3-eu-west-1.amazonaws.com';
    

    With my first accesskey and secretkey it run!!!

    Thank you everyone and sorry for my bad English.

    ¡¡¡Gracias!!!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 3 projects hosted in amazon bitnami ec2 and my none of project
I have a project hosted with git. I just recently had to reinstall ubuntu,
I have a Python Facebook project hosted on Google App Engine and use the
I have a private project, and i want it hosted on google code. this
I have project I want to upgrade to .Net4 and it use BackgroundCopyManager.dll. Anyone
I have a project hosted on GitHub and I use Git for source versioning.
I have a HG project hosted on Bitbucket, and I want to move it
I have a java project hosted on a GitHub. And I want to allow
I have a project that is hosted on github. Now what I want is
My problem/issue We are working on an opensource project which we have hosted on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.