Woehoe!
After a few hours and lots of reading and trying out I finally have newznab running on Amahi!
Here is how I have done it based on the information provided earlier by laptopfreek0 (
http://bugs.amahi.org/issues/991):
1. Change settings in php.ini
-
- Make changes to match the following:
Code: Select all
memory_limit = -1
max_execution_time = 120
date.timezone = Europe/London
2. Create a new web-app:
- hda.yourhda.com, then go to: setup -> applications -> webapplications
- Add a new web app by the name: newznab.
You have created a new web-app called: newznab. Now you need to change the root directory where your server can find the landingspage for newznab.
3. Change root directory
- SSH into your HDA.
- in my case: nano /etc/httpd/conf.d/1010-newznab.conf , and change the original to make sure it looks like this:
Code: Select all
<VirtualHost *:80>
ServerName newznab
ServerAlias newznab.amahi.com
DocumentRoot /var/hda/web-apps/newznab/www
<Directory "/var/hda/web-apps/newznab/www">
Options Indexes FollowSymLinks +ExecCGI
AddHandler fcgid-script .fcg
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/hda/web-apps/newznab/logs/error_log
CustomLog /var/hda/web-apps/newznab/logs/access_log combined env=!dontlog
</VirtualHost>
4. Now you can properly install Newznab (
http://www.newznab.com
- Download a copy of Newznab
http://www.newznab.com/download.html
- Extract the zip file and put it in: /var/hda/web-apps/newznab/, the most easy way to do this is by making the directory a samba share.
5. At last to sort out some permission issues run the following:
Code: Select all
sudo chmod 777 /var/www/newznab/www/lib/smarty/templates_c
sudo chmod 777 /var/www/newznab/www/covers/movies
sudo chmod 777 /var/www/newznab/www/covers/music
sudo chmod 777 /var/www/newznab/www
sudo chmod 777 /var/www/newznab/www/install
sudo chmod 777 /var/www/newznab/nzbfiles/
And finally restart httpd:
Now Newznab should be ready to be configured on :
http://newznab.yourhda.com.
This how to gives an good example how you can configure newznab
http://www.howtogeek.com/120285/how-to- ... t-indexer/.
This information is necessary for the configuration of newznab on an Amahi machine:
Username and password for amahi's mysql database:
Code: Select all
Username: root
Password: hda
Database: demo_development
Good luck!