RomanSixty / Feed-on-Feeds

FeedOnFeeds is a lightweight server-based RSS feed aggregator and reader
http://feedonfeeds.com/
GNU General Public License v2.0
60 stars 15 forks source link

Error FATAL: couldn't open logfile /var/fof-data//fof-install.log #22

Closed debby1 closed 5 years ago

debby1 commented 10 years ago

Hi, I can't install this on my server :(

Warning: fopen(/var/fof-data//fof-install.log): failed to open stream: No such file or directory in /srv/users/mypathsite/public/fof/fof-main.php on line 85 FATAL: couldn't open logfile /var/fof-data//fof-install.log

In fof-config.php I have added Database connection information (localhost, database name user password), chose a backend: define('USE_MYSQL', 1); and tried with define('SQL_NO_TRIGGERS', 1); commented and uncommented..doesn't work, always errors :(

I try to install it also on locale with xampp but nothing, same error code.

How can I install it? Thank you in advance

fluffy-critter commented 10 years ago

It looks like you also need to set FOF_DATA_PATH to somewhere that you have write access to.

fluffy-critter commented 10 years ago

As far as fixing it in FoF, personally I think we should change the default value to something that obviously needs fixing, and then have the installer check it before it tries opening the log file and make suggestions. Ideally it should also try doing a mkdir on the directory if it doesn't exist. This would be much friendlier to users.

On a similar note, I'd probably encourage configuring it for sqlite by default - it's very rare that anyone will be installing FoF in a situation where mysql will perform any better, and there's huge advantages to sqlite from an administration and data portability perspective. My goal is to make it as easy as possible for people to get into the world of RSS and distributed social.

debby1 commented 10 years ago

Hi, thank you very much for the reply. The new path I can choose in /public/ folder? Or it's more safe in other folder, not public?

And I have double "//" in error code => /var/fof-data//fof-install.log
then I have to also delete the last "/" ?

For example => define('FOF_DATA_PATH', '/path/fof-data');

I use MySQL 5.5 (I use it also for my forum), I will have problems if I choose define('USE_MYSQL', 1); ? I'm afraid to make trouble choosing SQLite :(

Thank you again, sorry for my English

fluffy-critter commented 10 years ago

I would recommend pointing it to a directory that is NOT public, because otherwise a third party might be able to read your logs, or if you go with sqlite, get your database and use that to try to figure out your password and so on.

I'd recommend just creating a directory within your user account that's not under your public folder, and pointing it at that. Based on your error message, a good place for it might be /srv/users/mypathsite/fof-data

The double slash isn't a real problem, it just looks funky.

SQLite is completely separate from mysql, and using SQLite on one site won't affect mysql on others. In fact using SQLite in this case will be even better than mysql because then you won't end up with your FOF tables being in the same database as your forum tables. SQLite doesn't require any database administration or the like; it's just a library that stores your database in a local file instead of needing a dedicated external server.

On 2014-10-27 13:03, debby1 wrote:

Hi, thank you very much for the reply. The new path I can choose in /public/ folder? Or it's more safe in other folder, not public?

And I have double "//" in error code => /var/fof-data//fof-install.log

then I have to also delete the last "/" ?

For example => define('FOF_DATA_PATH', '/path/fof-data');

I use MySQL 5.5 (I use it also for my forum), I will have problems if I choose define('USE_MYSQL', 1); ? I'm afraid to make trouble choosing SQLite :(

Thank you again, sorry for my English

Reply to this email directly or view it on GitHub [1].

Links:

[1] https://github.com/RomanSixty/Feed-on-Feeds/issues/22#issuecomment-60659548

debby1 commented 10 years ago

Hi, thank you very much!! Now it works perfectly :D Added 200/250 Rss links (for now only from Facebook pages, also if Feed Source Site in unread posts is only "https://www.facebook.com/" and not for example "http://www.facebook.com/feeds/page.php?format=rss20&id=number-of-page" but I receive anyway feeds :D ) and works very well. Also fitler text works well.

But I don't know if my server will work if I active automatic feed updates, or it will crash for example?

Now I study how allow automatic feed updates (Crontab).

Thank you again

jamesjordan commented 10 years ago

I have my version updating using a cron job on my shared Dreamhost hosting. I can let you know my cron job string if you get stuck.

fluffy-critter commented 10 years ago

I went ahead and updated the docs on my fork, and included a quick thing on how to set up a Dreamhost cron job.

debby1 commented 10 years ago

Hi, I have added many feeds but when I click on "Update Feeds" (for now I update manually), some feed doesn't work, I have "44y" near list :( Maybe there's a limit in my PHP? Thanks

fluffy-critter commented 10 years ago

It would be helpful if you could tell us which feeds you're having problems with.

debby1 commented 10 years ago

Hi, I have added about 200-300 feeds, then I click on update feeds and I wait (I have also filter text). In some feed I have 4d, 7d, 1w, 44y or nothing and in a feed instead I have error (Entremont): https://www.facebook.com/feeds/page.php?format=rss20&id=358955634200768

cattura

Or maybe 44y and 7d mean there aren't new posts?

And sorry, another question :( How can I have Rss link from my results of FoF?

For example I have 200 feeds, 100 with filter text "recipe". I need a Rss link of 100 feeds with filter, because I'll add it to my forum (MyBB). There is this feature or some idea on where and how can I "extract" Rss link from FoF? Or export Rss?

Thank you very much :)

fluffy-critter commented 10 years ago

I wouldn't really recommend using manual updates for more than testing purposes, especially if you're trying to handle more than 30 feeds or so. That part of FoF just doesn't scale all that well.

The feed you linked to seems to have not had any posts within the last 7 days, so an indicator of '7d' makes sense. When you added the feed, did you tell it to mark 'all' entries as unread, 'today's, or 'none?' That makes a difference. If you click on the feed itself in the feed list it should show all the entries which were imported.

Also, FeedOnFeeds is a feed reader, as opposed to a republishing aggregator; it probably isn't the best solution for combining external feeds into a single feed (the only republish feed I know of is for shared items). I've written a simple feed glommer that should do what you want, although it's intended to handle 3-4 feeds, not hundreds (it needs a bit more work to make it support more than that). You might also try Planet Planet which actually was designed for what you're trying to do, although it's a pain to set up.

If all your external feeds are coming from Facebook, there might be a way to get them to just publish a composite feed from multiple sources, although I haven't looked into their API at all.

fluffy-critter commented 10 years ago

Oh, also, if you issue a manual update for the one feed that's giving an error (hovering over the δ and then selecting "update feed") it should give you a more detailed error message.

debby1 commented 9 years ago

Hi! Thank you for the reply. I'm studying how do it, I'm trying many services.

I would like to know if 600 or more links are a problem for my server or if it's only a limit of a specific Rss service (feed reader or aggregator). Maybe I need only scale update time? For example the first 10 links update every 5 minutes, the second 10 links update every 10 minutes etc.

I have also tried with feed combine services, the only seems good is ChimpFeedr (unlimited feed to combine) but I added 45 feed links and it is really slow to update.

There's an API for Facebook https://developers.facebook.com/docs/public_feed/ but I can't apply to use.. :-(

The other chance is SimplePie maybe http://www.simplepie.org/wiki/setup/sample_page or I create my own Rss feed check :D It will not be easy for me :-(

fluffy-critter commented 9 years ago

If you want assistance with other web services you should either ask on their various support forums, or try Stack Overflow since those are probably more appropriate venues than this bug reporting form. In any event this issue should be closed since your original question has been answered (and the docs have been improved on my fork, although it doesn't appear that RomanSixty's merged that change in yet).

But briefly:

FeedOnFeeds can certainly handle 600 feeds, but it's not intended to do what you want.

Planet Planet doesn't require Python CGI scripting, it just needs to be able to run Python scripts from the command line (from cron or whatever). Most webhosts will have Python installed. If you're on Dreamhost you definitely have Python (and can also run it as a CGI).

Does Yahoo! Pipes let you feed pipes into other pipes? If so you could set up multiple pipes to aggregate feeds, and then aggregate those pipes into a single feed as well.

SimplePie is the underlying library used by FeedOnFeeds. It's really good, but also heavyweight, and only handles the parsing and republication parts; it'll still be up to you to wire it all together and do the feed fetching and caching. It would be easier to just use the feed glommer I linked to earlier and add simple caching to it. If I find some time I could add that in, although keep in mind that this is a hobby project for me.

RomanSixty commented 5 years ago

Closing because issue is pretty old and diverged from the original (and answered) question.