Welcome Guest, Not a member yet? Register   Sign In
CI2 reactor and Amazon EC2 problem
#5

[eluser]coldfire82[/eluser]
[quote author="Mirge" date="1311677006"]
Write one =)[/quote]

Maybe I will. But a quick set of links below will help anyone who wants to setup CI website on EC2.

I have used a free tier EC2 instance and is working fine with CI ver 4.3.2. Below are the exact links I used to make it work from scratch.

Cygwin
A shell client to access unix OS from Windows. I am using winXP (don't hit me a brick Wink). Cygwin is a must have tool.

Getting PHP and MySQL running on Amazon EC2
To setup the whole PHP stuff on EC2. A very good and detailed guide.
http://www.alexkorn.com/blog/2011/03/get...mazon-ec2/
The above guide wants you to create a php sample page in /opt/app/current . I also did the same but later I changed its location to /var/www/html

VIM Commands that will be used to edit httpd.conf file via cygwin
http://www.tuxfiles.org/linuxhelp/vimcheat.html
I only used two
Quote:1) :w //to save file
2) :wq //to save and exit
.

To run the above commands, when you finish editing/inserting stuff in the command version of file, first press ESc and then write the above command.

Installing phpMyAdmin
Then, I followed the complete steps of how to install phpmyadmin. I have not used S3 because I dont need one right now, maybe later. Here is the guide for it, (only follow the one we need here)
http://www.calebogden.com/wordpress-on-l...-with-mac/



Uploading Stuff
Uploading your CI website folder to the /var/www/html directory, I used WinSCP.
http://winscp.net
(Phpmyadmin is also installed at the same home directory)

To use winscp you will need the .ppk file to login as ec2-user, that I created from PuttyGen. The by-default user access is restricted and it only allows the root user to upload/edit files. So, you need to change owner for your directory. Here is the command,
Code:
chown ec2-user /var/www/html
this code will change owner of the directory and assigns the owner as ec2-user (which is our user name). After editing stuff, you can make "root" the owner again.

htaccess
And, now is the last step where I stumbled at htaccess mod rules.

To enable rules in htaccess of your website: goto httpd.conf and add directory tag with the variable "AllowOverride all" in directory of /var/www/html/<yourwebsitefoldername>
it will look like this
Code:
<Directory "/var/www/html/yourwebsitefoldername" >
AllowOverride all
</Directory>

Save and exit.



Thats it.


Messages In This Thread
CI2 reactor and Amazon EC2 problem - by El Forum - 03-28-2011, 11:14 PM
CI2 reactor and Amazon EC2 problem - by El Forum - 04-04-2011, 07:07 AM
CI2 reactor and Amazon EC2 problem - by El Forum - 07-25-2011, 09:19 PM
CI2 reactor and Amazon EC2 problem - by El Forum - 07-25-2011, 11:43 PM
CI2 reactor and Amazon EC2 problem - by El Forum - 07-26-2011, 02:21 AM
CI2 reactor and Amazon EC2 problem - by El Forum - 07-26-2011, 09:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB