I followed you "how to" for installing newznab and all went well until I tried to log on to "localhost/install" were I got an error message telling me I did not have permission for "Install" what to do next?
No permission for localhost/install(11 posts)
I figured it out. He left out the following:
sudo chown www-data /var/www/newznab/ -R
This sets the permissions, then I just did an Apache restart for good measure:
sudo /etc/init.d/apache2 restart
**edit** I forgot the -R on the chown
Well I'm still way deep in the woods. He suggest running a "update_releases" php file which at first I could not do because I did not have permission. I then logged as super user and was able to run the scritp. It returned an error message as follows "Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocated 12288) in /var/www/newsnab/www/lib/release.php on line 110" the water is getting deep bubble bubble bubble...
from terminal type su and hit enter, this will put you in super user mode. you will then be able to follow the rest of the directions.
as far as memory goes- try editing your apache php.ini
sudo nano /etc/php5/apache2/php.ini
and find memory_limit and set it so
memory_limit = -1
If you configured it to be 256 apache might be running out of resources. Or you're just actually out of mem on your server.
I followed step 3 from the newznab install
Next you will want to get the latest headers. This should be done from the command line, using the linux or windows shell scripts found in /misc/update_scripts/cron_scripts (or batch_scripts for windows users), as it can take some time. If this is your first time dont bother with the cron/init scripts just open a command prompt...
This went off without a hitch, but when i get to step 4:
After obtaining headers, the next step is to create releases. This is best done from the command line using the linux or windows shell scripts found in /misc/update_scripts/cron_scripts (or batch_scripts for windows users). If this is your first time dont bother with the cron/init scripts just open a command prompt...
But it is unsuccessful. I get the following error:
Starting release update process (2012-12-21 20:08:02)
Error Regex File Does Not Exist or Unable to Connect
Can't seem to figure this out, so if you get to this point or figure out a workaround, let me know. Thanks!
NM, figured it out
If you're having trouble finding search results or getting the error mentioned above (Error Regex File Does Not Exist or Unable to Connect) you need add a regex.
You need to:
mysql -u USERNAME -p DATABASENAME < latestregex.sql
Also, something I noticed... your working directory was /var/www/newsnab/www/lib/release.php
It'd probably be a lot easier for you to use newznab instead of newsnab with an s beacuse you'll have to manually go in and change your working scrip directories to newS instead of Z. just seems like that would be a real PITA to me.
This topic has been closed to new replies.