Saturday, June 27, 2015

Install LAMP on Centos 7.1

Install Apache

  • yum install httpd 
  • systemctl start httpd.service 
  • systemctl enable httpd.service 


Install MySQL

  • yum install mariadb-server mariadb
  • systemctl start mariadb
  • mysql_secure_installation 
  • systemctl enable mariadb.service 


Install PHP

  • yum install php php-mysql 
  • systemctl restart httpd.service 


Install PHPmyadmin

  • yum install epel-release 
  • yum install phpmyadmin
  • systemctl restart httpd.service 

Thursday, June 25, 2015

Grant Sudo Privileges To a User on Centos 7

From the command line:
gpasswd -a webapp wheel

Monday, June 22, 2015

Install Elasticsearch on Centos 7.1


  1. Download Current Java Runtime Environment from: http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
  2. sudo rpm -Uvh jre-8u45-linux-x64.rpm
  3. java -version
  4. sudo rpm -Uvh https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.6.0.noarch.rpm
  5. Define network.host: localhost in /etc/elasticsearch/elasticsearch.yml
  6. sudo systemctl daemon-reload
  7. sudo systemctl enable elasticsearch.service
  8. sudo systemctl start elasticsearch.service
  9. Execute curl -XGET 'http://localhost:9200/_cluster/health?pretty=true' to make sure the server is up and running