Skip to content
This repository was archived by the owner on Apr 21, 2022. It is now read-only.

bretticus/rackspace-cloud-files-cdn-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rackspace-cloud-files-cdn-sync

Stand-alone PHP script to compliment Rackspace CDN plugin for Wordpress. Useful if you need to sync a large amount of wordpress uploads and you don't want to re-upload exiting files. Using a standalone script eliminates Apache or nginx + php-fpm timeout issues.

Script is currently BROKEN

Requirements

  • PHP >=5.3.3
  • Composer

Installation

You must install this through Composer to get dependencies:

# Install Composer
curl -sS https://getcomposer.org/installer | php

# install dependencies
php composer.phar install

Basic Use

Either make the script executable...

chmod +x /path/to/file/rackspace-cdn-sync
/path/to/file/rackspace-cdn-sync

... or run it with your interpreter ...

bash /path/to/file/rackspace-cdn-sync

Settings File

Place a settings.ini file (in the same folder as the script) to avoid being prompted for settings each time.

Here are some sample contents of the settings.ini file:

[api]
key=e62435243534574567456887878c6
username=theusername
container=mycontainername
region=DFW
id_endpoint=US
;id_endpoint=UK

[files]
path=/path/to/existing/files

[mysql]
host=localhost
database=wp_db_name
username=user_with_rw
password=xxx

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published