<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
<channel>
<link>http://www.skepticats.com/lnblog/entries/2005/10/12_2121/comments/comments.xml</link>
<title>Perhaps another?</title>
<description>Perhaps another?</description>
<generator>LnBlog 0.6.3</generator>
<item>
<title>Missing line</title>
<link>http://www.skepticats.com/lnblog/entries/2005/10/12_2121/comments/#comment2005-10-13_000201</link>
<description>
<![CDATA[<p>File lib/nativefs.php doesn't work without the line</p><p>require_once('fs.php');</p><p>Otherwise the web-server spits out the fatal error message.</p>]]>
</description>
</item>
<item>
<title>Parameters in fsconfig.php ...</title>
<link>http://www.skepticats.com/lnblog/entries/2005/10/12_2121/comments/#comment2005-10-13_000931</link>
<description>
<![CDATA[<p>...seem to be hard-wired and aren't modified during installation.</p>]]>
</description>
</item>
<item>
<title>Cannot create blog</title>
<link>http://www.skepticats.com/lnblog/entries/2005/10/12_2121/comments/#comment2005-10-13_003710</link>
<description>
<![CDATA[<p>Each time I try to create a blog, the software puts its directory hierarchy into lnblog installation folder, even if I explicitly indicate blog path outside of it.</p><p>For example, lnblog installation directory is &quot;d:apacheapache2htdocslnblog&quot;. No matter how I try to create a new blog in &quot;d:apacheapache2htdocsmyblog&quot; or in &quot;<a href="http://myhost/myblog&quot;">http://myhost/myblog&quot;</a> the thing again puts blog directory tree inside the lnblog installation directory.</p><p>Maybe, I'm doing something wrong?</p><p>Another problem with paths I've encountered already in v0.3.4, is as follows. The configuration engine inserts part of root paths into root URLs. For example, INSTALL_ROOT_URL for &quot;d:apacheapache2htdocslnblog&quot; would we written in config file as '<a href="http://myhost/Apache/Apache2/htdocs/lnblog/'.">http://myhost/Apache/Apache2/htdocs/lnblog/'.</a> The same for BLOG_ROOT and BLOG_ROOT_URL. I had to edit configs manually to make the thing work.</p><p>P.S. By the way check out fsconfig.php for ...errr... personal info in the zip you've made available for downloading.</p>]]>
</description>
</item>
<item>
<title>Comments engine doesn't handle backslashes correctly</title>
<link>http://www.skepticats.com/lnblog/entries/2005/10/12_2121/comments/#comment2005-10-13_003936</link>
<description>
<![CDATA[<p>In my previous posting I've written the path &quot;d:  apache  apache2  htdocs  lnblog&quot; with backslashes and they've disappeared.</p>]]>
</description>
</item>
<item>
<title>Re: Missing line</title>
<link>http://www.skepticats.com/lnblog/entries/2005/10/12_2121/comments/#comment2005-10-13_072256</link>
<description>
<![CDATA[<p>Thanks for pointing that out to me.  I hadn't tested the native filesystem access yet.  That one's an easy fix.</p>]]>
</description>
</item>
<item>
<title>Re: Parameters in fsconfig.php ...</title>
<link>http://www.skepticats.com/lnblog/entries/2005/10/12_2121/comments/#comment2005-10-13_073054</link>
<description>
<![CDATA[<p>I'm not sure what you mean.  Yes, the parameters are all defined constants in a PHP file.  However, the fsconfig.php file itself is actually *created* by the setup program.  If for any reason you need to change the parameters, simply delete the file and when you go to the admin page, LnBlog will ask you to enter the parameters again.  The reason I made the parameters constants in a PHP file is that constants are eawsily and globally accessible and that the contents of PHP files can't be retreived via HTTP.</p>]]>
</description>
</item>
<item>
<title>Re: Cannot create blog</title>
<link>http://www.skepticats.com/lnblog/entries/2005/10/12_2121/comments/#comment2005-10-13_084519</link>
<description>
<![CDATA[<p>Doh, forgot to delete that!  Thanks for the heads up.  I've updated the zip file.  Fortunately, that's just the data from my test server, not from the publicly accessible server, so no real harm done.  I guess this is a good sign that it's time to automate the distribution process, huh?</p><p>As for your problems, I think I've figured it out.  I think your DOCUMENT_ROOT in the userdata/fsconfig.php file is incorrect due to PHP's magic_quotes_gpc setting being turned on combined with the fact that you're running on Windows.  Strange, I know, but that's the only way I could reproduce the problem.</p><p>Apparently, when magic_quotes_gpc is turned on, the backslashes in the Windows path get double-escaped (don't ask me how, because I don't know yet).  You can see this in fsconfig.php - each part of the path is separated by four backslashes, when it should actually be only two (because of the double-quotes that enclose the string).  This is compounded by the fact that the stripslashes() function that I used to compensate for magic_quotes_gpc isn't as smart as I would have hoped.  It not only strips the extra slashes added by magic_quotes_gpc, it also strips slashes in Windows paths!  This doesn't effect UNIX systems and I had magic_quotes turned off on the Windows machine I test on, so I never noticed it before.</p><p>I'll have to fix this for the next release.  In the mean time, the quick fix is to turn off magic_quotes_gpc (and possibly the other magic quotes stuff) in your php.ini file.  If you don't want to do it system-wide, I think you can also turn it off in a .htaccess file.</p>]]>
</description>
</item>
<item>
<title>Re: Comments engine doesn't handle backslashes correctly</title>
<link>http://www.skepticats.com/lnblog/entries/2005/10/12_2121/comments/#comment2005-10-13_085030</link>
<description>
<![CDATA[<p>Sorry.  It looks like this is another case of the stripslashes() function stripping not just the &quot;magic&quot; slashes, but also the slashes in Windows paths.  It should start working again once I turn off magic_quotes for my blogs.  It's looking like I'm going to have to write a replacement for stripslashes().</p>]]>
</description>
</item>
<item>
<title>Paths again</title>
<link>http://www.skepticats.com/lnblog/entries/2005/10/12_2121/comments/#comment2005-10-14_001442</link>
<description>
<![CDATA[<p>Yes, I'm running it on Windows. Unfortunately most of the stuff I have to write here is for Windows. :( Got used to and loved Linux/BSD too much when studied in Uni.</p><p>So, back to subject. Even if I try and enter my DOCUMENT_ROOT value with straight slashes (d:/Apache/Apache2/htdocs; and that's how it's stored in this case in userdata/fsconfig.php), the described problem with creating a blog persists (new blog directory hierarchy is created in the lnblog installation directory).</p><p>Seems like smth's wrong with nativefs plugin. I'm trying to figure out what's up, too.</p>]]>
</description>
</item>
<item>
<link>http://www.skepticats.com/lnblog/entries/2005/10/12_2121/comments/#comment2005-10-14_001736</link>
<description>
<![CDATA[<p>Hope, you've taken measures to make the info I was talking about an outdated one, haven't you? ;-)</p>]]>
</description>
</item>
<item>
<title>Re: No Subject</title>
<link>http://www.skepticats.com/lnblog/entries/2005/10/12_2121/comments/#comment2005-10-14_075353</link>
<description>
<![CDATA[<p>Yeah.  I was way over-due for a change in that department anyway.  And there's nothing like a really stupid blunder to motivate change.</p>]]>
</description>
</item>
<item>
<title>Re: Paths again</title>
<link>http://www.skepticats.com/lnblog/entries/2005/10/12_2121/comments/#comment2005-10-14_081155</link>
<description>
<![CDATA[<p>Two things on this.  First, you should stick to the backslashes, because with the current code, forward slashes will mess up the localpath to URL calculation.  Just replace each of those forward slashes with a double backslash in your fsconfig.php and you should be good.</p><p>Second, what does the file security on your web root look like?  You may have missed this in the readme, but if you're using native file writing, you will need to either manually create the blog directories and set them world-writable *before* you create the blog (so that LnBlog can write the blog files there), or you will have to make your entire web root world-writable (so that LnBlog can create the blog directory).  I've noticed that if the blog creation code cannot create the blog directory, then it seems to fall back to the current directory (i.e. the installation root), so that could be what you're seeing.  I'm not entirely sure why that is yet, but I'll have to add some error handling code to throw up a message when that happens.</p>]]>
</description>
</item>
</channel>
</rss>