I'm trying to put together a tutorial for newbie users like myself who might need some help setting up newznab on windows. I somewhat got this going (time will tell how good it's working). A big Thanks to medoix on the IRC channel for his help!
I expect this tutorial to be a work in progress. If I missed a step or did something wrong, don't flame me, I'm just offering a bit of help for the next guy.
The instructions included with the download seemed a bit lacking for window users, especially for those of us who don't do much with php, apache, curl and other apps needed for this to work. Also I couldn't find much on this forum.
Here's the steps I did to get it working. (notice: I wasn't concerned with SSL at this time, so I didn't worry about setting it up. If this is something you are concerned about you may need some better instructions
First I installed an apache/curl/pear/php/blah blah pack.. - http://www.apachefriends.org/en/xampp-windows.html
(Dont be mislead, the download link is near the bottom where you choose if you want to download a zip/install file or 7zip) I decided on the install file
I installed to the default location c:\xampp
Next I installed TortoiseSVN which was recommended to grab newznab. http://tortoisesvn.net/downloads.html
after installing it I ran it and used the login information provided when I purchased NNPLUS (some of you not using NNPLUS may need to skip this part.. I have no idea how you download the non plus version), I nagivated to c:\xampp\htdocs and right mouse clicked where I found a new menu option (after installing tortoisesvn) and selected SVN checkout. It created a folder c:\xampp\htdocs\nnplus (YES I might have downloaded this to the wrong directory.. or perhaps could have changed it a bit.. but it didn't matter much to me. My url is http://127.0.0.1/nnplus/www
which is fine with me)
Next navigate to c:\xampp\php and open php.ini - search for "memory limit".. set at 256, next search for "minimum execution time" and set to 60. (keep php.ini open for next step)
Next I reviewed this page http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/
for setting up curl on windows box. I had to make a few adjustments. TAKE NOTE his install is d:\apps , using this setup our install dir is c:\xampp.
. You can skip "- set extensions_dir to d:\apps\php\extensions" it's all set correctly. Next in php.ini search for "register_globals =" and set to On, next search php.ini for "session.save_path =" make sure you see session.save_path = "C:\xampp\tmp"
Copy php5ts.dll (located in c:\xampp\php\) to your c:\xampp\Apache\bin folder
Copy libeay32.dll and ssleay32.dll (located in c:\xampp\php\) to c:\windows\system32
download curl.exe from http://curl.haxx.se/download.html
- I used win32 generic - I put curl.exe in c:\xampp
[Windows XP Install Only] Check to see if you have the following file: c:\windows\system32\msvcr70.dll. If not, search for it in Google and download it to system32. You may get error messages without it. ( I didn't have a problem with this.. I am using windows 2008 )
Uncomment the curl line in your php.ini file to enable curl: extension=php_curl.dll
I skipped the rest of steps on that curl page, PHP was working fine so I didn't need to mess with that.
in php.ini search for "E_ALL | E_STRICT" and change to E_ALL ^ E_STRICT
save php.ini - restart apache (you can use xampp control panel (located in your taskbar near the clock) to stop and start the service.
You will need to add c:\xampp\php to your system variable path (right click my computer - properties - advanced system settings - advanced - Environment Variables... in the system variables find PATH, double click and at the very end add c:\xampp\php
Now continue with the steps provided from the INSTALL.TXT file from newznab:
3) Browse to http://yournewznabserver/install
. (the example above.. or mine was http://184.108.40.206/nnplus/www/install
refer to the list of requirements above if you encounter any errors during install, or the FAQ in the README
4) Once installed activate only one or two groups to test with first (a.b.linux.iso is a good choice), this
will save you time if it is not working correctly.
5) Run the update_binaries.php and update_releases.php scripts in \misc\update_scripts\ via command-line.
6) If updating was successful then you can continue to setup your site and configure the update scripts for
auto-updating. windows users use the script /misc/update_scripts/win_scripts/runme.bat
THIS SHOULD GET YOU UP and running unless I over looked something.. Please comment if this has helped you or if I left something out. I will try my best to help in any way I can.
Hope this helps someone!