Saturday, February 26, 2011

Setup Amazon linux for Grails

Install mysql

yum install mysql mysql-server mysql-libs
service mysqld start
chkconfig --levels 235 mysqld on
mysql_secure_installation



Install apache

sudo yum install httpd httpd-devel

add /etc/httpd/conf.d/proxy_ajp.conf

With this in it:

<Ifmodule mod_proxy_ajp.c>
ProxyRequests On
ProxyVia On

<Location />
Order allow,deny
Allow from all
ProxyPass ajp://localhost:8009/
ProxyPassReverse ajp://localhost:8009/
</Location>

</Ifmodule>

2 comments:

Davies Hall said...

Great post, I enjoyed ready reading it, Keep posting good stuff like this.
online masters samples

Jim Williamson said...

I see this problem when auto-deploy is set to true and I am uploading the war file over a slow connection to a Linux server. For some reason, Tomcat attempts to deploy the WAR before it has finished uploading to the server. Turning off auto-deploy and doing it manually, or ftping the file to a directory on the server other then webapps and then moving it into webapps fixes the problem. To get more info please visit http://writing-essay.org/revision-policy/.