Post centos installation after a minimal installation

Reading Time: 1 minute 1. Auto network discovery there is an app called dhclient. It will easily discovery ip address and launch network right away dhclient -v 2.  install Gnome gui yum -y groupinstall “X Window System” “Desktop” “General Purpose Desktop” 3.start gui on startup nano /etc/inittab change id to 5 # Default runlevel. The runlevels used by RHS are:

Creating and converting an ssl certificate in numerous formats

Reading Time: 1 minute Creating a key file  openssl genrsa -des3 -out tugrul.key 1024 Creating CSR(Certificate Signing Request) file openssl req -new -key tugrul.key -out tugrul.csr Creating a CRT  Self-Signed SSL Certificate openssl x509 -req -days 365 -in tugrul.csr -signkey tugrul.key -out tugrul.crt Converting a Certificate File to PKCS#12(PFX) Format openssl pkcs12 -export -out tugrul.p12 -inkey tugrul.key -in tugrul.crt -certfile

LAMP Stack on Windows

Reading Time: 2 minutes Apache 2.4 Installation Download Apache 2.4.16 win32 from Apache lounge – Unzip entire content to C: and keep the folder name as given Visual C++ Redistributable for Visual Studio 2015 package for Win32 and install it – Go to unzipped Apache folder –> conf edit httpd.conf and edit those lines; Listen *:80 remove #

configure ssl

Reading Time: 1 minute Export from JKS to PKCS #12. keytool -importkeystore -srckeystore keystore.jks -destkeystore keystore.p12 -deststoretype PKCS12 -srcalias <jkskeyalias> -deststorepass <password> -destkeypass <password> mv keystore.p12 /root cd /root convert to key openssl rsa -outform der -in private.pem -out private.key nano /etc/httpd/conf.d/ssl.conf find the line <VirtualHost _default_:443> uncomment ServerName and type servername:443 uncomment: SSLEngine on SSLCertificateFile /root/downloadedcertificate.crt SSLCertificateKeyFile /root/private.key

Configure SSL on Apache and Glassfish and forward traffic to Glassfish

Reading Time: 2 minutes keytool -keysize 2048 -genkey -alias -keyalg RSA –dname “,O=company,L=Istanbul,S=Istanbul,C=TR” -keystore keystore.jks keytool –certreq –alias –keystore keystore.jks –file cert_req.csr keytool -import -alias -keystore keystore.jks -trustcacerts -file send that csr to generate your ssl file then download x509 certificate from geotrust then move the certificate to /root IMPORT SSL INTO KEYSTORE   download

Apache Mod_proxy to forward http traffic to Java App server 8080

Reading Time: 1 minute In my vps server I wanted to forward http port 80 to glassfish 8080 ports without having glassfish config changed. So I assume httpd apache server is installed. So cd /etc/httpd/conf nano httpd.conf Add the below lines and save and restart apache <VirtualHost *:80> # Your domain name ServerName Domain_NAME_HERE ProxyPreserveHost On ProxyPass / http://localhost:8080/

Installing Wildfly 8 on Centos

Reading Time: 2 minutes I’ll show you how to set up Wildfly 8 server for standalone not for the domain mode download the package and unzip cd /opt wget unzip -d /opt/ rename the unzipped folder mv wildfly-8.2.0.Final wildfly create the wildfly user groupadd wildfly useradd -s /bin/bash -g wildfly wildfly then prepare the config file path mkdir

Installing Jdk 7 on Centos

Reading Time: 1 minute download jdk on console cd /opt sudo wget –no-cookies –no-check-certificate –header "Cookie:; oraclelicense=accept-securebackup-cookie" \ "" then unpack tar zxvf jdk-7u75-linux-x64.tar.gz then create folder mkdir /usr/java then move mv jdk1.7.0_75/ /usr/java/ install java alternatives –install /usr/bin/java java /usr/java/jdk1.7.0_75/bin/java 1 install javac alternatives –install /usr/bin/javac javac /usr/java/jdk1.7.0_75/bin/javac 1 install jar alternatives –install /usr/bin/jar jar /usr/java/jdk1.7.0_75/bin/jar 1