Tuesday 29 January 2013

Newznab PHP Memory Errors

Since the last big update have started to have Newznab crash out with the old "Allowed memory size exhausted" error so have edited the following scripts:


sudo nano /etc/php/cli/php.ini

Look for memory_limit, and either set it to 256MB, or -1 for no limit:
memory_limit = -1

(I had it set to 256M but now trying -1...systems has 1GB in total ram on the virtual)

Also

apache php.ini
sudo nano /etc/php5/apache2/php.ini

and find memory_limit and set it so
memory_limit = -1

Monday 21 January 2013

Newznab Updates ***New***

**Update Vr1.1***

Please note that if you do not run number 5 below then your site will break...leaving lots of nice blank pages to look at...which depending on if you enjoy watching snowstorms could be quite fun!

Well they have been coming thick and fast!

Here's a quick breakdown of what I did and all ran pretty smooth:

SVN Update currently showing alt revision of 2707

1.   svn update (in /var/www/newznab/)

2.   Deleted cached files:
...nnplus\www\lib\smarty\templates_c\
(ubuntu so rm *.* in above folder)

3.   DIDN'T import the new regex.sql or schema.sql
(this would overwrite your database)

4 Checked my "php.ini" file for this line and made sure it was active
extension=php_mysqli.dll

5 Ran the database conversion script:
...nnplus\misc\update_scripts
php update_database_version.php 

Results:

...executing patch 2012_12_29_anidb.sql
...executing patch 2013_01_04_host.sql
...executing patch 2013_01_05_category.sql
...executing patch 2013_01_05_unused_parts_index.sql
...executing patch 2013_01_14_nzb2nfo.sql
...executing patch 2013_01_17_templates.sql
...executing patch 2013_01_18_users.sql
...executing patch 2013_01_19_partsbinco1.sql

Sunday 6 January 2013

NewzNab Plus Blacklists

Version 2

Here's how mine is setup, comments would be nice. Here's a link for the text file & sql import versions:

Blacklist Download



Since implementing this, I've had no memory issues especially regarding the hdnectar HUGE blueray rips that were constantly crashing my box!