<?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/tags/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>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>
		<item>
		<title>Open and Close Port in Linux</title>
		<link>http://www.webmastersucks.com/open-and-close-port-in-linux/</link>
		<comments>http://www.webmastersucks.com/open-and-close-port-in-linux/#comments</comments>
		<pubDate>Thu, 28 May 2009 20:25:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[ports]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=6</guid>
		<description><![CDATA[
			
				
			
		
For more secure server, we have to close some ports to users. If need access to this ports, we can give permission to our IP address. We need static IP address for this operation. Please dont forget, &#8220;iptables&#8221; can be block all IP address but when you restart the server it will be clean all [...]]]></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%2Fopen-and-close-port-in-linux%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fopen-and-close-port-in-linux%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>For more secure server, we have to close some ports to users. If need access to this ports, we can give permission to our IP address. We need static IP address for this operation. Please dont forget, &#8220;iptables&#8221; can be block all IP address but when you restart the server it will be clean all of this commands. (I am using Fedora)</p>
<p><strong>Closing FTP port except xxx.xxx.xxx.xxx</strong></p>
<p>iptables -t filter -I INPUT 1 -p tcp -s ! xxx.xxx.xxx.xxx &#8211;dport 21 -j REJECT &#8211;reject-with icmp-host-prohibited</p>
<p><strong>Closing SSH port except xxx.xxx.xxx.xxx</strong></p>
<p>iptables -t filter -I INPUT 1 -p tcp -s ! xxx.xxx.xxx.xxx &#8211;dport ssh -j REJECT &#8211;reject-with icmp-host-prohibited</p>
<p><strong>Closing MySQL port except localhost</strong></p>
<p>iptables -A INPUT -i eth0 -s 192.168.1.0/24 -p tcp &#8211;destination-port 3306 -j ACCEPT</p>
<p><strong>Listing iptables list</strong></p>
<p>iptables -L</p>
<p><strong>Removing iptables data (Removing first one in list, type 2 for second one)</strong></p>
<p>iptables -D INPUT 1</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/open-and-close-port-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
