It is currently Thu May 02, 2024 8:03 am

News News of Server Side Actions

Site map of Server Side Actions » Forum : Server Side Actions

Here you can find tutorials and notes for server-side maintenance/configuration
Forum rules
All information is given AS IS

SimpleScripts autoinstaller (Fantastico analog)

SimpleScripts provides FREE and easy one-click management of over 70 of the web's top applications
SimpleScripts supports cPanel, Plesk, Interworx, DirectAdmin and ISPsystem right out of the box.

http://www.simplescripts.com/
Read more : SimpleScripts autoinstaller (Fantastico analog) | Views : 2527 | Replies : 0


BigDump php script

Staggered MySQL Dump Importer

Staggered import of large and very large MySQL Dumps (like phpMyAdmin 2.x Dumps) even through the web servers with hard runtime limit and those in safe mode. The script executes only a small part of the huge dump and restarts itself. The next session starts where the last was stopped.

Download BigDump script
Read more : BigDump php script | Views : 7521 | Replies : 1




SVN repositories with cPanel

SVN repository under cPanel user.

1. Make sure that dav module is installed on the server:
Code: Select all
# httpd -M | grep dav
 dav_module (static)
 dav_fs_module (static)
 dav_lock_module (static)
 dav_svn_module (shared)


In case the module didn't exist on the server use /scripts/easyapache to build it.

2. Install Subversion

Subversion 1.6 is not a part of CentOS 5.5 official repository, so install additional repository (RPMforge).

cd /usr/local/src/
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -K rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
rpm -i ...
Read more : SVN repositories with cPanel | Views : 3010 | Replies : 0


Remove old account backups on a cPanel server

#!/usr/bin/perl
#################################################
# version 1.1
#
# Clean old cpanel backups
#
# Author: Igor Russian
##################################################


use Date::Parse;

my @all_dirs = ('/backup/cpbackup/daily', '/backup/cpbackup/weekly');

my $query = "ls -l |";
my $expire_day_period = 30; # Number of days
my $expire_period = $expire_day_period * 24 * 60 * 60 ; # expire_day_period in seconds
my $i=1;
my @rm_dirs = ();
my @dir_en = ();
my $type;
my $name;
my $group;
my $mtime;
my $diff_time;

#If backup ...
Read more : Remove old account backups on a cPanel server | Views : 8657 | Replies : 2


Softaculous auto installer (Fantastico analog)

Softaculous is an auto installer for cPanel and DirectAdmin.
Unlike other auto installers Softaculous is much faster, well designed and it installs all scripts in just ONE STEP.
http://www.softaculous.com/
The Free License has 60 scripts while the Premium one has 250+ scripts:
http://www.softaculous.com/pricing
Read more : Softaculous auto installer (Fantastico analog) | Views : 6646 | Replies : 2


cPanel/WHM and Ruby

Easiest way to install Passenger:
1. Open a terminal, and type:
Code: Select all
gem install passenger

2. Type:
Code: Select all
passenger-install-apache2-module

Or, if you want to install the Nginx version instead:
Code: Select all
passenger-install-nginx-module

And follow the instructions.
Log into the server via SSH
Code: Select all
unset RUBYOPT
/scripts/installruby
/usr/local/cpanel/bin/ror_setup
passenger-install-apache2-module

* The passenger-install-apache2-module command is interactive. Accept its notices by pressing the Enter button. At the end of the passenger-install-apache2-module, you'll need to update Apache configuration files.
* Create /usr/local/apache/conf/ruby.conf and add ...
Read more : cPanel/WHM and Ruby | Views : 2393 | Replies : 0


Regenerate maildirsize for account(s) on cPanel server

This utility regenerates maildirsize files used by the maildir+ capable clients to assist in mailbox size calculations.
# /scripts/generate_maildirsize
Must specify "--confirm" to begin. Please read and understand the usage.

Usage: generate_maildirsize <modifier> <user>

This utility regenerates maildirsize files used by the maildir+
capable clients to assist in mailbox size calculations.

Modifier Flags:
--confirm - This flag indicates that we really want to use this
utility

--allaccounts - This utility was originally intended to
assist ...
Read more : Regenerate maildirsize for account(s) on cPanel server | Views : 7991 | Replies : 0


MySql log parser - mysqlsla

mysqlsla parses, filters, analyzes and sorts MySQL slow, general, binary and microslow patched logs in order to create a customizable report of the queries and their meta-property values.

http://hackmysql.com/mysqlsla

In brief, mysqlsla is a liaison allowing other scripts easy access to queries from a MySQL log. For a quick introduction to what mysqlsla is capable of doing, take a glance at the guide.
Code: Select all
wget http://hackmysql.com/scripts/mysqlsla
Read more : MySql log parser - mysqlsla | Views : 2550 | Replies : 0


Install phpSHIELD/SourceGuardian PHP encoders

Taken from the official phpSHIELD site:
phpSHIELD is a premier php Encoder product, originally developed in 2003. In 2006 phpSHIELD joined forces with Inovica Ltd, developer of the SourceGuardian PHP Encoder and we integrated our system with theirs.


General installation guide can be found on the official SourceGuardian site:

http://www.sourceguardian.com/loaders.html

Script which was written by the developers to check/install:
Code: Select all
wget "http://www.sourceguardian.com/ixeds/sg4-howto-install.zip"


Example installation:

Code: Select all
cd /root/
wget "http://www.sourceguardian.com/ixeds/ixed4.all.tar.gz

Find PHP extension_dir in your current environment: ...
Read more : Install phpSHIELD/SourceGuardian PHP encoders | Views : 4839 | Replies : 0


 

Login


Statistics

Total posts 505 • Total topics 442 • Total members 22