Installing A basic Newznab+ with XAMPP on Windows
This is only a short guide. I hope to expand on it, but it needs to be written fast. Please note this is a VERY QUICK install, and does not include the plethora of extras you can add to Newznab (but you can add these after if you want). I’m also going to assume this is your only website running on that machine. I’m going to show you Installing Newznab on Xampp.
Please be aware this guide is for Newznab Plus, the donated version. The free version really isn’t worth it if you want to actually index stuff. The donated version comes with all the regex’s you need to properly process the releases. You can get your plus ID from http://www.newznab.com
It’s very easy to install Newznab on Windows.
Download xampp (I’m not going to show you how to do this, just do the defaults. You can get it at:
Download Tortoise SVN – Same as above
Once you’ve got XAMPP installed and Tortoise SVN you need to check out the Newznab jazz from SVN. Use the SVN details provided in your sign up email.
You need to right click where you want to check it out. I’m going to do it to the default XAMPP install dir
Once you’ve got all the files checked out, (sweeeeet) it’s time to start configuring. You need to setup an mysql root password with your xampp install. To do that go to http://localhost/security/index.php – In there you can set a password. Once done lets do a few jobs in Apache.
Find your apache .conf (by default: C:\xampp\apache\conf\httpd.conf)
Change your document root to suit the new filesystem:
Change it to:
Sorted, woo. Now enable allowoverrides to all
AllowOverride ALL Require all denied
Sweet. Now restart Apache from the XAMPP control panel.
Now it’s time to start the install. Go to http://localhost/install
You should see the newznab page.
Click Start Preflight checks.
You’ll probably get a couple of ‘check on these badboy’ type errors such as:
That’s fine. We’ll fix these. Find your php.ini (C:\xampp\php\php.ini) and update the following (change them depending on your own system resources. I’ve got a lot of ram, so i’m happy to give it a fair whack – Just use common sense). We’ll also update error_reporting whilst we’re in here.
max_execution_time = 120
memory_limit = 1024M
error_reporting = E_ALL & ~E_STRICT
Awesome. Now restart apache using the xampp control pannel.
Now comes the DB settings. I’m just using the basic root information we setup in xampp security. You can change this to be whatever you’re happy with. If you have no idea what’s going on, just use root and the password you set earlier.
Then click create database jazz. Rad.
Made it this far? Awesome. I’m oh-so-proud of you. Now it’s time to add your Usenet Server Settings. I’m sure you don’t need a screenshot of this, it’s very simple. Then click next.
Caching goes beyond the realm of this guide, so I’m going to ignore it. If you need caching (Only really if you’re having more than a few users) Give it a try, if you get stuck ask in #newznab on synirc.
Once you’ve said none, setup an admin user.
The default path for NZBs should be fine. If you need to change it…change it!
Woah, we did it. Your newznab server is installed! Radical man. You’ll want to go through the admin ‘Edit Site’ page and change it to be what you want. You should also remove (or at least rename the install folder now). Also please add your NN ID in site-edit if you want all the regexs!
Lets get some mother flipping releases in this beach shall we! It’s very simple. Lets first of all make sure it works!
To download the regex’s you want give running update_releases.php a go. Using CMD prompt navigate to the misc/update scripts folder and use the newly got php.exe to run the script.
cd C:\xampp\htdocs\nnplus\misc\update_scripts C:\xampp\php\php.exe update_releases.php
You should see it list the regex number for your nnplus and it’ll say created 0 releases.
Lets activate some groups first. Go to http://localhost/admin/group-list.php and activate one. I’m going to choose one at random for this test. Activate any groups you want to index. But i’d recommend you play around with one group to get how it works before you start adding all of them! I’ve activated alt.binaries.teevee.
Once activated. Time to do the same as above but with the update_binaries.php
cd C:\xampp\htdocs\nnplus\misc\update_scripts C:\xampp\php\php.exe update_binaries.php
Sweeet it works! Now it’s finished run update_releases again to create the releases.
All that’s left to do on a basic site is get the batch scripts working. Go to C:\xampp\htdocs\nnplus\misc\update_scripts\win_scripts and edit runme.bat with your path to php (before the lines such as php.exe update_database_version.php. Whever eve it has php.exe change before it to be:
Don’t forget to do it for all of them!
Well now just run the runme.bat and leave it…it’s running! Huzzah, you did it!
Theres a LOT more you can do with newznab. This is a basic install.
Any issues, #newznab on synirc.net.
Like this Article? Share it!
About the Author
Tom's a developer who has a love of all things technical. 7TB For the fileserver just isn't enough for him these days. You can usually find him buying things he doesn't need or watching Reading FC.