How-To Geek Forums / Linux
No permission for localhost/install
(11 posts)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.
----
My problem:
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...
cd newznab/misc/update_scripts
php update_binaries.php
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...
cd newznab/misc/update_scripts
php update_releases.php
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:
cd /tmp
wget https://raw.github.com/kop1/newznab/master/db/latestregex.sql
mysql -u USERNAME -p DATABASENAME < latestregex.sql
then
cd /var/www/newznab/misc/update_scripts
php update_releases.php
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.
