1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Running PHP Script

Discussion in 'Instagram' started by scholl, May 19, 2016.

  1. scholl

    scholl Registered Member

    Joined:
    Oct 14, 2015
    Messages:
    52
    Likes Received:
    4
    Hi guys,

    I coded myself a small bot using an php library, now that i tested it about 1-2 months on my laptop i'm thinking about buying an raspberry pi to run it 24/7 on there.

    I want to run my script for about 5 accounts at the moment
    1.) What raspberry PI version do i need for that purpose can i use "zero" ?
    2.) What else do i have to take care about, probably an sd card and power?
    3.) Do you have any suggestions, i'm new to this raspberry stuff so i dont really know what i could have forgotten

    i hope you can help me, maybe someone is already using an raspberry pi ?

    Scholl
     
  2. Des_cartes

    Des_cartes Junior Member

    Joined:
    Jan 19, 2012
    Messages:
    160
    Likes Received:
    64
    Why do you want to run it on a raspberry PI instead of using something like DigitalOcean?
    Anyway you'll also need a USB Wifi dongle unless you buy the Raspberry Pi 3 and of course being familiar with the Linux CLI.
     
  3. Morpheus696

    Morpheus696 Registered Member

    Joined:
    Apr 11, 2016
    Messages:
    90
    Likes Received:
    40
    Gender:
    Male
    Occupation:
    I do stuff, people pay me.
    Location:
    /dev/null
    Raspberry pi 2 or 3 and yes an SD card and power (its low power you shouldn't notice too much (if any) spikes in utility bills)

    My advice is use raspbian for your OS its based off of Debian

    I'm quite good with GNU/Linux if you have any more questions post here and I will try to answer.
     
  4. scholl

    scholl Registered Member

    Joined:
    Oct 14, 2015
    Messages:
    52
    Likes Received:
    4
    Thanks guys, both of you talk about raspberry pi 2 or 3, can u tell me why not the zero version?
    I'm have basic linux knowledge but do you have skype so i can message you if i have major problems?
     
  5. Morpheus696

    Morpheus696 Registered Member

    Joined:
    Apr 11, 2016
    Messages:
    90
    Likes Received:
    40
    Gender:
    Male
    Occupation:
    I do stuff, people pay me.
    Location:
    /dev/null
    Why would you want the zero version? There is progress for a reason. The 2+ and 3 are more powerful and loaded with more features than zero. It might not be an issue now but you might wish you did everything on the 2 or 3 later on rather than have to migrate everything.

    If you already have the zero then use the zero version. Also pm'd skype if you have any major issues.
     
  6. Des_cartes

    Des_cartes Junior Member

    Joined:
    Jan 19, 2012
    Messages:
    160
    Likes Received:
    64
    You can go with the Zero but at the end you'll pay an extra ~$20 for a wifi dongle or ethernet hub, so buy the 3 you'll have a better processor, more ram and a built-in Wifi and Ethernet port.
    And I'm 90% sure the zero is out of stock everywhere.
     
  7. lupinus

    lupinus Newbie

    Joined:
    Oct 2, 2015
    Messages:
    47
    Likes Received:
    8
    lol thats funny, why you want running 24/7 php script on raspberry.. It is not worthed, instead buy very very cheap linux vps.
    trust me your script doesn't always work, because ig changing frequently.
     
  8. scholl

    scholl Registered Member

    Joined:
    Oct 14, 2015
    Messages:
    52
    Likes Received:
    4
    I'm kinda scared to screw it up setting up a vps, never done that before and i dont want to throw my money right out of the window if i fail
     
  9. lupinus

    lupinus Newbie

    Joined:
    Oct 2, 2015
    Messages:
    47
    Likes Received:
    8
    On vps you can just reload os to default setting. Just reload , connect ssh and you good to go.
    If you want to play linux vps find nat vps that very very cheap. Less than $1 an month.
     
  10. scholl

    scholl Registered Member

    Joined:
    Oct 14, 2015
    Messages:
    52
    Likes Received:
    4
    Are there any vps tutorials out there how to easily set one up, connect, transfer files and run the script?