[GH-ISSUE #56] [Help] about starting dev in php :) #260

Closed
opened 2026-03-15 02:42:16 +03:00 by kerem · 6 comments
Owner

Originally created by @yas9999 on GitHub (Oct 27, 2015).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/56

Hello,
first thank you so much for this awesome application ♥.
i have some question:

  • there is a documentation or ability to create a PHP code that control all features,
    something like upload file & get result.
  • there is any option to disable store files in disk & use instead stream option (that mean nothing will be stored in server side)
    -i have Ubuntu 14.04: in ~/.config/peerflix-server/torrents.json when i put option that mentioned here https://github.com/mafintosh/torrent-stream#full-api
    i get error : Undefined 2 please check this http://i.imgur.com/raReft7.png
    PS: i had found in this config file : ["c1bb97836be45ef02e24bdf7bd4e666fd37db8aa"]
    i guess it's not the right config.json

Best regards,

Originally created by @yas9999 on GitHub (Oct 27, 2015). Original GitHub issue: https://github.com/asapach/peerflix-server/issues/56 Hello, first thank you so much for this awesome application ♥. i have some question: - there is a documentation or ability to create a PHP code that control all features, something like upload file & get result. - there is any option to disable store files in disk & use instead stream option (that mean nothing will be stored in server side) -i have Ubuntu 14.04: in ~/.config/peerflix-server/torrents.json when i put option that mentioned here https://github.com/mafintosh/torrent-stream#full-api i get error : Undefined 2 please check this http://i.imgur.com/raReft7.png PS: i had found in this config file : ["c1bb97836be45ef02e24bdf7bd4e666fd37db8aa"] i guess it's not the right config.json Best regards,
kerem 2026-03-15 02:42:16 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@asapach commented on GitHub (Oct 27, 2015):

  • You can use the REST API to control most of the features.
  • I would argue that storage is cheap and by not storing the files you hurt the torrent community, because you will not be able to seed. You can try using tmpfs if you have enough memory.

Did you mean ~/.config/peerflix-server/config.json? You can't really pass the storage option in JSON, because it requires an object reference, so it's currently unsupported in peerflix-server.

<!-- gh-comment-id:151479148 --> @asapach commented on GitHub (Oct 27, 2015): - You can use the [REST API](https://github.com/asapach/peerflix-server/blob/master/REST.md) to control most of the features. - I would argue that storage is cheap and by not storing the files you hurt the torrent community, because you will not be able to seed. You can try using [tmpfs](https://www.howtoforge.com/storing-files-directories-in-memory-with-tmpfs) if you have enough memory. Did you mean `~/.config/peerflix-server/config.json`? You can't really pass the `storage` option in JSON, because it requires an object reference, so it's currently unsupported in peerflix-server.
Author
Owner

@yas9999 commented on GitHub (Oct 27, 2015):

Thank you, i still have a problem X is stopped when i click on X to close a torrent also some times when i add new magnet link please check image :
image

for config.json or else i can't change the directory to store files ?

<!-- gh-comment-id:151626639 --> @yas9999 commented on GitHub (Oct 27, 2015): Thank you, i still have a problem X is stopped when i click on X to close a torrent also some times when i add new magnet link please check image : ![image](https://cloud.githubusercontent.com/assets/5939771/10770876/8472e43a-7ce5-11e5-8527-23d2a42cb8ca.png) for config.json or else i can't change the directory to store files ?
Author
Owner

@asapach commented on GitHub (Oct 27, 2015):

So it just randomly gets killed? How much memory do you have on that machine? In my experience you need at least 512MB or better yet 1GB.

To change the path just save this as ~/.config/peerflix-server/config.json:

{
  "tmp": "/your/path/here"
}
<!-- gh-comment-id:151667746 --> @asapach commented on GitHub (Oct 27, 2015): So it just randomly gets killed? How much memory do you have on that machine? In my experience you need at least 512MB or better yet 1GB. To change the path just save this as `~/.config/peerflix-server/config.json`: ``` js { "tmp": "/your/path/here" } ```
Author
Owner

@yas9999 commented on GitHub (Nov 1, 2015):

Thank you so much !
i guess it's a memory problem i have only 512 MB,so i will try in dedicated server with 24 GB of ram,
i noticed when i added 2 magnet link with more than 1 GB file-size each i get the problem "Killed"

-GET /torrents/{infoHash}/files : will return the M3U playlist
what is M3U playlist ?

best regards

<!-- gh-comment-id:152822117 --> @yas9999 commented on GitHub (Nov 1, 2015): Thank you so much ! i guess it's a memory problem i have only 512 MB,so i will try in dedicated server with 24 GB of ram, i noticed when i added 2 magnet link with more than 1 GB file-size each i get the problem "Killed" -GET /torrents/{infoHash}/files : will return the M3U playlist what is M3U playlist ? best regards
Author
Owner

@asapach commented on GitHub (Nov 1, 2015):

24 GB is probably overkill. 4 GB should be enough for most scenarios.

M3U is a file format supported by some media players (e.g. VLC) that allows to play the whole folder at once (e.g. if you have an album or a TV series season).

<!-- gh-comment-id:152829651 --> @asapach commented on GitHub (Nov 1, 2015): 24 GB is probably overkill. 4 GB should be enough for most scenarios. [M3U](https://en.wikipedia.org/wiki/M3U) is a file format supported by some media players (e.g. VLC) that allows to play the whole folder at once (e.g. if you have an album or a TV series season).
Author
Owner

@yas9999 commented on GitHub (Nov 2, 2015):

got it :), thank you so much for help

On Sun, Nov 1, 2015 at 2:30 PM, Aliaksei Sapach notifications@github.com
wrote:

24 GB is probably overkill. 4 GB should be enough for most scenarios.

M3U https://en.wikipedia.org/wiki/M3U is a file format supported by
some media players (e.g. VLC) that allows to play the whole folder at once
(e.g. if you have an album or a TV series season).


Reply to this email directly or view it on GitHub
https://github.com/asapach/peerflix-server/issues/56#issuecomment-152829651
.

<!-- gh-comment-id:153087863 --> @yas9999 commented on GitHub (Nov 2, 2015): got it :), thank you so much for help On Sun, Nov 1, 2015 at 2:30 PM, Aliaksei Sapach notifications@github.com wrote: > 24 GB is probably overkill. 4 GB should be enough for most scenarios. > > M3U https://en.wikipedia.org/wiki/M3U is a file format supported by > some media players (e.g. VLC) that allows to play the whole folder at once > (e.g. if you have an album or a TV series season). > > — > Reply to this email directly or view it on GitHub > https://github.com/asapach/peerflix-server/issues/56#issuecomment-152829651 > .
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/peerflix-server#260
No description provided.