Set umask: ~/.bashrc add the following line at the end of the file: umask 027
Create an SSH key, put public part into /home/compile/.ssh/authorized_keys file Example: from="91.246.226.251",no-port-forwarding,no-pty,no-agent-forwarding,no-X11-forwarding ssh-rsa AAa+bMcd8XpUS4p/04w== deploy-try
private key save at KOINS.Studio under Contents - Deploy - Compilation servers
Provide access for the following IP addresses: dev.1024.info, office.1024.info, any IP addresses you may want to access from. The access may be needed to update compilation server software.
Revoke all privileges from group and other users: chmod go-rwx -R .
install svn: yum install svn
create .subversion directory: su compile svn ls svn+ssh://svn.1024.info/ this will likely ask you to specify a password, just press ctrl+c - we do not really want to connect, we just want to create .subversion directory structure
Install compilder core:
Checkout compiler code from libs/amazon/compile
Upload compiler code to compiler's home root (bin/ and core/ directories).
Create manually directory structure under data/ directory.
Amazon static container
Create an S3 bucket. For example, wl-static
Create a CloudFront distribution. Use the following settings: Minimum TTL: 31557600 Forward Query Strings: yes Alternate Domain Names (CNAMEs): specify your name here
Create IAM group form compiler origin: {
"Statement": [
{
"Action": "*",
"Effect": "Deny",
"Resource": "*",
"Condition": {
"NotIpAddress": {
"aws:SourceIp": [
"176.34.126.143"
]
}
}
}
]
}
Create an IAM user, add it to these two groups.
Create an Amazon account in KOINS.Studio.
Deployment instance
Create an apache user useradd -g apache -m -N example.com
Set umask: /home/example.com/.bashrc add the following line at the end of the file: umask 027
Create an SSH key for apache user, put public part into /home/example.com/.ssh/authorized_keys file Example: from="10.*.*.*",no-port-forwarding,no-pty,no-agent-forwarding,no-X11-forwarding ssh-rsa AAa+bMcd8XpUS4p/04w== deploy
private key save at KOINS.Studio under Contents - Deployment instances to save the instance, you should also specify keys for control user, these keys are created later.
Revoke all privileges from group and other users: chmod go-rwx -R .
Create a control user useradd control
Set umask: /home/control/.bashrc add the following line at the end of the file: umask 027
Set owner: chown control:apache /home/control chown control:apache -R /home/control/public_html
Create a domain in Apache: /etc/httpd/vhosts.d/control.conf <VirtualHost *:80>
ServerName control
DocumentRoot /home/control/public_html/
ErrorLog /home/control/.apache/error.log
CustomLog /home/control/.apache/access.log combined
DirectoryIndex index.html index.php
<Directory /home/control/public_html>
Options -Indexes +IncludesNOEXEC -FollowSymLinks +ExecCGI
Allow from 127.0.0.1
AllowOverride None
</Directory>
</VirtualHost>
Try how the domain works: /etc/init.d/httpd reload /home/control/bin/apc-flush.sh You should see 'ok' in the result.
edit sudoers. For this, run: visudo and add the following lines at the end of the file: control ALL = NOPASSWD: /home/control/bin/apache-restart.sh, NOPASSWD: /home/control/bin/apache-reload.sh
Defaults:control !requiretty
%apache ALL = (apache) NOPASSWD: /usr/bin/php
Defaults:%apache !requiretty
Create an SSH key for control user, put public part into /home/control/.ssh/authorized_keys file Example: from="10.*.*.*",no-port-forwarding,no-pty,no-agent-forwarding,no-X11-forwarding ssh-rsa AAa+bMcd8XpUS4p/04w== control
private key save at KOINS.Studio under Contents - Deployment instances
Revoke all privileges from group and other users: chmod go-rwx -R .