From 09a50af9794c5f992143be5a9d8f932632b3602e Mon Sep 17 00:00:00 2001 From: mAAdhaTTah Date: Sun, 4 Aug 2013 21:26:39 -0400 Subject: [PATCH 1/7] Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 56cb2fa..3295c2f 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,22 @@ You can `kill` the two processes at any time. The script may take a few seconds Include init.php at the top of any script that queries OpenFuego. See examples/getLinks.php for a dead-simple example and more instructions. +#### OpenFuego in a(n Amazon) Box + +This AWS server includes: + +* apache2 +* php5 (with php5-curl) +* sendmail +* mysql-server (root password: 0p3n-fu3g0 - __change this immediately__) +* phpmyadmin (admin user password: 0p3n-fu3g0 - __change this immediately__) +* git + +Has phpmyadmin symlinked (cmd: `ln -s /usr/share/phpmyadmin /var/www/phpmyadmin`) + +Create /var/www/openfuego - fetched OpenFuego from Nieman (run `git pull origin master` to update to latest version) + + ### Requirements and notes OpenFuego is PHP. It requires PHP 5.3.0 or higher, MySQL 5.0 or higher, and a *nix environment. In many cases the program won’t work in shared hosting environments and you’ll need root access. This is because OpenFuego is designed to run continuously in the background, like a daemon. (If you know much about programming, you know PHP is a bad language for this type of program. PHP is what I knew when I first sat down to write the program, and by the time it became big and complex, it would have been too much work to learn a different language and start from scratch.) From 0eca5b5ce583822453aeac37461280e356a19103 Mon Sep 17 00:00:00 2001 From: mAAdhaTTah Date: Sun, 4 Aug 2013 22:33:09 -0400 Subject: [PATCH 2/7] Remove Amazon Box from README.md - moving to separate file --- README.md | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/README.md b/README.md index 3295c2f..56cb2fa 100644 --- a/README.md +++ b/README.md @@ -30,22 +30,6 @@ You can `kill` the two processes at any time. The script may take a few seconds Include init.php at the top of any script that queries OpenFuego. See examples/getLinks.php for a dead-simple example and more instructions. -#### OpenFuego in a(n Amazon) Box - -This AWS server includes: - -* apache2 -* php5 (with php5-curl) -* sendmail -* mysql-server (root password: 0p3n-fu3g0 - __change this immediately__) -* phpmyadmin (admin user password: 0p3n-fu3g0 - __change this immediately__) -* git - -Has phpmyadmin symlinked (cmd: `ln -s /usr/share/phpmyadmin /var/www/phpmyadmin`) - -Create /var/www/openfuego - fetched OpenFuego from Nieman (run `git pull origin master` to update to latest version) - - ### Requirements and notes OpenFuego is PHP. It requires PHP 5.3.0 or higher, MySQL 5.0 or higher, and a *nix environment. In many cases the program won’t work in shared hosting environments and you’ll need root access. This is because OpenFuego is designed to run continuously in the background, like a daemon. (If you know much about programming, you know PHP is a bad language for this type of program. PHP is what I knew when I first sat down to write the program, and by the time it became big and complex, it would have been too much work to learn a different language and start from scratch.) From 7b200c8823da9072c9d93cac05dd17f03984a2c5 Mon Sep 17 00:00:00 2001 From: mAAdhaTTah Date: Sun, 4 Aug 2013 22:34:03 -0400 Subject: [PATCH 3/7] Create Amazon AWS instructions --- AMAZONAWS.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 AMAZONAWS.md diff --git a/AMAZONAWS.md b/AMAZONAWS.md new file mode 100644 index 0000000..c4b458a --- /dev/null +++ b/AMAZONAWS.md @@ -0,0 +1,33 @@ +# OpenFuego in a(n Amazon) Box + +There is an AMI on Amazon Web Services that allows you to quickly deploy a cloud server to run OpenFuego. You can use [EC2 for Poets](http://ec2.forpoets.org/) as a guide. A full guide is forthcoming. Below I've documented what that box includes: + +Software installed: + +* ubuntu 12.04 LTS +* apache2 +* php5 (with php5-curl) +* sendmail +* mysql-server (root password: 0p3n-fu3g0 - __change this immediately__) +* phpmyadmin (admin user password: 0p3n-fu3g0 - __change this immediately__) +* git + +Commands run: + +Followed Phelps' instructions [here](https://github.com/niemanlab/openfuego/issues/4#issuecomment-21755406) + +Symlinked phpmyadmin (cmd: `ln -s /usr/share/phpmyadmin /var/www/phpmyadmin`) + +Created folder /var/www/openfuego - fetched OpenFuego from Nieman (run `git pull origin master` in that folder to update to latest version) + +Created index.php in /var/www that will quickly return some links as soon as they're pulled to test your implementation + +What you need to do: + +Log in to phpmyadmin and change the [mysql](http://www.cyberciti.biz/faq/mysql-change-root-password/) and [phpmyadmin](http://stackoverflow.com/questions/14703223/mysql-phpmyadmin-reset-root-password) passwords + +Create database in phpmyadmin + +Copy and edit config.php filled in for info + +Run fetch.php From 32f80870ef8bb4540cc533a8b52bc7ba9b75498d Mon Sep 17 00:00:00 2001 From: mAAdhaTTah Date: Sun, 4 Aug 2013 22:34:51 -0400 Subject: [PATCH 4/7] Update AMAZONAWS.md --- AMAZONAWS.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AMAZONAWS.md b/AMAZONAWS.md index c4b458a..bc9dfe5 100644 --- a/AMAZONAWS.md +++ b/AMAZONAWS.md @@ -2,7 +2,7 @@ There is an AMI on Amazon Web Services that allows you to quickly deploy a cloud server to run OpenFuego. You can use [EC2 for Poets](http://ec2.forpoets.org/) as a guide. A full guide is forthcoming. Below I've documented what that box includes: -Software installed: +## Software installed: * ubuntu 12.04 LTS * apache2 @@ -12,7 +12,7 @@ Software installed: * phpmyadmin (admin user password: 0p3n-fu3g0 - __change this immediately__) * git -Commands run: +## Commands run: Followed Phelps' instructions [here](https://github.com/niemanlab/openfuego/issues/4#issuecomment-21755406) @@ -22,12 +22,12 @@ Created folder /var/www/openfuego - fetched OpenFuego from Nieman (run `git pull Created index.php in /var/www that will quickly return some links as soon as they're pulled to test your implementation -What you need to do: +## What you need to do: Log in to phpmyadmin and change the [mysql](http://www.cyberciti.biz/faq/mysql-change-root-password/) and [phpmyadmin](http://stackoverflow.com/questions/14703223/mysql-phpmyadmin-reset-root-password) passwords Create database in phpmyadmin -Copy and edit config.php filled in for info +Copy and edit config.php with info Run fetch.php From de9cf8f89f920b75e630ddcc19ca5370d50570b8 Mon Sep 17 00:00:00 2001 From: mAAdhaTTah Date: Sun, 4 Aug 2013 22:43:12 -0400 Subject: [PATCH 5/7] Update readme.md with reference to new instructions --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 56cb2fa..957618a 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ OpenFuego is a backend application that runs at the command line. There is nothi Follow the instructions in config.php. Create a MySQL database and enter the credentials in that file, along with Twitter credentials and optional (but recommended) API keys for Bitly, Goo.gl, and Embed.ly. +You can also check out AMAZONAWS for instructions on running OpenFuego on Amazon Web Services' free tier. + ### Usage Once config.php is edited, run `fetch.php` at the command line. You may or not get further instructions, depending on whether your version of PHP is compiled with process control. From 63be92c10cd5b5c81c3799c4deb6c5bef9f17da7 Mon Sep 17 00:00:00 2001 From: mAAdhaTTah Date: Mon, 5 Aug 2013 12:39:44 -0400 Subject: [PATCH 6/7] Update AMAZONAWS.md --- AMAZONAWS.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AMAZONAWS.md b/AMAZONAWS.md index bc9dfe5..1f1899e 100644 --- a/AMAZONAWS.md +++ b/AMAZONAWS.md @@ -22,6 +22,8 @@ Created folder /var/www/openfuego - fetched OpenFuego from Nieman (run `git pull Created index.php in /var/www that will quickly return some links as soon as they're pulled to test your implementation +Removed rootlogin with password (keypair required) + ## What you need to do: Log in to phpmyadmin and change the [mysql](http://www.cyberciti.biz/faq/mysql-change-root-password/) and [phpmyadmin](http://stackoverflow.com/questions/14703223/mysql-phpmyadmin-reset-root-password) passwords @@ -30,4 +32,4 @@ Create database in phpmyadmin Copy and edit config.php with info -Run fetch.php +Run fetch.php `php fetch.php` (I typically run w `-v` to see if there are any problems) From babf0641f44b4811a4284f7eb2472e8bd70962c6 Mon Sep 17 00:00:00 2001 From: mAAdhaTTah Date: Mon, 5 Aug 2013 12:44:46 -0400 Subject: [PATCH 7/7] Update AMAZONAWS.md --- AMAZONAWS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AMAZONAWS.md b/AMAZONAWS.md index 1f1899e..4238a86 100644 --- a/AMAZONAWS.md +++ b/AMAZONAWS.md @@ -1,6 +1,6 @@ # OpenFuego in a(n Amazon) Box -There is an AMI on Amazon Web Services that allows you to quickly deploy a cloud server to run OpenFuego. You can use [EC2 for Poets](http://ec2.forpoets.org/) as a guide. A full guide is forthcoming. Below I've documented what that box includes: +There is an AMI on Amazon Web Services that allows you to quickly deploy a cloud server to run OpenFuego. Search for 'OpenFuego' in the [AWS Marketplace](https://aws.amazon.com/marketplace/). You can use [EC2 for Poets](http://ec2.forpoets.org/) as a guide for launching and running your own AWS instance. A full guide for OpenFuego is forthcoming. Below I've documented what that box includes: ## Software installed: