Perl Basic

Posted on

On an Unix system, Perl interpreter is located at /usr/local/bin/perl. Simple Program to print a text: Take the following program and put it into a file called #!/usr/local/bin/perl print ” Hello~World \ n ” ; Now, run it with your Perl interpreter. From a command line, go to the directory with this file and […]

Your IP address has been changed Issue

Posted on

Set the Cookie to loooooooooose: loosecookie(){ cp -fa /var/cpanel/cpanel.config{,.orig} sed -i ‘/cookieipvalidation/d’ /var/cpanel/cpanel.config echo “cookieipvalidation=loose” >> /var/cpanel/cpanel.config /scripts/restartsrv_cpsrvd } Or You can use Tweak Settings – Security from the WHM: Home >> Server Configuration >> Tweak Settings >> Cookie IP validation >> loose . This setting validates IP addresses for cookie-based logins. Enable this setting […]

Installing FFMPEG-PHP

Posted on

***CAUTION*** Before you proceed, you need to Install the FFMPEG. function getmephpffmpeg() { cd /usr/local/src wget tar jxvf ffmpeg-php-0.6.2.tbz2 cd ffmpeg-php-0.6.2 phpize ./configure make make install } Slap the above script onto the SSH while you are logged in as a ROOT user. Then type getmephpffmpeg Hit enter. If FFmpeg-Php is compiled successfully, an […]

How to kill all the user process

Posted on

One the user account in a cPanel accounts shows the error: “fork: Unable to fork new process” while they try to SSH. 1. Count all the active user sessions: ps aux | grep username 2. Kill all the process which that user initiated from the system memory. for i in `ps aux | grep username […]

Enable LDAP in cPanel

Posted on

First Log into the SSH using root log ins: Type: yum -y install openldap openldap-servers openldap-devel After this is done, then add the below 2 lines to the php.ini(The /usr/local/lib/ directory contains your server’s php.ini file.) extension=php_ldap.dll After this is done, build the apache. /scripts/easyapache –build

Function to install FFMPEG

Posted on 1 Comment

So, the installation of FFMPEG is a very time consuming process and you need to type hell lotta commands, so I made a function for it: function getffmpeg() { echo -e ” Installing the FFMPEG with the Codecs” cd /usr/local/src wget tar -zxvf ffmpeginstaller.7.4.tar.gz cd “ffmpeginstaller.7.4” ./install } So copy this code to the […]

Important Log Locations

Posted on

cPanel logs Access logs and user actions >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> /usr/local/cpanel/logs/access_log Account transfers and misc. logs >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> /var/cpanel/logs Auditing log (account creations, deletions, etc) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> /var/cpanel/accounting.log Backup logs >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> /usr/local/cpanel/logs/cpbackup Brute force protection (cphulkd) log >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> /usr/local/cpanel/logs/cphulkd.log Cpanel dnsadmin dns clustering daemon >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> /usr/local/cpanel/logs/dnsadmin_log Cpanel taskqueue processing daemon >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> /usr/local/cpanel/logs/queueprocd.log DBmapping >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> /usr/local/cpanel/logs/setupdbmap_log EasyApache build logs >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> […]

Moodle Blank Page

Posted on

Moodle throws blank page, however, we can’t find a way to show the detailed error from Apache error_log. After a couple of research, I found that Moodle uses its own customized PHP ini_set function to determine the PHP values. To show the detailed error which got from Moodle, basically we need to add the following rule to the […]

cPanel Version Identification

Posted on

To identify your cPanel version log in into your server as root user via ssh and run the following command: /usr/local/cpanel/cpanel-V To update the cPanel version, run the command below. /scripts/upcp