<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>VinaShares</title>
	
	<link>http://vinashares.com</link>
	<description />
	<lastBuildDate>Fri, 24 Feb 2012 18:49:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Vinasharescom" /><feedburner:info uri="vinasharescom" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><media:category scheme="http://www.itunes.com/dtds/podcast-1.0.dtd">Technology/Tech News</media:category><itunes:explicit>yes</itunes:explicit><itunes:subtitle></itunes:subtitle><itunes:category text="Technology"><itunes:category text="Tech News" /></itunes:category><item>
		<title>How to Back Up and Restore a MySQL Database from the command line</title>
		<link>http://feedproxy.google.com/~r/Vinasharescom/~3/6hpvlX4GbaA/how-to-back-up-and-restore-a-mysql-database-from-the-command-line.html</link>
		<comments>http://vinashares.com/how-to-back-up-and-restore-a-mysql-database-from-the-command-line.html#comments</comments>
		<pubDate>Fri, 24 Feb 2012 18:15:31 +0000</pubDate>
		<dc:creator>mcsaormoney</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup and restore database commandline]]></category>

		<guid isPermaLink="false">http://vinashares.com/?p=765</guid>
		<description><![CDATA[Back up From the Command Line (using mysqldump) If you have shell or telnet access to your web server, you can backup your MySQL data by using the mysqldump command....]]></description>
			<content:encoded><![CDATA[<p>Back up From the Command Line (using mysqldump)</p>
<p>If you have shell or telnet access to your web server, you can backup your MySQL data by using the mysqldump command. This command connects to the MySQL server and creates an SQL dump file. The dump file contains the SQL statements necessary to re-create the database. Here is the proper syntax:</p>
<p>$ mysqldump &#8211;opt -u [uname] -p[pass] [dbname] &gt; [backupfile.sql]</p>
<p>* [uname] Your database username<br />
* [pass] The password for your database (note there is no space between -p and the password)<br />
* [dbname] The name of your database<br />
* [backupfile.sql] The filename for your database backup<br />
* [--opt] The mysqldump option</p>
<p>For example, to backup a database named &#8216;Tutorials&#8217; with the username &#8216;root&#8217; and with no password to a file tut_backup.sql, you should accomplish this command:</p>
<p>$ mysqldump -u root -p Tutorials &gt; tut_backup.sql</p>
<p>This command will backup the &#8216;Tutorials&#8217; database into a file called tut_backup.sql which will contain all the SQL statements needed to re-create the database.</p>
<p>With mysqldump command you can specify certain tables of your database you want to backup. For example, to back up only php_tutorials and asp_tutorials tables from the &#8216;Tutorials&#8217; database accomplish the command below. Each table name has to be separated by space.</p>
<p>$ mysqldump -u root -p Tutorials php_tutorials asp_tutorials &gt; tut_backup.sql</p>
<p>Sometimes it is necessary to back up more that one database at once. In this case you can use the &#8211;database option followed by the list of databases you would like to backup. Each database name has to be separated by space.</p>
<p>$ mysqldump -u root -p &#8211;databases Tutorials Articles Comments &gt; content_backup.sql</p>
<p>If you want to back up all the databases in the server at one time you should use the &#8211;all-databases option. It tells MySQL to dump all the databases it has in storage.</p>
<p>$ mysqldump -u root -p &#8211;all-databases &gt; alldb_backup.sql</p>
<p>The mysqldump command has also some other useful options:</p>
<p>&#8211;add-drop-table: Tells MySQL to add a DROP TABLE statement before each CREATE TABLE in the dump.</p>
<p>&#8211;no-data: Dumps only the database structure, not the contents.</p>
<p>&#8211;add-locks: Adds the LOCK TABLES and UNLOCK TABLES statements you can see in the dump file.</p>
<p>The mysqldump command has advantages and disadvantages. The advantages of using mysqldump are that it is simple to use and it takes care of table locking issues for you. The disadvantage is that the command locks tables. If the size of your tables is very big mysqldump can lock out users for a long period of time.</p>
<p>Back up your MySQL Database with Compress</p>
<p>If your mysql database is very big, you might want to compress the output of mysqldump. Just use the mysql backup command below and pipe the output to gzip, then you will get the output as gzip file.</p>
<p>$ mysqldump -u [uname] -p[pass] [dbname] | gzip -9 &gt; [backupfile.sql.gz]</p>
<p>If you want to extract the .gz file, use the command below:</p>
<p>$ gunzip [backupfile.sql.gz]</p>
<p>Restoring your MySQL Database</p>
<p>Above we backup the Tutorials database into tut_backup.sql file. To re-create the Tutorials database you should follow two steps:</p>
<p>* Create an appropriately named database on the target machine<br />
* Load the file using the mysql command:</p>
<p>$ mysql -u [uname] -p[pass] [db_to_restore] &lt; [backupfile.sql]</p>
<p>Have a look how you can restore your tut_backup.sql file to the Tutorials database.</p>
<p>$ mysql -u root -p Tutorials &lt; tut_backup.sql</p>
<p>To restore compressed backup files you can do the following:</p>
<p>gunzip &lt; [backupfile.sql.gz] | mysql -u [uname] -p[pass] [dbname]</p>
<p>If you need to restore a database that already exists, you&#8217;ll need to use mysqlimport command. The syntax for mysqlimport is as follows:<br />
mysqlimport -u [uname] -p[pass] [dbname] [backupfile.sql]</p>
<p>&nbsp;</p>
<p>Theo: clientcentral.info</p>

<p><a href="http://feedads.g.doubleclick.net/~a/JjQHJdfkm1wf5pt2e9EVUEQGc5o/0/da"><img src="http://feedads.g.doubleclick.net/~a/JjQHJdfkm1wf5pt2e9EVUEQGc5o/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/JjQHJdfkm1wf5pt2e9EVUEQGc5o/1/da"><img src="http://feedads.g.doubleclick.net/~a/JjQHJdfkm1wf5pt2e9EVUEQGc5o/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Vinasharescom/~4/6hpvlX4GbaA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vinashares.com/how-to-back-up-and-restore-a-mysql-database-from-the-command-line.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://vinashares.com/how-to-back-up-and-restore-a-mysql-database-from-the-command-line.html</feedburner:origLink></item>
		<item>
		<title>Install mod_security in Kloxo (Lxadmin) on Centos</title>
		<link>http://feedproxy.google.com/~r/Vinasharescom/~3/WxqouTUWDhU/install-mod_security-in-kloxo-lxadmin-on-centos.html</link>
		<comments>http://vinashares.com/install-mod_security-in-kloxo-lxadmin-on-centos.html#comments</comments>
		<pubDate>Fri, 24 Feb 2012 18:14:03 +0000</pubDate>
		<dc:creator>mcsaormoney</dc:creator>
				<category><![CDATA[Hướng dẫn sử dụng Hosting Kloxo]]></category>
		<category><![CDATA[Install mod_security in Kloxo]]></category>

		<guid isPermaLink="false">http://vinashares.com/?p=763</guid>
		<description><![CDATA[First of all make sure you switched the default webserver to Apache2. This can be done in the Kloxo admin console under the Server &#62; Switch server tab. Retrieve the...]]></description>
			<content:encoded><![CDATA[<p>First of all make sure you switched the default webserver to Apache2. This can be done in the Kloxo admin console under the Server &gt; Switch server tab.</p>
<p>Retrieve the mod_security binary for your platform. You can find detailed information <a href="http://www.modsecurity.org/download/index.html" target="_blank">here</a> , but below are the key steps assuming you&#8217;re running a Centos 5.3 VPS.</p>
<p>1. Validate the packages by installing the GPG key:</p>
<blockquote><p>rpm &#8211;import <a href="http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka" target="_blank">http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka</a></p></blockquote>
<p>2. Add the following to your &#8216;/etc/sysconfig/rhn/sources&#8217; file:</p>
<p>yum utterramblings <a href="http://www.jasonlitka.com/media/EL5/%24ARCH" target="_blank">http://www.jasonlitka.com/media/EL5/$ARCH</a></p>
<p>3. Type:</p>
<p>nano -w /etc/yum.repos.d/utterramblings.repo</p>
<p>&#8230; and then paste the following into the editor:</p>
<p>[utterramblings]<br />
name=Jason&#8217;s Utter Ramblings Repo<br />
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/<br />
enabled=1<br />
gpgcheck=1<br />
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka</p>
<p>4. Update your yum repository by typing yum update and accepting the update. This might take a bit of time depending on when you did your last update.</p>
<p>5. Install modsecurity by typing: yum install mod_security</p>
<p>6. Restart the Apache webserver: service httpd restart.</p>
<p>That&#8217;s it!</p>
<p>Note that a default ruleset is included and activated during the installation. If you want to edit the configuration, the following can be useful:</p>
<p>/etc/httpd/conf.d: all files in this directory are loaded during Apache startup<br />
/etc/httpd/conf.d/mod_security.conf: default configuration loading the mod_security module and the default rule set<br />
/etc/httpd/modsecurity.d: default rule set</p>
<p>&nbsp;</p>
<p>Theo: clientcentral.info</p>

<p><a href="http://feedads.g.doubleclick.net/~a/c9GPNlpoQmJQRTmqQAqqk0dyAiU/0/da"><img src="http://feedads.g.doubleclick.net/~a/c9GPNlpoQmJQRTmqQAqqk0dyAiU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/c9GPNlpoQmJQRTmqQAqqk0dyAiU/1/da"><img src="http://feedads.g.doubleclick.net/~a/c9GPNlpoQmJQRTmqQAqqk0dyAiU/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Vinasharescom/~4/WxqouTUWDhU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vinashares.com/install-mod_security-in-kloxo-lxadmin-on-centos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://vinashares.com/install-mod_security-in-kloxo-lxadmin-on-centos.html</feedburner:origLink></item>
		<item>
		<title>Setting up SSH</title>
		<link>http://feedproxy.google.com/~r/Vinasharescom/~3/aZnNFVwCjjc/setting-up-ssh.html</link>
		<comments>http://vinashares.com/setting-up-ssh.html#comments</comments>
		<pubDate>Fri, 24 Feb 2012 18:12:34 +0000</pubDate>
		<dc:creator>mcsaormoney</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Setting up SSH]]></category>

		<guid isPermaLink="false">http://vinashares.com/?p=761</guid>
		<description><![CDATA[An SSH server can be set up in various ways, but in this document we’ll describe how it can be configured. 1. Set up the .ssh directories The default key...]]></description>
			<content:encoded><![CDATA[<p>An SSH server can be set up in various ways, but in this document we’ll describe how it can be configured.</p>
<p>1. Set up the .ssh directories<br />
The default key directory is &#8220;~/.ssh&#8221;. Create this directory in both the server and in your current home directory on the client machine and chmod it so that only the users have access to it.</p>
<p># mkdir ~/.ssh<br />
# chmod 0700 ~/.ssh</p>
<p>2. Create the keypair on the client machine:</p>
<p># ssh-keygen</p>
<p>3 Copy the public key to the server:<br />
# scp -P 8888 ~/.ssh/id_rsa.pub root@1.2.3.4:~/.ssh/authorized_keys</p>
<p>(Assuming your IP is 1.2.3.4 and you changed the default port from 22 to 8888. You can change the ssh port on the server by editing the file /etc/ssh/sshd_config and changing the parameter Port.)</p>
<p>4. Make sure that you chmod both keys so that only the respective users have access to them. Issue the following command on both the server and the client machine:</p>
<p># chmod 0600 ~/.ssh/*</p>
<p>5. If you are using Mac OSX, edit the file ~/.ssh/config in and add the following line: IdentityFile ~/.ssh/id_rsa</p>
<p>6. Disallow login with passwords by editing the file /etc/ssh/sshd_config and setting PasswordAuthentication to no. Restart the SSH service:<br />
&gt; service sshd restart</p>
<p>7. That&#8217;s it! You can try it by using the following command from the client:<br />
&gt; ssh root@1.2.3.4 -p 8888</p>
<p>&nbsp;</p>
<p>theo clientcentral.info</p>

<p><a href="http://feedads.g.doubleclick.net/~a/O8ZS1d_Q_2NMOp1PSzEdL8GmaPI/0/da"><img src="http://feedads.g.doubleclick.net/~a/O8ZS1d_Q_2NMOp1PSzEdL8GmaPI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/O8ZS1d_Q_2NMOp1PSzEdL8GmaPI/1/da"><img src="http://feedads.g.doubleclick.net/~a/O8ZS1d_Q_2NMOp1PSzEdL8GmaPI/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Vinasharescom/~4/aZnNFVwCjjc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vinashares.com/setting-up-ssh.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://vinashares.com/setting-up-ssh.html</feedburner:origLink></item>
		<item>
		<title>Dump sql lớn bằng commandline [centos]</title>
		<link>http://feedproxy.google.com/~r/Vinasharescom/~3/IZiuch9b_jw/dump-sql-l%e1%bb%9bn-b%e1%ba%b1ng-commandline-centos.html</link>
		<comments>http://vinashares.com/dump-sql-l%e1%bb%9bn-b%e1%ba%b1ng-commandline-centos.html#comments</comments>
		<pubDate>Sat, 04 Feb 2012 15:28:54 +0000</pubDate>
		<dc:creator>mcsaormoney</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Dump sql lớn bằng commandline]]></category>

		<guid isPermaLink="false">http://vinashares.com/?p=753</guid>
		<description><![CDATA[Với các diễn đàn lớn thuê VPS họ cần restore 1 database có dung lượng lớn cỡ khoảng vài GB họ không thể dùng phpmyadmin để restore được hoặc cũng...]]></description>
			<content:encoded><![CDATA[<p>Với các diễn đàn lớn thuê VPS họ cần restore 1 database có dung lượng lớn cỡ khoảng vài GB họ không thể dùng phpmyadmin để restore được hoặc cũng không cần phải sử dụng mydumper để restore vì họ quản lý VPS cơ mà ^^.</p>
<p>Đầu tiên upload file backup data lên có dạng Sql.gz ví dụ vinashares.sql.gz chẳng hạn lên thư mục web của mình.</p>
<p>Sau đó ta SSH vào máy chủ và sử dụng các lệnh sau:</p>
<blockquote><p>cd /&lt;duong dan thu muc chua data&gt;</p></blockquote>
<p>sử dụng lệnh gunzip để giải nén file backup ra được file sql (hoặc nếu thích thì up file sql đỡ phải dụng lệnh này =)) )</p>
<blockquote><p>gunzip vinashares.sql.gz</p></blockquote>
<p>Ok như vậy là ta đã có file sql giải nén ra. Đừng dùng lệnh cd chạy đi đâu nhé cứ đứng yên ở đó và sài lệnh sau:</p>
<blockquote>
<p align="justify">mysql -h localhost -u [ten user_database] -p[password_user_database] [tên_database] &lt; tên_data.sql</p>
</blockquote>
<p align="justify">Sau đó thì ngồi nhâm nhi cốc cafe ^^.</p>
<p align="justify">Chúc các bạn thành công.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/zehnZV00RFI_8jbgI-mAXo3cGMY/0/da"><img src="http://feedads.g.doubleclick.net/~a/zehnZV00RFI_8jbgI-mAXo3cGMY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zehnZV00RFI_8jbgI-mAXo3cGMY/1/da"><img src="http://feedads.g.doubleclick.net/~a/zehnZV00RFI_8jbgI-mAXo3cGMY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Vinasharescom/~4/IZiuch9b_jw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vinashares.com/dump-sql-l%e1%bb%9bn-b%e1%ba%b1ng-commandline-centos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://vinashares.com/dump-sql-l%e1%bb%9bn-b%e1%ba%b1ng-commandline-centos.html</feedburner:origLink></item>
		<item>
		<title>Apache Address already in use: make_sock: could not bind to port 80 or 443 error and solution</title>
		<link>http://feedproxy.google.com/~r/Vinasharescom/~3/vZ5VI8bPSZY/apache-address-already-in-use-make_sock-could-not-bind-to-port-80-or-443-error-and-solution.html</link>
		<comments>http://vinashares.com/apache-address-already-in-use-make_sock-could-not-bind-to-port-80-or-443-error-and-solution.html#comments</comments>
		<pubDate>Sat, 04 Feb 2012 14:49:52 +0000</pubDate>
		<dc:creator>mcsaormoney</dc:creator>
				<category><![CDATA[Hướng dẫn sử dụng Hosting Kloxo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache Address already in use: make_sock: could not bind to port 80 error and solution]]></category>

		<guid isPermaLink="false">http://vinashares.com/?p=750</guid>
		<description><![CDATA[1 Ngày đẹp zoi chỉnh lại file config php.ini rồi khởi động lại apache chẳng hiểu sao lỗi gặp lỗi: Apache Address already in use: make_sock: could not bind to...]]></description>
			<content:encoded><![CDATA[<p>1 Ngày đẹp zoi chỉnh lại file config php.ini rồi khởi động lại apache chẳng hiểu sao lỗi gặp lỗi:</p>
<blockquote><p><strong><em>Apache Address already in use: make_sock: could not bind to port 80 error and solution</em></strong></p></blockquote>
<p>Lọ mọ mãi mới phát hiện ra.</p>
<p>puty vào server rồi làm như sau:</p>
<p>+ Tắt dịch vụ apache:</p>
<blockquote><p>killall -9 httpd</p></blockquote>
<p>+ Sau đó khởi động lại là ok</p>
<blockquote><p>service httpd restart</p></blockquote>
<p>Chúc bạn thành công !</p>

<p><a href="http://feedads.g.doubleclick.net/~a/PSTRYO1ttZe-AD7bcsa9-zLd5qw/0/da"><img src="http://feedads.g.doubleclick.net/~a/PSTRYO1ttZe-AD7bcsa9-zLd5qw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/PSTRYO1ttZe-AD7bcsa9-zLd5qw/1/da"><img src="http://feedads.g.doubleclick.net/~a/PSTRYO1ttZe-AD7bcsa9-zLd5qw/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Vinasharescom/~4/vZ5VI8bPSZY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vinashares.com/apache-address-already-in-use-make_sock-could-not-bind-to-port-80-or-443-error-and-solution.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://vinashares.com/apache-address-already-in-use-make_sock-could-not-bind-to-port-80-or-443-error-and-solution.html</feedburner:origLink></item>
		<item>
		<title>Service unabailable message while accessing plesk</title>
		<link>http://feedproxy.google.com/~r/Vinasharescom/~3/KdZW_odVH2I/service-unabailable-message-while-accessing-plesk.html</link>
		<comments>http://vinashares.com/service-unabailable-message-while-accessing-plesk.html#comments</comments>
		<pubDate>Wed, 26 Oct 2011 10:10:53 +0000</pubDate>
		<dc:creator>mcsaormoney</dc:creator>
				<category><![CDATA[Hướng dẫn sử dụng Plesk]]></category>
		<category><![CDATA[Service unabailable]]></category>

		<guid isPermaLink="false">http://vinashares.com/?p=744</guid>
		<description><![CDATA[SOLUTION: 1.Remove filter from IIS manager: IIS &#62;&#62; Web Sites &#62;&#62;Properties &#62;&#62;ISAPI filters 2.Disable that filter in Web Server Extensions. 3.Restart IIS Tận hưởng thành quả nào. Truy cập Plesk...]]></description>
			<content:encoded><![CDATA[<h3>SOLUTION:</h3>
<p><strong>1.</strong>Remove filter from IIS manager:<br />
IIS &gt;&gt; Web Sites &gt;&gt;Properties &gt;&gt;ISAPI filters<br />
<strong>2.</strong>Disable that filter in Web Server Extensions.<br />
<strong>3.</strong>Restart IIS</p>
<p>Tận hưởng thành quả nào. Truy cập Plesk bình thường.</p>
<p>Chúc các bạn thành công.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/xSzdjEpCTjXZUejOa0ApRRhWVmo/0/da"><img src="http://feedads.g.doubleclick.net/~a/xSzdjEpCTjXZUejOa0ApRRhWVmo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/xSzdjEpCTjXZUejOa0ApRRhWVmo/1/da"><img src="http://feedads.g.doubleclick.net/~a/xSzdjEpCTjXZUejOa0ApRRhWVmo/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Vinasharescom/~4/KdZW_odVH2I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vinashares.com/service-unabailable-message-while-accessing-plesk.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://vinashares.com/service-unabailable-message-while-accessing-plesk.html</feedburner:origLink></item>
		<item>
		<title>Update cpanel license</title>
		<link>http://feedproxy.google.com/~r/Vinasharescom/~3/6jsK5YY6tWk/update-cpanel-license.html</link>
		<comments>http://vinashares.com/update-cpanel-license.html#comments</comments>
		<pubDate>Tue, 27 Sep 2011 04:08:36 +0000</pubDate>
		<dc:creator>mcsaormoney</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Update cpanel license]]></category>

		<guid isPermaLink="false">http://vinashares.com/?p=740</guid>
		<description><![CDATA[Change IP https://www.buycpanel.com/changeip.php If you get Invalid License File when you login to cpanel/WHM update your cpanel license file by: Login to shell and run the command below /usr/local/cpanel/cpkeyclt &#160;...]]></description>
			<content:encoded><![CDATA[<p>Change IP</p>
<p><a href="https://www.buycpanel.com/changeip.php">https://www.buycpanel.com/changeip.php</a></p>
<p>If you get Invalid License File<br />
when you login to cpanel/WHM update your cpanel license file by:</p>
<p>Login to<br />
shell</p>
<p>and run the command below</p>
<p>/usr/local/cpanel/cpkeyclt</p>
<p>&nbsp;</p>
<p>nguon: <a href="http://mswebnetwork.net/">http://mswebnetwork.net/</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/zQxrTm0vMeJYrfZz7VvRw9KO39U/0/da"><img src="http://feedads.g.doubleclick.net/~a/zQxrTm0vMeJYrfZz7VvRw9KO39U/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zQxrTm0vMeJYrfZz7VvRw9KO39U/1/da"><img src="http://feedads.g.doubleclick.net/~a/zQxrTm0vMeJYrfZz7VvRw9KO39U/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Vinasharescom/~4/6jsK5YY6tWk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vinashares.com/update-cpanel-license.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://vinashares.com/update-cpanel-license.html</feedburner:origLink></item>
		<item>
		<title>install CSF (Config Server Firewall) for Cpanel</title>
		<link>http://feedproxy.google.com/~r/Vinasharescom/~3/ZG2HbCyzl-M/install-csf-config-server-firewall-for-cpanel.html</link>
		<comments>http://vinashares.com/install-csf-config-server-firewall-for-cpanel.html#comments</comments>
		<pubDate>Sat, 24 Sep 2011 08:49:22 +0000</pubDate>
		<dc:creator>mcsaormoney</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[install CSF for Cpanel]]></category>

		<guid isPermaLink="false">http://vinashares.com/?p=733</guid>
		<description><![CDATA[1. Download the package  wget http://www.configserver.com/free/csf.tgz 2. Untar it tar -zxf csf.tar.gz 3. Run the Install script. sh /csf/install.sh Thats it! wait until the script ends! 4. Remove APF or IPTables...]]></description>
			<content:encoded><![CDATA[<pre><a href="http://vinashares.com/install-csf-config-server-firewall-for-cpanel.html/9-24-2011-3-34-52-pm" rel="attachment wp-att-734"><img class="aligncenter size-large wp-image-734" title="9-24-2011 3-34-52 PM" src="http://vinashares.com/wp-content/uploads/2011/09/9-24-2011-3-34-52-PM-560x130.png" alt="" width="560" height="130" /></a></pre>
<p><strong>1. Download the package </strong></p>
<p>wget <span class="Apple-style-span" style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px; white-space: pre;">http://www.configserver.com/free/csf.tgz</span></p>
<p><strong>2. Untar it</strong></p>
<div>
<p>tar -zxf csf.tar.gz</p>
</div>
<p><strong>3. Run the Install script.</strong></p>
<div>
<p>sh /csf/install.sh</p>
</div>
<p>Thats it! wait until the script ends!</p>
<p><strong>4. Remove APF or IPTables Firewall</strong></p>
<p>If you have any existing IP tables firewall remove them using uninstall scripts located at /etc/csf. In this case i was running APF firewall and BFD in my server so i have to remove it.</p>
<div>
<p>sh /etc/csf/remove_apf_bfd.sh</p>
</div>
<p><strong>5. Start the Firewall in Testing Mode</strong></p>
<p>Start the firewall with the following command.</p>
<div>
<p>csf -s<br />
// start the firewall<br />
csf -r<br />
// restart the firewall<br />
csf -f<br />
// flush the rules or stop the firewall.</p>
</div>
<p>If you are running a VPS plan, then you might get the error like this</p>
<p><strong>&#8220;iptables LKM ip_tables missing so this firewall cannot function unless you enable MONOLITHIC_KERNEL in /etc/csf/csf.conf</strong><strong><br />
<strong>Error: aborted, at line 156&#8243;</strong></strong></p>
<p><strong>To fix:</strong><strong><br />
</strong>Open the <strong>/etc/csf/csf.conf</strong> and <a href="http://vinashares.com">look for</a> a line MONOLITHIC_KERNEL = &#8220;0&#8243; and <strong>change</strong> to <strong>MONOLITHIC_KERNEL = &#8220;1&#8243;</strong></p>
<p>Thats all! Now restart the firewall.</p>
<p><strong>7. Specify which ports you want to allow.</strong></p>
<p>It is very important to check the firewall on which ports to open and close all remaining port numbers. Open the /etc/csf/csf.conf and edit the following line with port numbers</p>
<div>
<p># Allow incoming TCP ports<br />
TCP_IN = &#8220;20,21,22,25,53,80,110,143,443,465,953,993,995,2077,2078,2082,2083,2087&#8243;<br />
# Allow outgoing TCP ports<br />
TCP_OUT = &#8220;20,21,22,25,37,43,53,80,110,113,443,587,873,953,2087,2089,2703&#8243;<br />
# Allow incoming UDP ports<br />
UDP_IN = &#8220;20,21,53,953&#8243;<br />
# Allow outgoing UDP ports<br />
# To allow outgoing traceroute add 33434:33523 to this list<br />
UDP_OUT = &#8220;20,21,53,113,123,873,953,6277&#8243;</p>
</div>
<p>21 =&gt; FTP<br />
22 =&gt; SSH<br />
23 =&gt; Telnet<br />
25 =&gt; SMTP Mail Transfer<br />
43 =&gt; WHOIS service<br />
53 =&gt; name server (DNS)<br />
80 =&gt; HTTP (Web server)<br />
110 =&gt; POP protocol (for email)<br />
443 =&gt; HTTP Secure (SSL for https:// )<br />
995 =&gt; POP over SSL/TLS<br />
9999 =&gt; Urchin<br />
3306 = &gt; MysQL Server<br />
2082 =&gt; CPANEL Default<br />
2083 =&gt; CPANEL &#8211; Secure/SSL<br />
2086 =&gt; CPANEL WHM<br />
2087 =&gt; CPANEL WHM &#8211; Secure/SSL<br />
2095 =&gt; cpanel webmail<br />
2096 =&gt; cpanel webmail &#8211; secure/SSL<br />
Plesk Control Panel =&gt; 8443<br />
DirectAdmin Control Panel =&gt; 2222<br />
Webmin <a href="http://vinashares.com">Control Panel </a>=&gt; 10000</p>
<p><strong>6. Disable the Testing Mode and Start the Firewall</strong></p>
<p>Remember by default the firewall is running in testing mode. You might want to disable the firewall running in testing mode.</p>
<div>
<p>nano /etc/csf/csf.conf</p>
<p>//Look for the first line and set testing mode to &#8220;0&#8243;<br />
<strong>TESTING = &#8220;0&#8243;</strong><strong></p>
<p></strong>//Now restart the firewall!<br />
csf -r</p>
</div>
<h3><strong>In Cpanel</strong></h3>
<p>If you have successfully installed the CSF firewall, then you will find this <strong>CSF Security &amp; Firewall</strong><strong> </strong>option within cpanel WHM at the bottom of the menu. Just click on the link and you can also <strong>edit</strong><strong> </strong>the firewall settings inside Cpanel, which is very easy to do.</p>
<p><a href="http://vinashares.com/install-csf-config-server-firewall-for-cpanel.html/csf01" rel="attachment wp-att-735"><img class="size-full wp-image-735 alignnone" title="csf01" src="http://vinashares.com/wp-content/uploads/2011/09/csf01.jpg" alt="" width="199" height="59" /></a></p>
<h3>Config Files</h3>
<p><strong>/etc/csf/csf.conf</strong> CSF Firewall configuration file<br />
<strong>/etc/csf/csf.allow</strong> =&gt; Config file to allow IPs<br />
<strong>/etc/csf/csf.deny</strong> =&gt; Config file to deny IPs<br />
<strong>/etc/csf/</strong> =&gt; Alert files with TXT extension are stored within this directory</p>
<h2>Final Steps</h2>
<p>1. Check the status of firewall inside cpanel<br />
2. Harden the firewall security by performing the system security check. To do this go to <strong>Cpanel WHM &gt; CSF Firewall &amp; Security &gt; Check System Security.</strong><strong> </strong>There it will list WARNINGS based on your server.</p>
<div align="center">
<hr align="center" size="2" width="100%" />
</div>
<h1>Frequently Asked Questions</h1>
<h2>1. How do i know whether the firewall is running or not?</h2>
<p>Just login to <strong>Cpanel WHM &gt; Config Security &amp; Firewall &gt; Status: Running</strong></p>
<p><a href="http://vinashares.com/install-csf-config-server-firewall-for-cpanel.html/csf02" rel="attachment wp-att-736"><img class="size-medium wp-image-736 alignnone" title="csf02" src="http://vinashares.com/wp-content/uploads/2011/09/csf02-300x134.jpg" alt="" width="300" height="134" /></a></p>
<p><strong>Another good idea is to check and see which ports have been opened and closed by firewall.</strong></p>
<p>To look for open ports, just use the following commands in linux and observe which ports are open.</p>
<div>
<p>netstat -nap<br />
OR<br />
nmap fuser localhost</p>
</div>
<h2>2. How do i Remove the CSF Firewall</h2>
<p>Just run the uninstall script located at <strong>/etc/csf/</strong><strong> </strong>directory</p>
<div>
<p>sh /etc/csf/uninstall.sh</p>
<p>&nbsp;</p>
<p>In the End ! ^^</p>
<p>&nbsp;</p>
<p>Thamkhao: <a href="http://mysql-apache-php.com/csf-firewall.htm">http://mysql-apache-php.com/csf-firewall.htm</a></p>
</div>
<p>&nbsp;</p>

<p><a href="http://feedads.g.doubleclick.net/~a/44s3DdN3_LBSHM2_ySue4m_fAW4/0/da"><img src="http://feedads.g.doubleclick.net/~a/44s3DdN3_LBSHM2_ySue4m_fAW4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/44s3DdN3_LBSHM2_ySue4m_fAW4/1/da"><img src="http://feedads.g.doubleclick.net/~a/44s3DdN3_LBSHM2_ySue4m_fAW4/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Vinasharescom/~4/ZG2HbCyzl-M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vinashares.com/install-csf-config-server-firewall-for-cpanel.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://vinashares.com/install-csf-config-server-firewall-for-cpanel.html</feedburner:origLink></item>
		<item>
		<title>MySQL is running but PID file could not be found</title>
		<link>http://feedproxy.google.com/~r/Vinasharescom/~3/--JGGk3ENTs/mysql-is-running-but-pid-file-could-not-be-found.html</link>
		<comments>http://vinashares.com/mysql-is-running-but-pid-file-could-not-be-found.html#comments</comments>
		<pubDate>Sat, 24 Sep 2011 08:36:28 +0000</pubDate>
		<dc:creator>mcsaormoney</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://vinashares.com/?p=729</guid>
		<description><![CDATA[If you encounter the error &#8220;MySQL is running but PID file could not be found&#8221; you have to create the directory var/run/mysql #mkdir /var/run/mysql then create the file mysqld.pid #touch...]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://vinashares.com/cac-l%e1%bb%87nh-c%c6%a1-b%e1%ba%a3n-c%e1%bb%a7a-ssh.html/linux" rel="attachment wp-att-56"><img class="aligncenter size-full wp-image-56" title="linux" src="http://vinashares.com/wp-content/uploads/2011/04/linux.jpg" alt="" width="165" height="158" /></a></p>
<p>If you encounter the error</p>
<p>&#8220;MySQL is running but PID file could not be found&#8221;</p>
<p>you have to create the directory</p>
<p>var/run/mysql</p>
<p><strong>#mkdir /var/run/mysql</strong></p>
<p>then create the file mysqld.pid</p>
<p><strong>#touch mysqld.pid</strong></p>
<p>and change its owner</p>
<p><strong>#chown mysql:mysql mysqld.pid</strong></p>
<p>this should solve the problem.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/2dBAw9MW8S1cXJelDpH_NL2nh_8/0/da"><img src="http://feedads.g.doubleclick.net/~a/2dBAw9MW8S1cXJelDpH_NL2nh_8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/2dBAw9MW8S1cXJelDpH_NL2nh_8/1/da"><img src="http://feedads.g.doubleclick.net/~a/2dBAw9MW8S1cXJelDpH_NL2nh_8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Vinasharescom/~4/--JGGk3ENTs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vinashares.com/mysql-is-running-but-pid-file-could-not-be-found.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://vinashares.com/mysql-is-running-but-pid-file-could-not-be-found.html</feedburner:origLink></item>
		<item>
		<title>Command reset port SSH and flush iptables Cpanel</title>
		<link>http://feedproxy.google.com/~r/Vinasharescom/~3/5sU2AornkKc/command-reset-port-ssh-and-flush-iptables-cpanel.html</link>
		<comments>http://vinashares.com/command-reset-port-ssh-and-flush-iptables-cpanel.html#comments</comments>
		<pubDate>Sat, 24 Sep 2011 08:31:48 +0000</pubDate>
		<dc:creator>mcsaormoney</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[reset port SSH]]></category>

		<guid isPermaLink="false">http://vinashares.com/?p=722</guid>
		<description><![CDATA[&#160; Useful Hidden cPanel Commands Have you ever locked yourself out of your server while making some iptables changes? What about when you change your SSH port and then forget...]]></description>
			<content:encoded><![CDATA[<h2><a href="http://vinashares.com/change-password-qu%e1%ba%a3n-tr%e1%bb%8b-hosting-va-thay-d%e1%bb%95i-giao-di%e1%bb%87n-hosting.html/cpanel_logo" rel="attachment wp-att-67"><img class="aligncenter size-large wp-image-67" title="cpanel_logo" src="http://vinashares.com/wp-content/uploads/2011/04/cpanel_logo-560x262.jpg" alt="" width="560" height="262" /></a></h2>
<p>&nbsp;</p>
<p><span style="font-size: large;"><strong>Useful Hidden cPanel Commands</strong></span></p>
<h2></h2>
<p>Have you ever locked yourself out of your server while making some iptables changes? What about when you change your SSH port and then forget what you set it to? These are both fairly common support requests that we receive at slhost. Fortunately, in many cases this is something our customer’s can fix on their end as long as they are using cPanel as their control panel.</p>
<h2></h2>
<p>cPanel comes with a number of ‘hidden’ autofix commands that allow for administrators to fix common problems simply be logging into WHM and going to a special URL. Two of the most useful ones I’ve seen are flushing iptables and restarting SSH in “safe mode” (basically the default settings and port).</p>
<h2></h2>
<p><strong>Restart SSH in safe mode: http://mydomain.com:2086/scripts2/doautofixer?autofix=safesshrestart</strong></p>
<p><strong>Flushingiptables rules: http://mydomain.com:2086/scripts2/doautofixer?autofix=iptablesflush</strong></p>

<p><a href="http://feedads.g.doubleclick.net/~a/I43ixkBftv8TC1W5phjjitncrL0/0/da"><img src="http://feedads.g.doubleclick.net/~a/I43ixkBftv8TC1W5phjjitncrL0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/I43ixkBftv8TC1W5phjjitncrL0/1/da"><img src="http://feedads.g.doubleclick.net/~a/I43ixkBftv8TC1W5phjjitncrL0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Vinasharescom/~4/5sU2AornkKc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vinashares.com/command-reset-port-ssh-and-flush-iptables-cpanel.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://vinashares.com/command-reset-port-ssh-and-flush-iptables-cpanel.html</feedburner:origLink></item>
	<media:rating>adult</media:rating></channel>
</rss>

