{"id":250,"date":"2009-06-17T13:02:57","date_gmt":"2009-06-17T18:02:57","guid":{"rendered":"http:\/\/www.1oc.com\/blog\/?p=250"},"modified":"2011-07-14T22:17:37","modified_gmt":"2011-07-15T02:17:37","slug":"preparing-genexus-to-deploy-applications-on-unix-with-java-and-mysql","status":"publish","type":"post","link":"http:\/\/blog.1oc.com\/?p=250","title":{"rendered":"Preparing Genexus to deploy applications on Unix with Java and Mysql"},"content":{"rendered":"<p>We&#8217;ll assume here that you already installed a Unix operating system, or Linux.<\/p>\n<p>I&#8217;m using CentOS 5.0 (linux) on this example.<\/p>\n<p>In addition I&#8217;m assuming that Apache , php and mysql is already installed, as well as phpMyAdmin since all of them came standard with most Linux.<\/p>\n<p>Although we are not using any of those directlly on our application, we&#8217;ll use phpMyAdmin as a visual tool to connect with MySql, but in order to run phpMyAdmin you have to have Apache with php \ud83d\ude42<\/p>\n<p>Let&#8217;s start by downloading Tomcat and Java for Linux<\/p>\n<p>If you are logged in your Lunux through ssh terminal, simply use the following commands:<\/p>\n<p>this is for tomcat<\/p>\n<p><em><strong>wget http:\/\/apache.g5searchmarketing.com\/tomcat\/tomcat-5\/v5.5.27\/bin\/apache-tomcat-5.5.27.tar.gz<\/strong><\/em><\/p>\n<p>or click here to download the file i used <a href=\"http:\/\/blog.1oc.com\/UploadedFiles\/apache-tomcat-5.5.27.tar.gz\">(Tomcat)<\/a><\/p>\n<p>this is for java<\/p>\n<p><em><strong>wget http:\/\/cds.sun.com\/is-bin\/INTERSHOP.enfinity\/WFS\/CDS-CDS_Developer-Site\/en_US\/-\/USD\/VerifyItem-Start\/jre-6u14-linux-i586-rpm.bin?BundledLineItemUUID=63tIBe.l9l4AAAEhrxM_7Kzm&amp;OrderID=f.5IBe.lA4MAAAEhlhM_7Kzm&amp;ProductID=hhNIBe.pzioAAAEhP1UP5zfr&amp;FileName=\/jre-6u14-linux-i586-rpm.bin<\/strong><\/em><\/p>\n<p>or click here to download the file I used <a href=\"http:\/\/blog.1oc.com\/UploadedFiles\/jre-6u14-linux-i586-rpm.bin\">(Java)<\/a><\/p>\n<p>Or just go to their sites and download them from there.<\/p>\n<p>For Java, we are using the pre-zipped auto-executable rpm file.<\/p>\n<p>This means, that first we&#8217;ll give the file the mode to be executed<\/p>\n<p><strong><em>chmod +x jre-6u14-linux-i586-rpm.bin<\/em><\/strong><\/p>\n<p><strong><em>.\/jre-6u14-linux-i586-rpm.bin<\/em><\/strong><\/p>\n<p>and them we execute it to install (you don&#8217;t need to rung the rpm command, it&#8217;s done automatically). This script install Java in the following directory\u00a0<strong>\/usr\/java\/default<\/strong>\/.<\/p>\n<p>Now let&#8217;s untar Tomcat. For compatibility reasons, let&#8217;s put it under the following directory:\u00a0<strong>\/usr\/tomcat\/default\/<\/strong> , but actually we untar it under \/user\/tomcat\/apache-tomcat-5.5.27\/ and later we create the symbolic link &#8220;default&#8221; to that particular directory.<\/p>\n<p><em><strong>tar xzf apache-tomcat-5.5.27.tar.gz<\/strong><\/em><\/p>\n<p><em><strong>ln -s apache-tomcat-5.5.27\/ default<\/strong><\/em><\/p>\n<p>Now, let&#8217;s configure the operating system with the appropriate global variables<\/p>\n<p>At the end of the \/etc\/profile (file) we add the following commands:<\/p>\n<p><em><strong>export JAVA_HOME=\/usr\/java\/default<\/strong><\/em><\/p>\n<p><em><strong>export CATALINA_HOME=\/usr\/tomcat\/default<\/strong><\/em><\/p>\n<div>Save and restart.<\/div>\n<div>Now, you are ready to go.<\/div>\n<div>Enjoy \ud83d\ude42<\/div>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ll assume here that you already installed a Unix operating system, or Linux. I&#8217;m using CentOS 5.0 (linux) on this example. In addition I&#8217;m assuming that Apache , php and mysql is already installed, as well as phpMyAdmin since all &hellip; <a href=\"http:\/\/blog.1oc.com\/?p=250\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,8,11],"tags":[],"class_list":["post-250","post","type-post","status-publish","format-standard","hentry","category-genexus","category-servers","category-web-applications"],"_links":{"self":[{"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/posts\/250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=250"}],"version-history":[{"count":1,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/posts\/250\/revisions"}],"predecessor-version":[{"id":400,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=\/wp\/v2\/posts\/250\/revisions\/400"}],"wp:attachment":[{"href":"http:\/\/blog.1oc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.1oc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}