Hoaxblog.com
Pages:
Categories:
- Apache (6)
- backup (1)
- cache (2)
- Cpanel/WHM (11)
- ddos (1)
- exam (1)
- file hosting (2)
- General (11)
- Hosting (1)
- It’s me (2)
- linux (1)
- Linux Shell (14)
- Make Money Online (2)
- Mysql (2)
- mysqldump (1)
- php (1)
- Programming (3)
- proxy (1)
- Reseller (1)
- SEO (1)
- Servers (21)
- VPN (1)
- Windows (6)
- wordpress (1)
Blogroll
Meta:
Archive for the 'Apache' Category
02 27th, 2008
I think my estimation was really wrong :-S , No php cacher works perfectly with the suphp environment
Its really very much disappointing
Xcache would work, but for some photo galleries and some kind of sites which needs to system process will get locked with xcache. Eaccelerator doesn’t work at all with suphp. I m thinking to try apc, though i m really not interested in running apc as i havent heard good regarding its transition intelligence. But finally i have to say, if you are running your server with suphp or phpsuexec then you may need to forget using a php cacher with it. Even in some cases it will conflict with suhosin too lol!
02 27th, 2008
Finally i made this decision. Its really hard to block a full country from accessing the server, though i was forced to block the traffic from some region located in Iran and China. Our main Proxy server was being abused at high level from these countries and most of my proxy customers were dis-impressed with the performance for last few days. This is the first time i saw my customers informing regarding the degrade in performance, so i was forced to take this hard decision. Although, i do not use cisco hardware firewall to block these traffic or a software firewall. I found the easiet and efficient way to do this is using the maxmind tool to create an artificial intelligence. It shows a page saying an error. I really do not like the stuff to directly drop the full request of a n user. So firewall wasn’t a perfect way to do so. Now my soft works like a charm ![]()
02 13th, 2008
In recent times, i bought a windows vps to hold my remote desktop facility and running a file hosting site to earn some bucks from warez
As i wasn’t familiar with windows server, it looks like total crap to me. Most probably in the world, the best addons for desktop have been created for windows and when it concerns regarding server, then its definitely LINUX. Although, as there are file types factor in windows, you cant create a file with . in front as windows will always say you to put a file name. To make windows understand to include the . with the filname you just need to put double quote in both end while saving the file. Putting the following while saving the file should create a .htaccess file in windows:
".htaccess"To tell you the truth, windows really sucks when web server concerns ![]()
02 8th, 2008
I have to say, Xcache works very perfect for bulletin boards. I was using eaccelerator for around 4 weeks now, and the performance from eaccelerator was quite good. But as eaccelerator doesn’t work with suphp, i converted my php caching system to Xcache. Now i can see, Xcache works the best. It reducing a forum load with around 150 users online to 3.5% cpu
While it was taking over 10% cpu a few hours ago. I have to say, xcache works perfect for forums. Though, i haven’t got enough profit for wordpress blogs by using xcache. I have seen a plugin for wordpress where it says, xcache cant prove the highest on general wordpress installations. Some caching objects needs to pass and wordpress needs to be made on a way so that it uses the xcache on its best. I m still testing this module and expecting a great result ![]()
02 8th, 2008
Today, i was forced to conver the php mode to suphp from dso. Generally php runs as the apache processes. While apache runs as nobody, thats why all the php files are run as nobody too. Yesterday night, i got a huge ddos attack on the server running from the user nobody. So i wasn’t able to track who is doing the stuffs and whats wrong with it actually. Later on i found that, one of the video site hosted is being used to spam the server. One of my primary concern regarding suphp was, it doesn’t allow users chmod 777 their files. I have seen, there are some scripts which needs 777 permission to run perfectly. I have one thing in mind that convering those files to nobody user, so that a 755 chmod does the same like 777. Though, i m still working on the issue to fix it up. But, i have to say, for a shared hosting server, suphp is quite good, just need to some tweak to fix its problems ![]()
04 14th, 2007
Today my brother told me that “Is there any way to block a referer from the whole server?” I knew that there are two ways to do. But the most easiest way to do that is using mod_security. But the fun here is, why should someone will block a referer? Its because sometimes referer is gold and sometimes spam. There were some referer sites who were doing spam on his web proxy sites by clicking on the ads. Unfortunately google also warned them as they were using Adsense. You can easily find some footprints of these spammers by checking your referer stats.
Here is a sample code with which you can block a referer who is looking like a spammer or autosurf programme to you. Suppose you want to block a referer named casino.com, then just enter the following line in your mod_sec configuration file:
1 | SecFilterSelective HTTP_REFERER "casino.com" |
If you want to block any referers containing casino word then you need to use the following rule:
1 | SecFilterSelective HTTP_REFERER "casino" |
Again if you want to block multiple words, then you may declare multiple rules with different SecFilterSelective Rule, or may define all in one like this: Suppose you are blocking any keyword with casino or poket:
1 | SecFilterSelective HTTP_REFERER "(casino|poker)" |
Here you need to note, this way is only usable if you are having the root access. Cause mod_sec configuration file access aren’ given to the users
So Have fun with blocking all spammy referers and autosurfers.