Recent Topics

1 Jun 18, 2007 22:43    

My b2evolution Version: 1.9.x

Hello, I'm new to b2evo, and I've come upon a problem trying to create permalinks. I click on the permalink button at the bottom of a blog post, and I'm taken to a page which looks like it should be a permalink

http://www.starcraft2fansite.com/blogs/index.php/a/2007/06/17/concept_art

But instead it is the default page for b2evo. I have a feeling it might have to do with permissions. Possibly "Allow creation of blog stub files from the admin interface or to generate static pages for your blogs: chmod 777 path/to/blogs" I am not very familiar with unix commands and don't know how to access a unix interface for my webspace. Anyways, I modify permissions through a FTP client. Would this mean to change the root blog folder to 777? This sounds like it would make your blog editable by anyone. Please help, I just want to create permalinks!

Thanks,

-Paul

2 Jun 19, 2007 16:51

Changing the permissions to 777 essentially allows the script access to the root directory so it can create the stub files, (if there was an exploit in the script they might be able write to the root directory) but otherwise its not really an issue to worry about, b2evo has a good security record.

At the moment it looks like your blog isn't using stub files though, its calling the blogs via index.php.

Personally I manually create the stub files. What do your blog settings, and your htaccess file look like at the moment?

This is how the related parts look at the moment:

RewriteEngine on

RewriteEngine On 
RewriteCond %{HTTP_REFERER} !^http://www.starcraft2portal.com/.*$ [NC] 
RewriteCond %{HTTP_REFERER} !^http://starcraft2portal.com/.*$ [NC] 
RewriteCond %{REQUEST_URI} ^.*comment_post\.php$ 
RewriteRule .* - [F] 

# If the subject/extrapath does not match an existing file, call b2evo! 
RewriteCond %{REQUEST_FILENAME} !-s 
RewriteRule ^(news|media)(/.*)?$  $1.php

The blogs are set to 'Explicit reference to stub file' stabs are news.php or media.php

PS I'm also using b2evo for a [url=http://www.starcraft2portal.com/]StarCraft 2 site[/url]. B) Excuse the mangled nature of it at the moment I need to find some time for it.

3 Jun 20, 2007 03:54

Okay, I changed the "blogs" folder permissions to 777, and now when I click on [Gen!] in the static file column of "Blog settings" it creates a page with a static link. But this isn't a permalink is it? Will it replace the old file every time i hit [Gen!]?

I can't view the .htaccess in my root folder? The .htaccess in my blog folder looks like this

# Apache configuration for the blog folder


# this will select the default blog template to be displayed
# if the URL is just .../blogs/
<IfModule mod_dir.c>
	DirectoryIndex index.php index.html
</IfModule>


# this will make register globals off in b2's directory
# just put a '#' sign before these three lines if you don't want that
<IfModule mod_php4.c>
	php_flag register_globals off
</IfModule>

# If you're using Apache 2, you may wish to try this for clean URLs:
# AcceptPathInfo	On

daSmirnov - your site is looking great, much better than mine! This is my first blog, and I have to write much better content like yours!

P.S. I don't really understand what a "stub" file is. Please help!!


Form is loading...