A Beginners Guide for Server Administration Role of CPanel in Server Administration What is Cpanel & WHM : CPanel & WHM(WebHost Manager)is a ascendancy console for the Linux operating system, acceptance hosts, resellers, and end-users to assignment with their hosting accounts through a web-based browser. WHR TALK FAQ on Cpanel Administration Customer :How to install Softaculous in Cpanel Server ? WHR: You can install Softaculous in cpanel from WHM and also from command line without having to visit cPanel/WHM. Before starting the Softaculous installation please make sure that the ‘ionCube Loader'is enabled on the server. (Softaculous is the arch Auto Installer accepting 303 abundant scripts, 1115 PHP Classes and we are still abacus more. Softaculous is broadly acclimated in the Web Hosting industry and it has helped millions of users install applications by the bang of a button. Softaculous Auto Installer calmly integrates into arch Control Panels like cPanel, Plesk, DirectAdmin, H-Sphere.) To install from WHM 1. Log into server via ssh. 2. cd /usr/local/cpanel/whostmgr/docroot/cgi 3. wget -N http://www.softaculous.com/ins/addon_softaculous.php 4. chmod 755 addon_softaculous.php 5. Then go to WHM –> Plugins–>softaculous– Instant Installs Install from command line ====================== 1.Log into server via ssh. 2.cd /usr/local/cpanel/whostmgr/docroot/cgi 3. wget -N http://www.softaculous.com/ins/addon_softaculous.php 4. chmod 755 addon_softaculous.php 5. /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/addon_softaculous.php For Uninstalling Softaculous --------------------------------------- Run these commands: # /usr/local/cpanel/bin/unregister_cpanelplugin /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/softaculous.cpanelplugin # /usr/local/cpanel/bin/rebuild_sprites Delete these folders/files: # rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/softaculous # rm -rf /var/softaculous # rm -rf /etc/cron.d/softaculous ---------------------------------------------------------------------------------------------------------------------- 2)Unable to change quota values from WHM ? Today I came across an issue where a customer was unable to change quota values for a client from WHM. Every time when the value is changed from WHM it will revert back to the old value. simply, the quota update was not working. Then I tried the fixquotas script (running fixquotas script as root user will fix common quota problems) which didn't work and I got output as follows, # /scripts/fixquotas Installing Default Quota Databases……Done Linux Quota Support Quotas are now on Resetting quota for user1 to 500 M edquota: Quota write failed (id 502): Invalid argument Resetting quota for user2 to 500 M edquota: Quota write failed (id 528): Invalid argument Resetting quota for user3 to 100 M edquota: Quota write failed (id 504): Invalid argument ........ Running quotacheck was the fix for the issue : # quotacheck -vguma (quotacheck examines each filesystem, builds a table of current disk usage, and compares this table against that recorded in the disk quota file for the filesystem (this step is ommitted if option -c is specified). Options : -v quotacheck reports its operation as it progresses. Normally it operates silently. If the option is specified twice, also the current directory is printed (note that printing can slow down the scan measurably). -u Only user quotas listed in /etc/mtab or on the filesystems specified are to be checked. This is the default action. -g Only group quotas listed in /etc/mtab or on the filesystems specified are to be checked. -m Do not try to remount filesystem read-only. -a Check all mounted non-NFS filesystems in /etc/mtab It took some time to complete. Once it got completed, I re-run the fixquotas script and worked fine. Finally, the quota values got updated. * Click here to know more Server Administration tips by WHR
Related Articles -
cpanel, softaculous, server administration, whm,
|