Archive for the 'Server' category
Friday, August 27th, 2010
cPanel cPanel/WHM Initial Installation Errors: /var/log/cpanel*install* – These log files contain verbose logs of the
Posted in Server | No Comments »
Login to web server via SSH. For Apache 2.0.x, execute the following command:up2date -i httpd-devel
Posted in Web | No Comments »
Monday, August 2nd, 2010
Add this to Cron jobs: mkdir /home/GENERAL/$(date +”%m-%d-%y”)/; cp -r /var/FOLDER_TO_BACKUP/ /home/GENERAL/$(date +”%m-%d-%y”)/
Posted in Server | No Comments »
Monday, August 2nd, 2010
*/3 * * * * root /etc/init.d/dhcp3-server start
Posted in Server | No Comments »
Saturday, July 31st, 2010
ddns-update-style interim; # Required for dhcp 3.0+ / Red Hat 8.0+ ignore client-updates; subnet 192.168.1.0
Posted in Server | No Comments »
Saturday, July 31st, 2010
gksu /etc/network/interfaces auto eth0 iface eth0 inet static address 10.8.16.1 netmask 255.255.255.0 broadcast 10.8.16.0 network
Posted in Server | No Comments »
MySQL Order By Custom Order MySQL Order By Field ORDER BY FIELD(day, ‘Monday’, ‘Tuesday’, ‘Wednesday’,
Posted in MySQL | No Comments »
ini_set(‘display_errors’, 1); ini_set(‘log_errors’, 1); ini_set(‘error_log’, dirname(__FILE__) . ‘/error_log.txt’); –> optional error_reporting(E_ALL);
Posted in Web | No Comments »
UPDATE `wp_ij8ir4_posts` SET `post_content` = REPLACE(`post_content`,’phpMyAdmin=123123123123′,”)
Posted in MySQL | No Comments »
# prevent viewing of a specific file order allow,deny deny from all order deny,allow deny
Posted in Web | No Comments »