<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Lampwrights Forum</title>
		<link>http://www.lampwrights.com/</link>
		<description>A forum for Linux Apache MySQL and PHP</description>
		<language>en</language>
		<lastBuildDate>Sun, 05 Sep 2010 20:28:14 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>10</ttl>
		<image>
			<url>http://cdn.lampwrights.com/images/misc/rss.jpg</url>
			<title>Lampwrights Forum</title>
			<link>http://www.lampwrights.com/</link>
		</image>
		<item>
			<title>Vb Bridge errors?</title>
			<link>http://www.lampwrights.com/showthread.php?t=27&amp;goto=newpost</link>
			<pubDate>Mon, 23 Aug 2010 20:17:29 GMT</pubDate>
			<description>Hello, I installed wordpress and vb4 with the vb bridge you guys made, it worked great and now for no reason (i didnt edit anything) it wont work...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hello, I installed wordpress and vb4 with the vb bridge you guys made, it worked great and now for no reason (i didnt edit anything) it wont work now!<br />
I get these errors,<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><b>Warning</b>:&nbsp; chdir() [<a href="http://lith-harbor.com/function.chdir" target="_blank">function.chdir</a>]: No such file or directory (errno 2) in <b>/home/maplenex/public_html/lithharbor/wp-content/plugins/vbbridge.php</b> on line <b>40</b><br />
<br />
<b>Fatal error</b>:&nbsp; Cannot redeclare get_userdatabylogin() (previously&nbsp; declared in&nbsp; /home/maplenex/public_html/lithharbor/wp-includes/pluggable.php:214) in <b>/home/maplenex/public_html/lithharbor/wp-content/plugins/functions_vbbridge.php</b> on line <b>33</b></code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->Can I plrase get help? Thanks in advance<br />
<br />
(Site: <br />
<a href="http://lith-harbor.com" target="_blank">http://lith-harbor.com</a><br />
forums<br />
<a href="http://lith-harbor.com/forum" target="_blank">http://lith-harbor.com/forum</a></div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.lampwrights.com/forumdisplay.php?f=4">PHP</category>
			<dc:creator>l1l j0k</dc:creator>
			<guid isPermaLink="true">http://www.lampwrights.com/showthread.php?t=27</guid>
		</item>
		<item>
			<title>Apache Umask and Writeable Files</title>
			<link>http://www.lampwrights.com/showthread.php?t=26&amp;goto=newpost</link>
			<pubDate>Wed, 18 Aug 2010 12:20:14 GMT</pubDate>
			<description>Had an interesting issue arise this week.  A couple servers I administer are loaded with many individual sites.  Eventually root will create a file...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Had an interesting issue arise this week.  A couple servers I administer are loaded with many individual sites.  Eventually root will create a file in one of these sites and when the user of that site logs in via FTP, they cannot modify the file (they do not own it).  As a part of our weekly maintenance, we would go through each site and recursively CHOWN all the files to the proper ownerships.  This though did not take into consideration files created by Apache.  For example, a PHP script may create a directory somewhere.  Once you change the ownership, even if the the user belongs to the Apache group, the directory becomes unwriteable to Apache.<br />
<br />
After some searching I found a way around this.  Set the umask variable to 002.  It depends on your flavor of Linux but with CentOS and Redhat, you just add this to your /etc/sysconfig/httpd file:<br />
<br />
<!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">umask 002</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->Now when a file or directory is created the group bit will be set writable, example: 7<b>7</b>5. <br />
<br />
This still allows us to change ownerships weekly, but still keeps files created by Apache writeable for Apache.</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.lampwrights.com/forumdisplay.php?f=2">Apache</category>
			<dc:creator>Jeff</dc:creator>
			<guid isPermaLink="true">http://www.lampwrights.com/showthread.php?t=26</guid>
		</item>
		<item>
			<title><![CDATA['rn' in text output]]></title>
			<link>http://www.lampwrights.com/showthread.php?t=25&amp;goto=newpost</link>
			<pubDate>Fri, 13 Aug 2010 22:05:13 GMT</pubDate>
			<description><![CDATA[Hi, 
  
I'm running worldwide classifieds (which i paid for a fews back) and it gives 'rn' (i assume for return)in the output of any advert text...]]></description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hi,<br />
 <br />
I'm running worldwide classifieds (which i paid for a fews back) and it gives 'rn' (i assume for return)in the output of any advert text where a user enters a line break by using the enter key.<br />
 <br />
This starting happening some time ago, i think when my host upgraded php and/or mysql version.<br />
 <br />
Any help to fix this would be really great.<br />
 <br />
John</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.lampwrights.com/forumdisplay.php?f=4">PHP</category>
			<dc:creator>john</dc:creator>
			<guid isPermaLink="true">http://www.lampwrights.com/showthread.php?t=25</guid>
		</item>
		<item>
			<title>When Indexes Attack</title>
			<link>http://www.lampwrights.com/showthread.php?t=24&amp;goto=newpost</link>
			<pubDate>Mon, 09 Aug 2010 22:13:19 GMT</pubDate>
			<description>I have been having a problem with one MySQL server lately that is hosting a few databases but one in particular with millions of rows of Vbulletin...</description>
			<content:encoded><![CDATA[<!-- BEGIN TEMPLATE: postbit_external -->
<div>I have been having a problem with one MySQL server lately that is hosting a few databases but one in particular with millions of rows of Vbulletin posts and threads.  During some queries it would hang in a &quot;Copying to tmp table&quot; state.  This was driving me crazy.  I could isolate the query and although it was not the most efficient one it should not have bogged things down this bad.  After much searching I came across <a href="http://timothymahoney.com/2010/01/if-the-mysql-server-hangs-with-the-state-copying-to-tmp-table/" target="_blank">this guys post</a> who was having the same problem.<br />
<br />
I began checking the table designs for the post and thread tables and sure enough there were some non-standard indexes there.  There have been a few previous administrators of this database so it is quite possible they modified it in the past.  I saw many duplicate indexes and removed the ones that did not come stock with VB.  Restarted mysql and rebuilt the tables.  The query that would take 500 seconds to complete was now finishing in under 2 seconds.  <br />
<br />
If you are having this problem and are lost, CHECK YOUR INDEXES!</div>


<!-- END TEMPLATE: postbit_external -->]]></content:encoded>
			<category domain="http://www.lampwrights.com/forumdisplay.php?f=3">MySQL</category>
			<dc:creator>Jeff</dc:creator>
			<guid isPermaLink="true">http://www.lampwrights.com/showthread.php?t=24</guid>
		</item>
	</channel>
</rss>
