Just thought i would be nice and tell u about a little secret not so many people realize and about 85% of all webhosting companies fail to secure
in ur whm usually /home/ur-username/public_html/site/whmcs/config.php is viewable to read
now lets say the servers php functions allows u to view via
Code:
cat /home/ur-username/public_html/site/whmcs/config.php
a person can easily have a shell up and gain mysql access and add a new username to ur whmcs admin and then can easily go to ur admin page and login
now how to secure is this
install whmcs (if you already installed it disregard that)
chmod configuration.php 700 as well as any other configuration files wich may leave your hosting vulnerable to said problem
the other way of doing it is with disable_functions and suphp and cgi safemode ill post screenshots of how to do it with cpanel and whmcs this is mainly for people with there own vps's/dedicated servers
okay login to whm and search for easy apache
Click easy apache
After that click start customizing based on profile click apache 2.2 click next select php5 click next click php 5.2.9/php 5.2.8 click next
now were at the important part
Check the following
Mod SuPHP
IonCube Loader for PHP
EAccelerator for PHP
Mod Bandwidth
Mod Security
Mod Perl
Suhosin for PHP
Zend Optimizer for PHP
then click Exhaustive options
ignore all the other shit its fine ctrl + f in firefox look for
Safe PHP CGI
check it this makes it so you cant inject a new php.ini and over ride current php security configuration
Click save and build, it may take some time depending on the specifications of your server/vps ram/cpu after its all done download puTTy if you dont already have it and ssh to your server (if you need help doing this pm me..) and find your php configuration file (cpanel default: /usr/local/lib/php.ini) type nano /usr/local/lib/php.ini press ctrl + w type in disable_functions
it will jump to a line thats probably like this disable_functions = on the end of that were gona change it to
disable_functions= "symlink,shell_exec,exec,proc_close,proc_open,pope n,system,dl,passthru,escap
eshellarg,escapeshellcmd"
this is VERY VERY VERY basic just to keep people out of your box theres PLENTY of other things you should do but this will work fine
Thanks to pimpnj for stating what to do