<?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"
	>

<channel>
	<title>Linux Window System Administrator Help</title>
	<atom:link href="http://linwinsysadmin.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://linwinsysadmin.com/blog</link>
	<description></description>
	<pubDate>Sun, 12 Oct 2008 23:01:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable</title>
		<link>http://linwinsysadmin.com/blog/linux/%e2%80%9chtaccess-pcfg_openfile-unable-to-check-htaccess-file-ensure-it-is-readable%e2%80%9d.html</link>
		<comments>http://linwinsysadmin.com/blog/linux/%e2%80%9chtaccess-pcfg_openfile-unable-to-check-htaccess-file-ensure-it-is-readable%e2%80%9d.html#comments</comments>
		<pubDate>Sun, 24 Aug 2008 22:37:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Cpanel Hosting]]></category>

		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://linwinsysadmin.com/blog/linux/%e2%80%9chtaccess-pcfg_openfile-unable-to-check-htaccess-file-ensure-it-is-readable%e2%80%9d.html</guid>
		<description><![CDATA[
If you are getting &#8220;(13)Permission denied: /home/username/public_html/logo/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.yourdomain.com/logo/index.html&#8221; error in  apache error logs file /usr/local/apache/logs/error_log as well as the site is showing 403 Forbidden Error.
Then first please check the permissions of your folder and .htaccess file because folder permision are most likely 755 and [...]]]></description>
			<content:encoded><![CDATA[<p align="left">
<p align="left">If you are getting <strong>&#8220;(13)Permission denied: /home/username/public_html/logo/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.yourdomain.com/logo/index.html&#8221;</strong> error in  apache error logs file<strong> /usr/local/apache/logs/error_log</strong> as well as the site is showing <strong>403 Forbidden Error</strong>.</p>
<p align="left">Then first please check the permissions of your folder and .htaccess file because folder <strong>permision</strong> are most likely <strong>755</strong> and .htaccess permission <strong>644</strong> . To change permissions use : chmod 644 the_name_of_your_path after that still you are getting same problem,then might be <strong>Frontpage Extension problem</strong>.</p>
<p align="left">* Login into your CPanel account<br />
* Click on Frontpage Extensions icon<br />
* Click on Reinstall extensions button beside your problem domain.<br />
* Done.</p>
<p align="left">The .htaccess pcfg_openfile: unable to check htaccess file problem  will be fixed.</p>
<p align="left">
<p align="left">Regards</p>
<p align="left">Alex P</p>
]]></content:encoded>
			<wfw:commentRss>http://linwinsysadmin.com/blog/linux/%e2%80%9chtaccess-pcfg_openfile-unable-to-check-htaccess-file-ensure-it-is-readable%e2%80%9d.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Fantastico is not installed at the default location</title>
		<link>http://linwinsysadmin.com/blog/cpanel-hosting/fantastico-is-not-installed-at-the-default-location.html</link>
		<comments>http://linwinsysadmin.com/blog/cpanel-hosting/fantastico-is-not-installed-at-the-default-location.html#comments</comments>
		<pubDate>Thu, 29 May 2008 23:12:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Cpanel Hosting]]></category>

		<guid isPermaLink="false">http://linwinsysadmin.com/blog/cpanel-hosting/fantastico-is-not-installed-at-the-default-location.html</guid>
		<description><![CDATA[                        If you are getting following error while try to access Fantastico via cpanel &#62;&#62; Fantastico option then please proceed to following steps to fix it,
Error ::
Fantastico is not installed at the [...]]]></description>
			<content:encoded><![CDATA[<p>                        If you are getting following error while try to access Fantastico via cpanel &gt;&gt; Fantastico option then please proceed to following steps to fix it,</p>
<p>Error ::<br />
Fantastico is not installed at the default location /usr/local/cpanel/3rdparty/fantastico. Either move the Fantastico directory from it&#8217;s current location to /usr/local/cpanel/3rdparty/fantastico OR enable ioncube loaders in WHM -&gt; Tweak settings.</p>
<p>Solutions ::</p>
<ul>
<li>first make sure ioncube installed on server as well as make sure it is enable in WHM -&gt; Tweak settings.</li>
<li>Second you may want to try to update fantastico with cd /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/scripts/ ; /usr/local/cpanel/3rdparty/bin/php cron.php</li>
<li>Third you may want to rebuild cpanel&#8217;s php with /scripts/makecpphp</li>
<li>Fourth you may want to try a cpanel update with /scripts/upcp &#8211;force</li>
</ul>
<p>Regards</p>
<p>Alex P</p>
]]></content:encoded>
			<wfw:commentRss>http://linwinsysadmin.com/blog/cpanel-hosting/fantastico-is-not-installed-at-the-default-location.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>How do I enable/disable eAccelerator?</title>
		<link>http://linwinsysadmin.com/blog/apache-and-php/how-do-i-enabledisable-eaccelerator.html</link>
		<comments>http://linwinsysadmin.com/blog/apache-and-php/how-do-i-enabledisable-eaccelerator.html#comments</comments>
		<pubDate>Sat, 19 Apr 2008 22:39:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apache and PHP]]></category>

		<category><![CDATA[Cpanel Hosting]]></category>

		<guid isPermaLink="false">http://linwinsysadmin.com/blog/apache-and-php/how-do-i-enabledisable-eaccelerator.html</guid>
		<description><![CDATA[eAccelerator is used improve performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution.
IfÂ  eAccelerator is installed on serverwide then it is enable for all account or you can enable it eAccelerator by makeingÂ  a [...]]]></description>
			<content:encoded><![CDATA[<p>eAccelerator is used improve performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution.<br />
IfÂ  eAccelerator is installed on serverwide then it is enable for all account or you can enable it eAccelerator by makeingÂ  a .htaccess file in your &#8216;htdocs&#8217; directory, and add the following lines:<br />
php_flag eaccelerator.enable 1<br />
php_flag eaccelerator.optimizer 1</p>
<p>if you&#8217;d like to turn off eAccelerator for a particular directory, put the following in a .htaccess file in that subdirectory:</p>
<p>php_flag eaccelerator.enable 0<br />
php_flag eaccelerator.optimizer 0</p>
<p>If php suexec is enabled on server then create php.ini file and following code in that file to disble eAccelerator.</p>
<p>eaccelerator.enable 0<br />
eaccelerator.optimizer 0</p>
<p>Regards</p>
<p>Alex P</p>
<p>System Administrator</p>
]]></content:encoded>
			<wfw:commentRss>http://linwinsysadmin.com/blog/apache-and-php/how-do-i-enabledisable-eaccelerator.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Install &#038; compile Firebird InterBase database server with PHP on Linux Server ?</title>
		<link>http://linwinsysadmin.com/blog/apache-and-php/how-to-compile-firebird-module-with-php.html</link>
		<comments>http://linwinsysadmin.com/blog/apache-and-php/how-to-compile-firebird-module-with-php.html#comments</comments>
		<pubDate>Sat, 06 Oct 2007 00:26:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apache and PHP]]></category>

		<guid isPermaLink="false">http://linwinsysadmin.com/blog/apache-and-php/how-to-compile-firebird-module-with-php.html</guid>
		<description><![CDATA[What is firebird
Firebird is an open source relational database offering many ANSI SQL-99 features that runs on Linux, Windows, and a variety of Unix platforms. Firebird offers excellent concurrency, high performance, powerful language support for stored procedures and triggers. It has been used in many production systems within a large number of commercial companies since [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">What is firebird</p>
<p class="MsoNormal">Firebird is an open source relational database offering many ANSI SQL-99 features that runs on Linux, Windows, and a variety of Unix platforms. Firebird offers excellent concurrency, high performance, powerful language support for stored procedures and triggers. It has been used in many production systems within a large number of commercial companies since 1981.</p>
<p class="MsoNormal">Steps to compile compile firebird module with php</p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><!--[if !supportLists]--><span>1)</span>Download the firebird module <span>Â </span>to server</p>
<p class="MsoNormal" style="margin-left: 0.25in">Cd /usr/src</p>
<p class="MsoNormal" style="margin-left: 0.25in">wget <a href="http://nchc.dl.sourceforge.net/sourceforge/firebird/Firebird-2.0.3.12981-1.tar.bz2">http://nchc.dl.sourceforge.net/sourceforge/firebird/Firebird-2.0.3.12981-1.tar.bz2</a></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><!--[if !supportLists]--><span>2)</span>Manually build and install the firebird module</p>
<p class="MsoNormal" style="margin-left: 0.25in">tar -jxf Firebird-2.0.3.12981-1.tar.bz2</p>
<p class="MsoNormal" style="margin-left: 0.25in">cd Firebird-2.0.3.12981-1</p>
<p class="MsoNormal" style="margin-left: 0.25in">mv Firebird-2.0.3.12981-1 firebird</p>
<p class="MsoNormal" style="margin-left: 0.25in">cd firebird</p>
<p class="MsoNormal" style="margin-left: 0.25in">./autogen.sh; make;make install</p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><!--[if !supportLists]--><span>3)</span>Rebuild PHP along with the firebird</p>
<p class="MsoNormal" style="margin-left: 0.25in">&#8216;&#8211;with-interbase=/usr/src/firebird&#8217; option.</p>
<p>When installing is finished, open the php.ini configuration file (located in /usr/local/lib/), and check if these lines exist (uncomment/modify them if necessary):</p>
<pre>magic_quotes_sybase = On	; Use Sybase-style magic quotes (escape ' with '' instead of ')
extension=php_interbase.so</pre>
<p class="MsoNormal" style="margin-left: 0.25in">
<pre>magic_quotes_sybase = On	; Use Sybase-style magic quotes (escape ' with '' instead of ')
extension=php_interbase.so</pre>
<p class="MsoNormal"><span>Â </span>4) check php module using php -m command</p>
<p>Regards</p>
<p>Stacy</p>
<p>System Administrator.</p>
]]></content:encoded>
			<wfw:commentRss>http://linwinsysadmin.com/blog/apache-and-php/how-to-compile-firebird-module-with-php.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Fixing Apache &#8220;No space left on device: Couldn&#8217;t create accept lock&#8221; errors</title>
		<link>http://linwinsysadmin.com/blog/apache-and-php/fixing-apache-no-space-left-on-device-couldnt-create-accept-lock-errors.html</link>
		<comments>http://linwinsysadmin.com/blog/apache-and-php/fixing-apache-no-space-left-on-device-couldnt-create-accept-lock-errors.html#comments</comments>
		<pubDate>Fri, 28 Sep 2007 20:40:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apache and PHP]]></category>

		<guid isPermaLink="false">http://linwinsysadmin.com/blog/apache-and-php/fixing-apache-no-space-left-on-device-couldnt-create-accept-lock-errors.html</guid>
		<description><![CDATA[I was facing same error with one of my shared server last couple of week, apache was broke on server and getting following error in apache error logs file.
 
[emerg] (28)No space left on device: Couldn't create accept lock
[notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[notice] Digest: generating secret for digest authentication ...
[notice] Digest: done
[warn] pid file [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">I was facing same error with one of my shared server last couple of week, apache was broke on server and getting following error in apache error logs file.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<pre>[emerg] (28)No space left on device: Couldn't create accept lock<o:p></o:p></pre>
<pre>[notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)<o:p></o:p></pre>
<pre>[notice] Digest: generating secret for digest authentication ...<o:p></o:p></pre>
<pre>[notice] Digest: done<o:p></o:p></pre>
<pre>[warn] pid file /etc/httpd/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?<o:p></o:p></pre>
<pre>[emerg] (28)No space left on device: Couldn't create accept lock<o:p></o:p></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<p>I checked disk space, or <span> </span>quota limit but everything was fine. I through it seem to apache semaphore problem <span> </span></p>
<p>Apache can create the &#8220;accept lock&#8221; is with a semaphore. A semaphore is an inter-process communication tool that is used by Apache to communicate with it&#8217;s child processes. This error message may mean that Apache couldn&#8217;t create a new semaphore. <o:p></o:p></p>
<p>Check to see how many semaphores are currently in use. If Apache is running correctly, you should see something like this: <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<pre># ipcs -s<o:p></o:p></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If Apache is stopped, and you still see these semaphores, then you can safely kill them by running this command for each semaphore id (in the second column)</p>
<pre>$ ipcrm -s &lt;semid&gt; <o:p></o:p></pre>
<p class="MsoNormal">To destroy all semaphores, you can run this from the command line (with &#8220;apache&#8221; being the apache-user:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<pre>for semid in `ipcs -s | grep apachec | cut -f2 -d" "`; do ipcrm -s $semid; done<o:p></o:p></pre>
<p class="MsoNormal">OR</p>
<p class="MsoNormal"><code><span style="font-size: 10pt">ipcs -s | grep apache | perl -e &#8216;while (&lt;STDIN&gt;) { @a=split(/\s+/); print `ipcrm sem $a[1]`}&#8217;<o:p></o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size: 10pt"><o:p> </o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size: 10pt">OR<o:p></o:p></span></code></p>
<p class="MsoNormal">ipcs -s | grep nobody | perl -e &#8216;while (<stdin>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}&#8217;<br />
ipcs -m | grep nobody | perl -e &#8216;while (</stdin><stdin>) { @a=split(/\s+/); print `ipcrm -m $a[1]`}&#8217;</stdin></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">OR</p>
<p class="MsoNormal"><code><span style="font-size: 10pt">for i in `ipcs -s | awk &#8216;/httpd/ {print $2}&#8217;`; do (ipcrm -s $i); done<o:p></o:p></span></code></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">How to increase semaphore limit</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To view the current parameters:</p>
<pre>ipcs -l<o:p></o:p></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To change these parameters, modify the file /etc/sysctl.conf and add the following lines:</p>
<pre>kernel.msgmni = 1024<o:p></o:p></pre>
<pre>kernel.sem = 250 256000 32 1024<o:p></o:p></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Then load these settings with the command:</p>
<pre>sysctl -p<o:p></o:p></pre>
<p class="MsoNormal"><o:p>Regards</o:p></p>
<p class="MsoNormal"><o:p>StacyM</o:p></p>
<p class="MsoNormal"><o:p>System Administrator </o:p></p>
]]></content:encoded>
			<wfw:commentRss>http://linwinsysadmin.com/blog/apache-and-php/fixing-apache-no-space-left-on-device-couldnt-create-accept-lock-errors.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>How to compile pdo_mysql module with php   ?</title>
		<link>http://linwinsysadmin.com/blog/apache-and-php/how-to-compile-pdo_mysql-module-with-php.html</link>
		<comments>http://linwinsysadmin.com/blog/apache-and-php/how-to-compile-pdo_mysql-module-with-php.html#comments</comments>
		<pubDate>Wed, 19 Sep 2007 20:49:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apache and PHP]]></category>

		<guid isPermaLink="false">http://blog.linwinsysadmin.com/?p=15</guid>
		<description><![CDATA[Hello,
PDO_MYSQL is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to MySQL 3.x and 4.x databases. 
PDO_MYSQL will take advantage of native prepared statement support present in MySQL 4.1 and higher. If you&#8217;re using an older version of the mysql client libraries, PDO will emulate them for you.
Steps [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>PDO_MYSQL is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to MySQL 3.x and 4.x databases. <o:p></o:p></p>
<p>PDO_MYSQL will take advantage of native prepared statement support present in MySQL 4.1 and higher. If you&#8217;re using an older version of the mysql client libraries, PDO will emulate them for you.</p>
<p>Steps to compile compile pdo_mysql module with php</p>
<p style="margin-left: 0.5in; text-indent: -0.25in"><!--[if !supportLists]--><span>1)<span>      </span></span><!--[endif]-->Download the PDO package to server</p>
<pre>          # wget http://pecl.php.net/get/PDO<o:p></o:p></pre>
<p style="margin-left: 0.5in; text-indent: -0.25in"><!--[if !supportLists]--><span>2)<span>      </span></span><!--[endif]-->Manually build and install the PDO extension:</p>
<pre>	  # tar xzf PDO-0.2.tgz<o:p></o:p></pre>
<pre>	  # cd PDO-0.2<o:p></o:p></pre>
<pre>	  # phpize<o:p></o:p></pre>
<pre>	  # ./configure<o:p></o:p></pre>
<pre>          # make<o:p></o:p></pre>
<pre>          # make install<o:p></o:p></pre>
<pre>          # echo extension=pdo.so &gt;&gt; /usr/local/php5/lib/php.ini<o:p></o:p></pre>
<p style="margin-left: 0.25in"><o:p> </o:p></p>
<p style="margin-left: 0.5in; text-indent: -0.25in"><!--[if !supportLists]--><span>3)<span>      </span></span><!--[endif]-->rebuild PHP along with the drivers for PDO_mysql.</p>
<p style="margin-left: 0.25in">CUSTOM_PHP_FLAGS=&#8221;&#8211;with-pdo-mysql&#8221; /scripts/easyapache</p>
<p style="margin-left: 0.5in; text-indent: -0.25in"><!--[if !supportLists]--><span>4)<span>      </span></span><!--[endif]-->check php module using php â€“m command</p>
<p style="margin-left: 0.5in; text-indent: -0.25in">Enjoys <img src='http://linwinsysadmin.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://linwinsysadmin.com/blog/apache-and-php/how-to-compile-pdo_mysql-module-with-php.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>301 Redirect</title>
		<link>http://linwinsysadmin.com/blog/apache-and-php/301-redirect.html</link>
		<comments>http://linwinsysadmin.com/blog/apache-and-php/301-redirect.html#comments</comments>
		<pubDate>Fri, 14 Sep 2007 18:35:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apache and PHP]]></category>

		<guid isPermaLink="false">http://blog.linwinsysadmin.com/?p=14</guid>
		<description><![CDATA[    301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It&#8217;s not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it&#8217;s the safest option. The code &#8220;301&#8243; is [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">    <strong>301 redirect</strong> is the most efficient and <strong>Search Engine Friendly</strong> method for webpage redirection. It&#8217;s not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it&#8217;s the safest option. The code &#8220;301&#8243; is interpreted as &#8220;moved permanently&#8221;.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<h2>IIS Redirect<o:p></o:p></h2>
<ul type="disc">
<li class="MsoNormal">In internet services manager,      right click on the file or folder you wish to redirect<o:p></o:p></li>
<li class="MsoNormal">Select the radio titled      &#8220;a redirection to a URL&#8221;.<o:p></o:p></li>
<li class="MsoNormal">Enter the redirection page<o:p></o:p></li>
<li class="MsoNormal">Check &#8220;The exact url      entered above&#8221; and the &#8220;A permanent redirection for this      resource&#8221;<o:p></o:p></li>
<li class="MsoNormal">Click on &#8216;Apply&#8217;<o:p></o:p></li>
</ul>
<h2>ColdFusion Redirect<o:p></o:p></h2>
<p class="MsoNormal" style="margin-bottom: 12pt">        &lt;.cfheader statuscode=&#8221;301&#8243; statustext=&#8221;Moved permanently&#8221;&gt;<br />
&lt;.cfheader name=&#8221;Location&#8221; value=&#8221;http://www.new-url.com&#8221;&gt; <o:p></o:p></p>
<h2>PHP Redirect<o:p></o:p></h2>
<p class="MsoNormal" style="margin-bottom: 12pt">       &lt;?<br />
Header( &#8220;HTTP/1.1 301 Moved Permanently&#8221; );<br />
Header( &#8220;Location: http://www.new-url.com&#8221; );<br />
?&gt; <o:p></o:p></p>
<h2>ASP Redirect<o:p></o:p></h2>
<p class="MsoNormal" style="margin-bottom: 12pt">      &lt;%@ Language=VBScript %&gt;<br />
&lt;%<br />
Response.Status=&#8221;301 Moved Permanently&#8221;;<br />
Response.AddHeader(&#8221;Location&#8221;,&#8221;http://www.new-url.com/&#8221;);<br />
%&gt; <o:p></o:p></p>
<h2>ASP .NET Redirect<o:p></o:p></h2>
<p class="MsoNormal" style="margin-bottom: 12pt">     &lt;script runat=&#8221;server&#8221;&gt;<br />
private void Page_Load(object sender, System.EventArgs e)<br />
{<br />
Response.Status = &#8220;301 Moved Permanently&#8221;;<br />
Response.AddHeader(&#8221;Location&#8221;,&#8221;http://www.new-url.com&#8221;);<br />
}<br />
&lt;/script&gt; <o:p></o:p></p>
<h2>JSP (Java) Redirect<o:p></o:p></h2>
<p class="MsoNormal" style="margin-bottom: 12pt">&lt;%<br />
response.setStatus(301);<br />
response.setHeader( &#8220;Location&#8221;, &#8220;http://www.new-url.com/&#8221; );<br />
response.setHeader( &#8220;Connection&#8221;, &#8220;close&#8221; );<br />
%&gt; <o:p></o:p></p>
<h2>CGI PERL Redirect<o:p></o:p></h2>
<p class="MsoNormal" style="margin-bottom: 12pt">$q = new CGI;<br />
print $q-&gt;redirect(&#8221;http://www.new-url.com/&#8221;); <o:p></o:p></p>
<h2>Ruby on Rails Redirect<o:p></o:p></h2>
<p class="MsoNormal">def old_action<br />
headers["Status"] = &#8220;301 Moved Permanently&#8221;<br />
redirect_to &#8220;http://www.new-url.com/&#8221;<br />
end</p>
<p class="MsoNormal"><o:p> </o:p></p>
<h2>Redirect Old domain to New domain<o:p></o:p></h2>
<p class="defaultfont">        Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.<br />
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed) <o:p></o:p></p>
<p class="defaultfont">Options +FollowSymLinks<br />
RewriteEngine on<br />
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] <o:p></o:p></p>
<p class="defaultfont">Please REPLACE www.newdomain.com in the above code with your actual domain name. <o:p></o:p></p>
<p class="defaultfont">In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<h2>Redirect to www<o:p></o:p></h2>
<p class="defaultfont">        Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com<br />
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed) <o:p></o:p></p>
<p class="defaultfont">Options +FollowSymlinks<br />
RewriteEngine on<br />
rewritecond %{http_host} ^domain.com [nc]<br />
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] <o:p></o:p></p>
<p class="defaultfont">Please REPLACE domain.com and www.newdomain.com with your actual domain name. <o:p></o:p></p>
]]></content:encoded>
			<wfw:commentRss>http://linwinsysadmin.com/blog/apache-and-php/301-redirect.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>How to install client exec billing software for webhosting</title>
		<link>http://linwinsysadmin.com/blog/linux/how-to-install-client-exec-billing-software-for-webhosting.html</link>
		<comments>http://linwinsysadmin.com/blog/linux/how-to-install-client-exec-billing-software-for-webhosting.html#comments</comments>
		<pubDate>Thu, 26 Jul 2007 00:19:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.linwinsysadmin.com/?p=13</guid>
		<description><![CDATA[What is Clientexec?
Clientexec is a robust client management software use for managing hosting clients, as well as many other types of clients, that offers the ability for monthly billing. CE Clientexec) also offers an area for your clients to create support tickets, and allows you to respond to the tickets as well. CE integrates with [...]]]></description>
			<content:encoded><![CDATA[<p>What is Clientexec?</p>
<p>Clientexec is a robust client management software use for managing hosting clients, as well as many other types of clients, that offers the ability for monthly billing. CE Clientexec) also offers an area for your clients to create support tickets, and allows you to respond to the tickets as well. CE integrates with Paypal, Authorize.net, and many other 3rd party online payment processors. Here is the procedure on how to install ClientExec</p>
<p>You will have to buy the license for that from here<br />
You will get the licencekey from them. Depending upon your server configuration you will have to download exect clientExec from here.</p>
<p>Detail of CE<br />
For example if you have following configuration</p>
<p>- PHP versions between 4.3.0 and 5.0.5<br />
- MySQL versions till 4.1</p>
<p>then you can download the CE ( clientExec Files from here)</p>
<p>wget http://download.powervps.com/clientexec/Clientexec.2.7.3.Ion.zip<br />
wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz</p>
<p>Now To install ClientExec:</p>
<p>- The first step is to create a database. (You need to create a mySQL database, database<br />
username, and database password.)</p>
<p>- Upload the entire contents of the zip file to your server in BINARY mode.</p>
<p>- Apply any patches as needed.</p>
<p>- Change CHMOD permissions on the config.php file to 666.</p>
<p>- Also modify the config file as per your database configuration.</p>
<p>- Point your browser to http://domain.com/install.php</p>
<p>- After the installation is complete, delete or move the install.php file</p>
<p>That is it. You should have a clean install and ready to go.</p>
<p>READ the CHANGELOG.txt file</p>
<p>1) First step in any upgrade is to backup your database. You can do so using an application<br />
like phpmyadmin which is commonly found with your hosting control panel utilities.<br />
NOTE: We can not stress this step enough. We can not help you easily with any issues to<br />
your data unless you have a backup before any upgrade.<br />
2) Unzip the contents of your compressed ClientExec file.<br />
3) FTP to your server, which contains the domain of your ClientExec installation.<br />
4) Remove all of your files except for:<br />
config.php<br />
license.php - If upgrading from 2.2.x you do not need to keep your license file<br />
uploads/files - Do not remove this folder if you have files in your files manager<br />
5) Upload all the content files from the ClientExec zip file. Ensure that you do not overwrite<br />
config.php or license.php<br />
6) Visit http://yourceurl/install.php and click on Upgrade. Follow the steps until completion.<br />
7) If you are getting any error o the above URL then please check that you have change the file permission to 666.<br />
 <img src='http://linwinsysadmin.com/blog/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Delete install.php.</p>
<p>Upgrading Notes:<br />
-If you see the install option available when you run the install.php script then you need to<br />
check your config.php and ensure that you didnâ€™t overwrite by mistake.<br />
-If you are upgrading from beta 2.2.x then you do not need to keep your license.php file prior<br />
to running the upgrade.<br />
-After you have upgraded your version of CE you can now delete your license.php file.<br />
-After you have upgraded your version of CE make sure you remove your install.php file.<br />
-If after upgrading you find that you have unauthorized version installed message do not stress,<br />
just follow the instructions below on obtaining a new license.<br />
-After each upgrade go to admin-&gt;settings-&gt;3rd party invoices to ensure all plugins are synched<br />
properly</p>
<p>You can have detail info for clientexec at following URLS:<br />
http://www.clientexec.com/manual<br />
http://www.clientexec.com/kb<br />
http://www.ce-talk.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://linwinsysadmin.com/blog/linux/how-to-install-client-exec-billing-software-for-webhosting.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0</title>
		<link>http://linwinsysadmin.com/blog/linux/php-fatal-error-ioncube-loader-the-loader-must-appear-as-the-first-entry-in-the-phpini-file-in-unknown-on-line-0.html</link>
		<comments>http://linwinsysadmin.com/blog/linux/php-fatal-error-ioncube-loader-the-loader-must-appear-as-the-first-entry-in-the-phpini-file-in-unknown-on-line-0.html#comments</comments>
		<pubDate>Thu, 12 Jul 2007 23:16:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://blog.linwinsysadmin.com/?p=12</guid>
		<description><![CDATA[Hello,
 
If you trying to installed Zend optimize and ionCube Loader on plesk server .
 
After installing Zend 3.0.1 and  ionCube Loader  php -v returns this:
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0
 
Here solution of this problem 
1) [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If you trying to installed Zend optimize and ionCube Loader on plesk server .</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">After installing Zend 3.0.1 and <span> </span>ionCube Loader <span> </span>php -v returns this:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0</p>
<p class="MsoNormal"><span class="ticketpostname"><o:p> </o:p></span></p>
<p class="MsoNormal"><span class="ticketpostname">Here solution of this problem <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><!--[if !supportLists]--><span>1)<span>      </span></span><!--[endif]--><span class="ticketpostname">Please go to cd <span> </span></span>/etc/php.d/ directory , edit ioncube.ini file and comment following line</p>
<p class="MsoNormal" style="margin-left: 0.25in">#zend_extension=/usr/lib/php4/ ioncube_loader_lin_4.3.so<o:p></o:p></p>
<p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"><!--[if !supportLists]--><span class="ticketpostname"><span>2)<span>      </span></span></span><!--[endif]--><span class="ticketpostname">Now open php.ini file and add following code <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="ticketpostname">zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.0.1<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="ticketpostname">zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.0.1<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="ticketpostname">zend_optimizer.version=3.0.1<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="ticketpostname">zend_extension=/usr/local/ioncube/ioncube_loader_lin_4.3.so<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="ticketpostname">zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="ticketpostname">zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="ticketpostname"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left: 0.25in"><span class="ticketpostname">(Note : Depend of php veriosn please change </span>ioncube_loader_lin_4.X.so file )</p>
<p class="MsoNormal" style="margin-left: 0.25in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left: 0.25in">Problem fixed â€¦â€¦. <span style="font-family: Wingdings"><span> <img src='http://linwinsysadmin.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></span></p>
<p class="MsoNormal" style="margin-left: 0.25in">Enjoy â€¦â€¦â€¦â€¦â€¦â€¦â€¦.</p>
<p class="MsoNormal" style="margin-left: 0.25in">Regardâ€™s</p>
<p class="MsoNormal" style="margin-left: 0.25in">Alex P</p>
<p class="MsoNormal" style="margin-left: 0.25in">System Administrator.</p>
]]></content:encoded>
			<wfw:commentRss>http://linwinsysadmin.com/blog/linux/php-fatal-error-ioncube-loader-the-loader-must-appear-as-the-first-entry-in-the-phpini-file-in-unknown-on-line-0.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>How do you repair a corrupt MySQL table?</title>
		<link>http://linwinsysadmin.com/blog/MySql/how-do-you-repair-a-corrupt-mysql-table.html</link>
		<comments>http://linwinsysadmin.com/blog/MySql/how-do-you-repair-a-corrupt-mysql-table.html#comments</comments>
		<pubDate>Sun, 08 Jul 2007 16:05:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[MySql]]></category>

		<guid isPermaLink="false">http://blog.linwinsysadmin.com/?p=11</guid>
		<description><![CDATA[Hello,
Error: Table ‘tbl_ name’ doesn’t exist databasename_tablesname.frm can’t open
If you get either of the following errors, it usually means that no table exists in the current database with the given name:
Table ‘tbl_name’ doesn’t exist
Can’t find file: ‘tbl_name’ (errno: 2)
A ) In some cases, it may be that the table does exist but that you are [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>Error: Table ‘tbl_ name’ doesn’t exist databasename_tablesname.frm can’t open</p>
<p>If you get either of the following errors, it usually means that no table exists in the current database with the given name:</p>
<p>Table ‘tbl_name’ doesn’t exist</p>
<p>Can’t find file: ‘tbl_name’ (errno: 2)</p>
<p>A ) In some cases, it may be that the table does exist but that you are referring to it incorrectly:</p>
<p>Because MySQL uses directories and files to store databases and tables, database and table names are case sensitive if they are located on a file system that has case-sensitive filenames.</p>
<p>Even for file systems that are not case sensitive, such as on Windows, all references to a given table within a query must use the same letter case.</p>
<p>B ) In some cases, it may be that the table exist but same error occurs then</p>
<p>1 ) Check the permission and ownership of database i.e. it should be same below</p>
<p>drwx—— 2 mysql mysql cpanelusername_dbname.</p>
<p>2) If the permission are corrects but same error occurs then it seems that your database table may be corrupts then there are following way to repair the DB</p>
<p>a) Go to whm &gt;&gt;SQL Services &gt;&gt; Repair a Database &gt;&gt; select database name and click Repair Database.</p>
<p>b) Go to cpanel &gt;&gt; mysql section MySQL Account Maintenance &gt;&gt; search database then click on Repair.</p>
<p>C) You can repair it though shell when mysqld server is running</p>
<p>i) login in mysql to that particular user by using following command</p>
<p>mysql&gt;mysql –u databaseusername –p databasename</p>
<p>ii) select particular database</p>
<p>mysql&gt; use databasename;</p>
<p>iii) Check whether database table is corrupted or not if following command output shows null value then it should be corrupts otherwise it is fine</p>
<p>mysql&gt;show table status like ‘table name’\G; Or<br />
mysql&gt;check table tablename ;</p>
<p>iv)If it is corrupts then use the following command to repair that particular database table.</p>
<p>mysql&gt;repair table tablename;</p>
<p>D] You can repair it though shell when mysqld server is not running</p>
<p>Repairing MyISAM mySQL Tables/Databases:</p>
<p># cd /var/lib/mysql/DBNAME</p>
<p># myisamchk tablename.MYI</p>
<p>Repairing ISAM mySQL Tables/Databases:</p>
<p># cd /var/lib/mysql/DBNAME<br />
isamchk tablename.MYI<br />
where</p>
<p>-c –&gt; check database is corrupted or not<br />
-r –&gt; recorver<br />
-o –&gt; optimise the database</p>
]]></content:encoded>
			<wfw:commentRss>http://linwinsysadmin.com/blog/MySql/how-do-you-repair-a-corrupt-mysql-table.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
