More Cpanel Notes
From Linux Tools
How to install cpanel and plesk
http://www.eukhost.com/forums/f16/install-plesk-cpanel-11-a-8254/
How to install FFmpeg + FFmpeg-PHP + Mplayer + Mencoder + flv2tool + LAME MP3 Encoder
http://www.eukhost.com/forums/f15/how-install-ffmpeg-ffmpeg-php-mplayer-mencoder-flv2tool-lame-mp3-encoder-4893/
Entry in .htaccess file so as to take php.ini file to all subdirectories
suPHP_ConfigPath /home/username/public_html
How to enable InnoDB
Edit /etc/my.cnf and comment the line skip-innodb. Restrat Mysql. If that fails please perform the following commands
cd /var/lib/mysql mv ibdata1 ibdata1.old mv ib_logfile0 ib_logfile0.old
Then comment out the skip-innodb line in the /etc/my.cnf file, and start MySQL.
To get a list of MySQL tables that show specific engines, here is a command that should help:
mysql --socket=/var/tmp/mysql.sock -e 'show databases' | sed -n -e'2,$p' | xargs -I database mysql database --socket=/var/tmp/mysql.sock -e 'show table status' | sed -n -e '2,$p' | cut -f 1,2 | egrep -v '^Name[ [:blank:] ]*Engine$'
Please note that there will not be any space after Name[ [: and before ]*Engine$'
That will simply print out all databases in a format like this: table MyISAM table1 InnoDB
Cpanel - Enable ASP.Net Module
Mod_mono is ASP.Net, and Apache::ASP is just straight ASP.
For installing 'ASP.Net Module (mod_mono)' on a Cpanel server you will need to take the following steps:
1. Login to WHM . 2. Go to 'Main >> cPanel >> Addon Modules'.. 3. Select the box beside 'modmono' and 'Install and Keep Updated'. 4. To select 'Save'..
You might also have to add the following lines to /usr/local/apache/conf/httpd.conf to load the appropriate mod_mono modules:
LoadModule mono_module libexec/mod_mono.so AddModule mod_mono.c
Once the above build has completed then the server should have 'ASP.Net Module (mod_mono)' enabled.
How to setup the limit for sending mails/hour from a domain
http://www.eukhost.com/forums/f15/how-set-maximum-emails-per-hour-particular-domain-6226/ http://forums.cpanel.net/f5/setting-account-email-limits-per-domain-account-116913.html http://www.webhostingtalk.com/showthread.php?t=719881
add the following entry in /var/cpanel/maxemails. Don't forget to run /scripts/build_maxemails_config after this
somedomain.com=1000
How to prevent core file creation
http://www.eukhost.com/forums/f15/how-stop-generating-core-coredump-files-6322/
How to Prevent a webSite from Being Hacked?
http://www.eukhost.com/forums/f15/how-prevent-website-being-hacked-6024/
Brute Force Attack - This account is currently locked out because a brute force attempt was detected. Please wait 10 minutes and try again
This is due to brute force protection which is enabled in your server. You can disable this following those steps: WHM >> Security >> Security Center >> cPHulk Brute Force Protection.
if you can still ssh to the server login as root and type the following at the prompt
Code:
mysql mysql> use cphulkd; mysql>BACKUP TABLE `brutes` TO '/path/to/backup/directory'; mysql> SELECT * FROM `brutes` WHERE `IP`='xxx.xxx.xxx.xxx'; mysql> DELETE FROM `brutes` WHERE `IP`='xxx.xxx.xxx.xxx';
that should remove your IP from the table and you will see that in mysql reply. Finally Code:
Allow only a single IP to access a port
http://forum.configserver.com/showthread.php?t=1478
