sNews Blog on Abyss Server x1

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
Chris!
-


Joined: 08 Nov 2007
Posts: 5

PostPosted: Thu Nov 08, 2007 11:54 pm    Post subject: sNews Blog on Abyss Server x1 Reply with quote

Hi

I'm trying to get sNews running on Abyss webserver x1 ver 2.5, php ver.5.2.2 and WinXP on local machine unfortunately with out luck.

Are there anyone here there have that going ? and if could I get a copy of your setup-file ?

I try the setup as decribe in
http://www.aprelium.com/forum/viewtopic.php?t=14439&highlight=modrewrite
but with out luck.
Back to top View user's profile Send private message Send e-mail
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Fri Nov 09, 2007 12:58 am    Post subject: Reply with quote

Hey Chris. Welcome to the forums.

Here is the relevant code snippet from my abyss.conf file that should work...
http://www.moxxnixx.com/snews_rewrite.txt
Make sure you backup your conf file beforehand in case you make a mistake
and be sure to paste the above snippet in the correct section of your conf file.

After it's loaded, take a look in your console's URL Rewriting section and see
how the rules and conditions were rewritten by comparing it to the htaccess
file from snews.
Back to top View user's profile Send private message Visit poster's website
Chris!
-


Joined: 08 Nov 2007
Posts: 5

PostPosted: Fri Nov 09, 2007 2:36 pm    Post subject: Reply with quote

Hi Moxxnixx. Thanks for your quick reaction.


I made that modification in abyss.conf-file and it looks fine in Abyss console's URL Rewriting section, but sNews still not function.

Do you use that code with sNews v. 1,6 ?

My ".htaccess" file from sNews v. 1.6:
<IfModule mod_php4.c>
php_value session.use_trans_sid 0
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
RewriteEngine On
#RewriteBase /sNews16
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*) $1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+) index.php?category=$1&title=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+)/([^/]+)/ index.php?category=$1&title=$2&commentspage=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]+)/([0-9]+)/ index.php?category=$1&nbsp;articlespage=$2 [L]
Back to top View user's profile Send private message Send e-mail
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Fri Nov 09, 2007 6:55 pm    Post subject: Reply with quote

Yes. It's the latest version of snews (1.6). The rewrite rules work perfectly
with my installation.

Do you have snews as a root host or is it a sub-folder?

Please be more detailed about what is happening with your installation.
Are you getting errors? A 404? A blank page? A time out?

Can you post (or PM) a url for me to see?
Back to top View user's profile Send private message Visit poster's website
Chris!
-


Joined: 08 Nov 2007
Posts: 5

PostPosted: Fri Nov 09, 2007 10:04 pm    Post subject: Reply with quote

First page index.php is showing.

Cat folder is C:\Programmer\Abyss Web Server\htdocs\sNews16\*.*

I got sNews in this cat "http://localhost/sNews16/HERE" and when I'm try login, my browser show "http://localhost/sNews16/login/" with error 404 not found.

I don't think it's possible for you to se me site but you can try. I will post my URL to you.
Back to top View user's profile Send private message Send e-mail
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Fri Nov 09, 2007 10:41 pm    Post subject: Reply with quote

You have it in a sub-directory. That's why my rules aren't working for you.
In your console's url rewriting section, you need to change the 5 rules.

You need to add "sNews16/" after every instance of "/".
For example...
The first rule says...
Virtual Path Regular Expression: ^/(.*)
Change it to...
Virtual Path Regular Expression: ^/sNews16/(.*)

and
Redirect to: /$1
changed to...
Redirect to: /sNews16/$1

Do this for all 5 rules.
Back to top View user's profile Send private message Visit poster's website
Chris!
-


Joined: 08 Nov 2007
Posts: 5

PostPosted: Fri Nov 09, 2007 11:36 pm    Post subject: Reply with quote

You are my "man". Now it is funktion. Thank you very much for your help and very quick reaction.

In case other want to go with this nice small and very fast setup with Abyss server x1 and sNews ver. 1.6, my code snippet from abyss.conf file in the urlrewrite section, that is working, if sNews is install in sub-folder:

abyss.conf file complet:
<urlrewrite>
<rules>
<rule>
<conditions>
<condition>
<variable>
REQUEST_FILENAME
</variable>
<operator>
isfile
</operator>
</condition>
</conditions>
<pattern>
^/sNews16/(.*)
</pattern>
<casesensitive>
yes
</casesensitive>
<subrequests>
yes
</subrequests>
<redirect>
0
</redirect>
<replacement>
/sNews16/$1
</replacement>
<qsa>
yes
</qsa>
<escape>
yes
</escape>
<nextaction>
1
</nextaction>
</rule>
<rule>
<conditions>
<condition>
<variable>
REQUEST_FILENAME
</variable>
<operator>
not_isdir
</operator>
</condition>
</conditions>
<pattern>
^/sNews16/(.*)$
</pattern>
<casesensitive>
yes
</casesensitive>
<subrequests>
yes
</subrequests>
<redirect>
0
</redirect>
<replacement>
/sNews16/index.php?category=$1
</replacement>
<qsa>
yes
</qsa>
<escape>
yes
</escape>
<nextaction>
1
</nextaction>
</rule>
<rule>
<conditions>
<condition>
<variable>
REQUEST_FILENAME
</variable>
<operator>
not_isdir
</operator>
</condition>
</conditions>
<pattern>
^/sNews16/([a-z_]+)/([^/]+)
</pattern>
<casesensitive>
yes
</casesensitive>
<subrequests>
yes
</subrequests>
<redirect>
0
</redirect>
<replacement>
/sNews16/index.php?category=$1&amp;title=$2
</replacement>
<qsa>
yes
</qsa>
<escape>
yes
</escape>
<nextaction>
1
</nextaction>
</rule>
<rule>
<conditions>
<condition>
<variable>
REQUEST_FILENAME
</variable>
<operator>
not_isdir
</operator>
</condition>
</conditions>
<pattern>
^/sNews16/([a-z_]+)/([^/]+)/([^/]+)/
</pattern>
<casesensitive>
yes
</casesensitive>
<subrequests>
yes
</subrequests>
<redirect>
0
</redirect>
<replacement>
/sNews16/index.php?category=$1&amp;title=$2&amp;commentspage=$3
</replacement>
<qsa>
yes
</qsa>
<escape>
yes
</escape>
<nextaction>
1
</nextaction>
</rule>
<rule>
<conditions>
<condition>
<variable>
REQUEST_FILENAME
</variable>
<operator>
not_isdir
</operator>
</condition>
</conditions>
<pattern>
^/sNews16/([a-z0-9_-]+)/([0-9]+)/
</pattern>
<casesensitive>
yes
</casesensitive>
<subrequests>
yes
</subrequests>
<redirect>
0
</redirect>
<replacement>
/sNews16/index.php?category=$1&amp;nbsp;articlespage=$2
</replacement>
<qsa>
yes
</qsa>
<escape>
yes
</escape>
<nextaction>
1
</nextaction>
</rule>
</rules>
</urlrewrite>
Back to top View user's profile Send private message Send e-mail
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Fri Nov 09, 2007 11:56 pm    Post subject: Reply with quote

Congratulations.
I'm glad you got it working.
Back to top View user's profile Send private message Visit poster's website
mrjiles
-


Joined: 11 Sep 2008
Posts: 1

PostPosted: Thu Sep 11, 2008 8:11 pm    Post subject: Reply with quote

Anybody else got this working? I copied the url rewrite code into my abyss.conf file but it's not fully working. I can access the main page fine. All other pages have the contents of the main page, without the stylesheet. Any help?
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group