News:

SMF - Just Installed!

Main Menu
Menu

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.

Show posts Menu

Messages - saurabhj

#1
No, You don't need to install a Wordpress plugin as long as you are already using one of the pre-built CloudFlare extensions.
The CloudFlare Wordpress plugin helps get the original IP addresses from visitors commenting on your customer's site. That's done automatically in the pre-built plugins.
#2
You can perform the following command which checks if the file exists on the current server:

Quote#find / -name ModCloudflare.pm


You should be able to get output like below:

QuoteOutput   :   /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy/ModCloudflare.pm
#3
An uninstall script has been provided to unregister the plugin with cPanel and remove all CloudFlare specific files from the server to deactivate the plugin.

The following set of commands will download the necessary files, execute the uninstall script and ultimately remove the uninstall script as well

Quote#wget https://raw.githubusercontent.com/cloudflare/CloudFlare-CPanel/master/cloudflare/installers/cloudflare.cpanelplugin && bash <(curl -s https://raw.githubusercontent.com/cloudflare/CloudFlare-CPanel/master/cloudflare/uninstall_cf) && rm -f uninstall_cf
NOTE: This will not remove zones or users from CloudFlare that have been registered through the plugin.
#4
Run the following command on your cPanel server to update the plugin

Quote#/usr/local/cpanel/bin/cloudflare_update.sh
#5
Run the following command on your cPanel server to see the version of the plugin:

Quote#cat /usr/local/cpanel/etc/cloudflare.json | grep version
#6
In order to turn on the SSH/Shell Access icon in the user's cPanel you should

[1] Log in to the VPS WHM.

[2] Navigate to Packages->Feature Manager.

[3] Create a new list or edit an existing one and make sure you enable the SSH Connection Window option.

[4] Click on the Save button to keep the changes.

[5] You need to assign this feature list to all accounts which you want to have the SSH/Shell Access icon visible in cPanel.

For more information on How to enable SSH access for your users can be found in our article here: 
--> https://www.milesweb.com/forums/how-to's/how-to-enable-ssh-on-vps-through-whm

Looking for quality VPS hosting? Look no further than MilesWeb VPS Hosting.
#7
One of our client was receiving following message continuously on his email.

Server   server.magzyn.com
Primary IP Address   72.9.104.194
Service Name   rsyslogd
Service Status   failed
Notification   The service "rsyslogd" appears to be down.
Service Check Method   The system's command to check or to restart this service failed.
Number of Restart Attempts   536
Startup Log   
No startup log
Log Messages   
The system could not provide log messages for "rsyslogd" because it failed to read all of the potential log files with the following errors:
Memory Information   
Used   335 MB
Available   318 MB
Installed   653 MB
Load Information   0.00 0.04 0.05

Answer :
To solve this error I have performed few steps :

[1] Restart the rsyslogd service.
Quote/etc/init.d/rsyslog restart

[2] Login to WHM panel

[3] Goto Service Manager

[4] Check for "rsyslog System Logger Daemon" and make it enable.

[5] Save the changes.

That's it.
#8
Recently, We had an issue with the wordpress installed in softaculous. The Wordpress icon comes under the Softaculous package but was not visible when we go through cPanel >> Software and Services >> Softaculous.

To solve this issue, follow the steps given as below :

[1] Login to your WHM panel.

[2] Search for Softaculous - Instant Installs

[3] In Softaculous - Instant Installs go through Software >> General scripts. Here you can see all the all the softwares comes with softaculous installer.

[4] Here, Under PHP you can see Wordpress option over there. Just tick on the Checkbox in front of Wordpress.

[5] Come down and click on Update Settings.

[6] Now, you can see the Wordpress option in your Softaculous.
#9
How To's / How to Reset solusvm vpsadmin password ?
August 07, 2015, 06:13:40 PM
SolusVM use an Administrator user login to manage the VPSs, Clients and other options.

If you forget or lost your Admin password you can reset the Admin password using below script and arguments.

[1] Login to the Node of your Server

[2] Run below script on the node :

Quotephp /usr/local/solusvm/scripts/pass.php --type=admin --comm=change --username=

NOTE : For --username mention the admin username for SolusVM, the default Admin username is vpsadmin, However you can always have a custom admin name and you will need to mention the one you created during setup in this step.

You will get an output similar to this:

QuoteNew password: B3w0R63f7cSjHwD

Choose a strong Password like above and press enter and the given password will be set as the new password for the admin user.

Use the newly created password for SolusVM admin login and it should work fine now.
#10
How To's / How to Change Your FTP Port ?
July 29, 2015, 07:40:19 PM
If you want to change your FTP port then follow the steps :

Pure-FTP

1) Edit /etc/pure-ftpd.conf and look for the following line:

Before :
QuoteBind 21

After   :
QuoteBind 20
Note : 20 is the new port we used put the service on.

2) If necessary, add the new FTP port to your server's firewall.

3) Edit /etc/chkserv.d/ftpd and change the port, which is the first comma-separated entry to the right of '=' on the line in the file, to match the port you put the service on.


ProFTP

1) Edit /etc/proftpd.conf and change:
QuotePort 21

2) Then make sure to test to make sure FTP is working before notifying your users !
#11
Disabling Brute force protection within your cPanel/WHM configuration isn't complicated and only takes a few steps. To do this please follow the step-by-step direction outlined below for your convenience.

    [1] Login to your WHM (Web Host Manager)

    [2] Next locate the section entitled "Security Center"

    [3] Then, click on the "cPHulk Brute Force Protection" link.

    [4] Next, locate "cPHulk is currently Enabled" and click on "Disable" button.

    [5] Finally, click on "Flush DB" button to remove previous records.

After completing above mentioned steps, You can able to access cPanel accounts without any problems.
#12
How To's / How do I forcefully re-install cPanel ?
July 20, 2015, 08:25:42 PM
cPanel re-installation :

The cPanel re-installation procedure is quite similar to the cPanel installation process, but with one slight difference. Please follow the below step-by-step direction.

[1] Login to your existing cPanel server via SSH.

[2] Run the following command in SSH
Quote# /scripts/upcp --force

[3] Please wait until the process completes.
#13
Occasionally you will find that you need to open up a port in your firewall for some application or another. Depending on which firewall is installed on your server, there are several ways to go about this.

CSF (ConfigServer Security & Firewall)   :   CSF can be configured in Web Host Manager (WHM) as well as over ssh.

[1] Open up the following file:                           
Quote/etc/csf/csf.conf

[2] Add the port you mean to open to the needed line:               
Quote# Allow incoming TCP ports
      TCP_IN = "20,21,22,25,53,80,110,143,443,465,587,993,995,26"
      # Allow outgoing TCP ports
      TCP_OUT = "20,21,22,25,37,43,53,80,110,113,443,587,873"    

[3] CSF then needs to be restarted for the change to take effect:
Quotecsf  -r


APF (Advanced Policy Firewall)   :   APF can only be configured by accessing the server over ssh, as the root user. Once in your server, Follow the steps below.

[1] Open the following file in your favorite text editor:
Quote/etc/apf/conf.apf

[2] Search the following line:
Quote# Common inbound (ingress) TCP ports
      IG_TCP_CPORTS="20,21,22,25,53,80,110,143,443,465,993,995"

[3] After saving and closing out of your text editor, you will need to restart APF. This is as simple as running:
Quoteapf -r


WHM (Web Host Manager) :
Quote[1] Type configserver in the Find bar in the upper left hand corner.
[2] Click on ConfigServer Security&Firewall.
[3] On that page, click on the Firewall Configuration button:
[4] That page will allow you to edit the exact same file you would if you were accessing it over ssh:
[5] Like with the ssh instructions, add the necessary port to the list.
[6] Then click Change at the bottom of the page to save your changes.
[7] After that is run, you will need to restart csf. Thankfully, the very next screen you can see there is a button for that, Restart csf+lfd.


Closing ports    :   Closing ports in either firewall are as simple as removing the port from the list in the configuration file, and restarting the firewall.
#14
It is simple to enable SMTP (Simple Mail Transfer Protocol) on another port. To do this please follow the step-by-step direction below.

[1] Login to your WHM (Web Host Manager)

[2] Next Go to the "Service configuration" section

[3] Locate the row that says "Exim On Another Port" option.

[4] Please enable the following two check-boxes.
          
Quote
                Monitor = YES (Checked)
                Enabled =  YES (Checked)
               

[5] Once Done, Click on Save to apply your settings.

Now your cPanel SMTP should start working on PORT 26 rather than just on PORT 25 (Which is blocked by most of the ISP's)

Sometimes it is smart to use port 2525 as Exim alternative with hosting server cause it is really easy to remember.
#15
How To's / Why shell scripting ?
July 17, 2015, 07:49:03 PM
In my previous post's I have mentioned What is Shell script, Different types of Shell's and How to write Shell script in linux. In this post I would like to mention about the importance of Shell scripts.

Shell scripts can take input from a user or file and produces output to the screen.
   
Whenever you find yourself doing the same task over and over again you should use shell scripting, i.e. Repetitive task automation.  Shell scripting is useful for 
Quote
       [1]  Creating your own power tools/utilities.
       [2]  Automating command input or entry.
       [3]  Customizing administrative tasks.
       [4]  Creating simple applications.
       [5]  Since scripts are well tested, the chances of errors are reduced while configuring services or system administration tasks such as adding new users.

Advantages       
Quote
       [1]  Easy to use.
       [2]  Quick start, and interactive debugging.
       [3]  Time Saving.
       [4]  System Admin task automation.
Shell scripts can execute without any additional effort on nearly any modern UNIX / Linux / BSD / Mac OS X operating system as they are written an interpreted language.

Disadvantages       
Quote
       [1]  Compatibility problems between different platforms.
       [2]  Slow execution speed.
       [3]  A new process launched for almost every shell command executed.

Practical examples where shell scripting actively used       
Quote
       [1]  Monitoring your Linux system.
       [2]  Data backup and creating snapshots.
       [3]  Creating email based alert system.
       [4]  Find out what processes are eating up your system resources.
       [5]  Find out available and free memory.
       [6]  Find out all logged in users and what they are doing.
       [7]  Find out if all necessary network services are running or not. For example if web server failed then send an alert to system administrator via a pager or an email.
       [8]  Find out all failed login attempt, if login attempt are continue repeatedly from same network IP automatically block all those IPs accessing your network/service via firewall.
       [9]  User administration as per your own security policies.
     [10]  Find out information about local or remote servers.
     [11]  Configure server such as BIND (DNS server) to add zone entries.