1. When making a thread, please tag your thread accordingly using the menu to the left of the textfield where you name your thread where applicable. Server Advertisements and Mod Releases should be contained to their respective subforums.

Tutorial Starbound Web CP - Nightlies (LIVE DEMO / DL)

Discussion in 'Multiplayer' started by Tinderlight, Dec 21, 2013.

  1. Tinderlight

    Tinderlight Astral Cartographer

    The config is in /config dir inside the starbound panel
     
  2. Tinderlight

    Tinderlight Astral Cartographer

    Demo server may be slow for the next few days, we are having network issues at the datacenter :'(
     
  3. Snowpup

    Snowpup Giant Laser Beams

    Yeah it doesn't read the config file at all btw. It still tries to use your configuration paths, no matter what you change it to.
     
  4. Tinderlight

    Tinderlight Astral Cartographer

    If you change the paths in the two config files it will 100% read to thoes paths there are no hard coded paths anymore, if it didnt read the config it would not have any path at all and you'd get errors about file not found, it uses a variable from there so there is no way to change that. If you are getting errors with permissions chmod your server folder to 775 and if you STILL get issues allow www-data or apache access to read write

    chmod -R 775 starbound

    and if you still get errors

    chown -R apache:apache starbound

    if you run starbound as a root user chowning to apache will cause no errors :)

    for instance

    Code:
                        include('../config/config.php');
                        $output = shell_exec("tail -15 ${install_path}/starbound_server.log 2>&1");
                        echo $output;
    or in an bash script

    Code:
    source "$(dirname $0)/../config/config.sh";
    sh $STARBOUND_PATH/../../SteamCMD/patcher.sh
     
  5. Snowpup

    Snowpup Giant Laser Beams

    I'm not using it anymore as I have my own custom application for starting/restarting now, but when I was using it before the web-page would consistently use the original paths no matter what I changed it to. No permission errors or anything given, and I even checked to make sure U+X and 777 was on.
     
  6. Tinderlight

    Tinderlight Astral Cartographer

    Okay, you might have been using an earlier version or something. Cheers!
     
  7. se7en

    se7en Scruffy Nerf-Herder

    Hi, downloaded today ur panel but its not working properly...
    [​IMG]
    This is the info when i press RESTART server ;p
    actually STOP doesnt work so i bet Functions arent working.

    Stats are displaying properly but unfortunately the script isnt loading config files, since i see:
    [​IMG]

    and actually config files looks like that:
    [​IMG]

    My starmap web path is:
    Code:
    /var/www/starmap/
    Any solutions to that ? :D
     
  8. Tinderlight

    Tinderlight Astral Cartographer

    Did you upload the sudoers file in the setup folder? :)
     
  9. se7en

    se7en Scruffy Nerf-Herder

    yep, did:
    Code:
    sudo cp /var/www/setup/starmap /etc/sudoers.d/starmap
     
  10. Tinderlight

    Tinderlight Astral Cartographer

    Is this Ubuntu or another Debian based OS? I believe someone commented on around page 3 or 4 about !requiretty fixing this issue on Ubuntu. I might start working on Ubuntu soon so you guys will not hit these issues.
     
  11. se7en

    se7en Scruffy Nerf-Herder

    right, its ubuntu ;( so what do i need to get it worked on ubuntu? xD
     
  12. Mortalsinn

    Mortalsinn Zero Gravity Genie

    Any ETA on some sort of Windows development?
     
  13. Tinderlight

    Tinderlight Astral Cartographer

    Could you copy me the contents of this command

    Code:
    cat /etc/sudoers.d/starmap
     
  14. Tinderlight

    Tinderlight Astral Cartographer

    I'm not sure, I will not be moving on until all bugs are squashed with linux :( unfortunately most enterprise game servers do not run on Winblows so its not at the top priority, I do however see the need for small family and friend servers :) so it will be done eventually.
     
  15. se7en

    se7en Scruffy Nerf-Herder

    Code:
    USER@HOST:~$ cat /etc/sudoers.d/starmap
    Defaults:apache !requiretty
    apache ALL = (root) NOPASSWD: /usr/bin/screen
    apache ALL = (root) NOPASSWD: /usr/bin/killall
    apache ALL = (root) NOPASSWD: /usr/bin/tail
    apache ALL = (root) NOPASSWD: /usr/bin/zip
    
     
  16. Tinderlight

    Tinderlight Astral Cartographer

    Ah! Change anything that says apache in that sudoers file to say www-data since you're on ubuntu
     
  17. geokhentix

    geokhentix Scruffy Nerf-Herder

    I wrote a script to start / stop / update my game, but I want to try this again. If I can make it work I can post some kind of rough Ubuntu tutorial for people to get it working from a vanilla headless server. The CPU usage from Starmap seemed to be excessive before though; possibly because it wasn't quite working correctly. We'll see. I really love the design of Starmap and if I could I'd like to use it exclusively.
     
  18. Tinderlight

    Tinderlight Astral Cartographer

    It shouldnt use too much cpu as it is just static PHP pages but it does need a better way of querying the server especially due to starbounds issue with socket usage. Let me know anything you find! :)
     
  19. DonSeppo

    DonSeppo Orbital Explorer

    Will there be a update for this? The last Starbound Update had many changes how the Server works.
     
  20. Tinderlight

    Tinderlight Astral Cartographer

    I'll have to check out what changed and update as nessiary
     

Share This Page