<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Amazon_EC2_Cloud_Services_Installation</id>
	<title>Amazon EC2 Cloud Services Installation - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Amazon_EC2_Cloud_Services_Installation"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Amazon_EC2_Cloud_Services_Installation&amp;action=history"/>
	<updated>2026-05-06T17:45:05Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Amazon_EC2_Cloud_Services_Installation&amp;diff=1887&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Amazon_EC2_Cloud_Services_Installation&amp;diff=1887&amp;oldid=prev"/>
		<updated>2024-10-18T06:30:49Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:30, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Amazon_EC2_Cloud_Services_Installation&amp;diff=1886&amp;oldid=prev</id>
		<title>1&gt;Tim@horizoneducationnetwork.org: clean up, typos fixed:</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Amazon_EC2_Cloud_Services_Installation&amp;diff=1886&amp;oldid=prev"/>
		<updated>2021-09-22T15:15:44Z</updated>

		<summary type="html">&lt;p&gt;clean up, typos fixed:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is essentially a linux box in the cloud but at the time of writing I did not like to add it to the Linux category, it seems more general than that somehow. If this install lacks detail or doesn&amp;#039;t work then see comments attached to this page. I start this off with some assumptions and then go though a full install using the cli. &lt;br /&gt;
The assumptions are that you have an Amazon 32 bit EC2 Linux server setup and you have ssh &amp;amp; http access to it.&lt;br /&gt;
&lt;br /&gt;
= Install all the requirements =&lt;br /&gt;
From the cli as root or sudo&lt;br /&gt;
&lt;br /&gt;
 yum install httpd&lt;br /&gt;
 yum install mysql-server &lt;br /&gt;
 yum install git&lt;br /&gt;
 yum install php&lt;br /&gt;
 yum install php-gd &lt;br /&gt;
 yum install php-pear&lt;br /&gt;
 yum install php-mbstring&lt;br /&gt;
 yum install memcached &lt;br /&gt;
 yum install php-mcrypt &lt;br /&gt;
 yum install php-xmlrpc &lt;br /&gt;
 yum install php-soap &lt;br /&gt;
 yum install php-intl &lt;br /&gt;
 yum install php-zip &lt;br /&gt;
 yum install php-zts&lt;br /&gt;
 yum install php-xml&lt;br /&gt;
&lt;br /&gt;
Or save some typing and copy and paste this into the terminal. It will install everything one should need for a Moodle installation:&lt;br /&gt;
&lt;br /&gt;
sudo yum -y install aspell aspell-en aspell-fr aspell-es cvs git httpd memcached mysql mysql-server php php-cli php-gd php-intl php-mbstring php-mcrypt php-mysql php-pdo php-pear php-pecl-zip php-pspell php-soap php-xml php-xmlrpc php-zip php-zts unzip zip zip.so&lt;br /&gt;
&lt;br /&gt;
= To ensure that mysql and httpd come up on boot. =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 chkconfig mysqld on &lt;br /&gt;
 chkconfig httpd on&lt;br /&gt;
&lt;br /&gt;
= To ensure that utf8 is used by mysql =&lt;br /&gt;
&lt;br /&gt;
edit /etc/my.cnf to read as follows (I have found that the precise lines required seem to vary as time goes on)&lt;br /&gt;
Back up my.cnf first with &lt;br /&gt;
 cp /etc/my.cnf /etc/mycnf.original&lt;br /&gt;
&lt;br /&gt;
Then edit to read&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 default-character-set=utf8&lt;br /&gt;
 default-collation=utf8_unicode_ci&lt;br /&gt;
 character-set-server=utf8&lt;br /&gt;
 collation-server=utf8_unicode_ci&lt;br /&gt;
 datadir=/var/lib/mysql&lt;br /&gt;
 socket=/var/lib/mysql/mysql.sock&lt;br /&gt;
 user=mysql&lt;br /&gt;
 # Disabling symbolic-links is recommended to prevent assorted security risks&lt;br /&gt;
 symbolic-links=0&lt;br /&gt;
 [mysqld_safe]&lt;br /&gt;
 log-error=/var/log/mysqld.log&lt;br /&gt;
 pid-file=/var/run/mysqld/mysqld.pid&lt;br /&gt;
 [client]&lt;br /&gt;
 default-character-set=utf8&lt;br /&gt;
&lt;br /&gt;
Check that mysql restarts with &lt;br /&gt;
 service mysqld restart&lt;br /&gt;
&lt;br /&gt;
NB edit. Later with FC16 I found that I needed to make my.cnf read&lt;br /&gt;
&lt;br /&gt;
 [mysqld]&lt;br /&gt;
 # Settings user and group are ignored when systemd is used.&lt;br /&gt;
 # If you need to run mysqld under different user or group, &lt;br /&gt;
 # customize your systemd unit file for mysqld according to the&lt;br /&gt;
 # instructions in http://fedoraproject.org/wiki/Systemd&lt;br /&gt;
 character-set-server=utf8&lt;br /&gt;
 collation-server=utf8_unicode_ci&lt;br /&gt;
 datadir=/var/lib/mysql&lt;br /&gt;
 socket=/var/lib/mysql/mysql.sock&lt;br /&gt;
 # Disabling symbolic-links is recommended to prevent assorted security risks&lt;br /&gt;
 symbolic-links=0&lt;br /&gt;
&lt;br /&gt;
 [mysqld_safe]&lt;br /&gt;
 log-error=/var/log/mysqld.log&lt;br /&gt;
 pid-file=/var/run/mysqld/mysqld.pid&lt;br /&gt;
&lt;br /&gt;
= In order to make sure php is included when httpd comes up =&lt;br /&gt;
&lt;br /&gt;
make sure you have a file called /etc/httpd/conf.d/php.conf whose contents are like the following&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;IfModule prefork.c&amp;gt;&lt;br /&gt;
 LoadModule php5_module modules/libphp5.so&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt; &amp;lt;IfModule worker.c&amp;gt;&lt;br /&gt;
 LoadModule php5_module modules/libphp5-zts.so&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
 AddHandler php5-script .php AddType text/html .php&lt;br /&gt;
 DirectoryIndex index.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the time of writing 26-01-2012) (php-common should provide zip.so but it doesn&amp;#039;t so I have put a copy here (http://moodle.org/mod/forum/discuss.php?d=194589))&lt;br /&gt;
Attached to a forum post. Perhaps a wiki buff could fix that better.&lt;br /&gt;
&lt;br /&gt;
Once you have got zip.so, put it in /usr/lib/php/modules&lt;br /&gt;
&lt;br /&gt;
Also you need to add&lt;br /&gt;
&lt;br /&gt;
 extension=zip.so&lt;br /&gt;
&lt;br /&gt;
to your php.ini (in /etc)&lt;br /&gt;
&lt;br /&gt;
= Create the database, database user and access rights =&lt;br /&gt;
run&lt;br /&gt;
&lt;br /&gt;
 mysql_secure_installation&lt;br /&gt;
&lt;br /&gt;
Answer all the questions conservatively. (e.g. You will not need test databases or for root to have any other mysql access than local.) This will create a root mysql pw for you. Mysql users are nothing whatsoever to do with you unix users.&lt;br /&gt;
&lt;br /&gt;
run&lt;br /&gt;
  mysql -u root -p&lt;br /&gt;
 &amp;lt;password you set above&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In mysql you need to &lt;br /&gt;
&lt;br /&gt;
1. make a database. The name can be anything you like. I used moodledb&lt;br /&gt;
&lt;br /&gt;
2. make a database user. The name can be anything you like. I used moodledbuser.&lt;br /&gt;
&lt;br /&gt;
3. give that user rights to access the database from the localhost. &lt;br /&gt;
&lt;br /&gt;
4. No db access is required by anyone from any other host than the localhost&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
** Now you are in mysql and all the commands are mysql commands and could equally be run on a windows instance of mysql. Do not forget the &amp;quot;;&amp;quot; after each command.&lt;br /&gt;
&lt;br /&gt;
 create database moodledb;&lt;br /&gt;
 grant all privileges on moodledb.* to moodledbuser@localhost identified by &amp;#039;&amp;lt;put a pw here&amp;gt;&amp;#039;;&lt;br /&gt;
 quit&lt;br /&gt;
&lt;br /&gt;
TEST the above by doing&lt;br /&gt;
&lt;br /&gt;
 mysql -u moodledbuser -p&lt;br /&gt;
 &amp;lt;password&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you get connected OK then you can go on and quit.&lt;br /&gt;
&lt;br /&gt;
= Create moodledata folder =&lt;br /&gt;
 mkdir /var/www/moodledata&lt;br /&gt;
&lt;br /&gt;
The default root folder for apache is /var/www/html and so moodledata is not accessible from the web.&lt;br /&gt;
Next, give the apache user all the access rights to moodledata. This is better than chmod 777 which some users seem to do.&lt;br /&gt;
&lt;br /&gt;
 chown apache:apache /var/www/moodledata&lt;br /&gt;
&lt;br /&gt;
= Fetch moodle =&lt;br /&gt;
&lt;br /&gt;
 cd /var/www/html&lt;br /&gt;
 git clone git://git.moodle.org/moodle.git&lt;br /&gt;
&lt;br /&gt;
This should put all of moodle in a directory called moodle in the correct folder /var/www/html. It takes a while but you get %age feedback.&lt;br /&gt;
&lt;br /&gt;
There are more sophisticated git commands, see git docs in moodle docs for more info.&lt;br /&gt;
Also, you may give the apache user ownership of the site, this way, when you install, the script will be able to create the config.php file.&lt;br /&gt;
If you leave the owner as root, you will have to paste the suggested config.php into /var/www/html/moodle&lt;br /&gt;
&lt;br /&gt;
To give apache ownership do&lt;br /&gt;
&lt;br /&gt;
 chown -R apache:apache /var/www/html/moodle&lt;br /&gt;
&lt;br /&gt;
= Do the install =&lt;br /&gt;
&lt;br /&gt;
Visit http://&amp;lt;your amazon host&amp;gt;/moodle&lt;br /&gt;
&lt;br /&gt;
Well, it worked for me!&lt;br /&gt;
&lt;br /&gt;
= Other Resources =&lt;br /&gt;
&lt;br /&gt;
For another method of using Amazon EC2 for Moodle hosting you can utilize the free image created by Bitnami.org: http://bitnami.org/stack/moodle which makes creating a Moodle server on Amazon a snap (no command line necessary)&lt;br /&gt;
&lt;br /&gt;
[[ja:Amazon EC2クラウドサービスインストレーション]]&lt;/div&gt;</summary>
		<author><name>1&gt;Tim@horizoneducationnetwork.org</name></author>
	</entry>
</feed>