Forum

Questions and discussions

Rackspace error?

At Rackspace clouds hosting and Amazon S3

Rackspace error?

Postby Mk2000 » Mon Sep 26, 2011 3:41 pm

Hi I am trying a rackspace account.

I did filled in my API code and the username but get the following error pressing the test button: :?

Warning: curl_setopt() [function.curl-setopt]:
CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/deb19087n2/domains/XXXXX.com/public_html/admin/rackspace/cloudfiles_http.php on line 216

Fatal error: Uncaught exception 'AuthenticationException' with message 'Invalid username or access key.' in /home/xxxxxxx/domains/XXXXX.com/public_html/admin/rackspace/cloudfiles.php:209 Stack trace: #0 /home/xxxxxxx/domains/XXXXX.com/public_html/admin/storage/rackspace.php(87): CF_Authentication->authenticate() #1 /home/xxxxxxx/domains/XXXXX.com/public_html/admin/storage/index.php(42): include('/home/xxxxxxx...') #2 {main} thrown in /home/xxxxxxx/domains/XXXXX.com/public_html/admin/rackspace/cloudfiles.php on line 209
Mk2000
 
Posts: 22
Joined: Sun Sep 25, 2011 3:32 pm

Re: Rackspace error?

Postby Mk2000 » Mon Sep 26, 2011 4:06 pm

ok perhaps because my account needs to be verified first

keep you updated on this

MK
Mk2000
 
Posts: 22
Joined: Sun Sep 25, 2011 3:32 pm

Re: Rackspace error?

Postby Mk2000 » Mon Sep 26, 2011 4:48 pm

My Rackspace account seem to be active and I still get this error.

Any idea what could be wrong? :?:
Mk2000
 
Posts: 22
Joined: Sun Sep 25, 2011 3:32 pm

Re: Rackspace error?

Postby admin » Wed Sep 28, 2011 6:16 am

This is a server's settings issue.
You should ask your hosting support to resolve the security problem:

Warning: curl_setopt() [function.curl-setopt]:
CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set
admin
Site Admin
 
Posts: 1465
Joined: Sun Mar 07, 2010 5:55 pm

Re: Rackspace error?

Postby Mk2000 » Wed Sep 28, 2011 8:25 am

Hi Admin,

just got a reply from my ISP who says:
"The script appears to handle open_basedir not correctly.
The writers of the script should change the way the script works. Most ISP use open_dir, so it is strange that it doesn't work correctly"

Now I am back to where I started. :roll:

What can I no now??
Mk2000
 
Posts: 22
Joined: Sun Sep 25, 2011 3:32 pm

Re: Rackspace error?

Postby Mk2000 » Thu Oct 06, 2011 11:08 am

Hi CMSaccount team,
just wanted to thank you for the great support to get this all working. (this all happened outside the public forum). :D
Great support!

best
Menno
Mk2000
 
Posts: 22
Joined: Sun Sep 25, 2011 3:32 pm

Re: Rackspace error?

Postby admin » Thu Oct 06, 2011 11:17 am

I am not sure what helped to resolve the issue of the server's restrictions exactly.

I only modified 2 files:

1) /admin/rackspace/cloudfiles.php

replace:
Code: Select all
define("US_AUTHURL", "https://auth.api.rackspacecloud.com");


with:
Code: Select all
define("US_AUTHURL", "https://lon.auth.api.rackspacecloud.com");


2) /admin/rackspace/cloudfiles_http.php

replace everywhere:
Code: Select all
curl_setopt($curl_ch, CURLOPT_SSL_VERIFYPEER, True);


with:
Code: Select all
curl_setopt($curl_ch, CURLOPT_SSL_VERIFYPEER, false);


and replace everywhere:
Code: Select all
curl_setopt($curl_ch, CURLOPT_FOLLOWLOCATION, 1);


with:
Code: Select all
curl_setopt($curl_ch, CURLOPT_FOLLOWLOCATION, 0);
admin
Site Admin
 
Posts: 1465
Joined: Sun Mar 07, 2010 5:55 pm


Return to Remote file storage

Who is online

Users browsing this forum: No registered users and 0 guests

cron
  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.