Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7059267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:12:42+00:00 2026-05-28T04:12:42+00:00

Background: I’m running a Minecraft server for friends on a VPS, and I’m attempting

  • 0

Background: I’m running a Minecraft server for friends on a VPS, and I’m attempting to create a sort of “status webpage” for it, using PHP. This is the last thing I have tried to implement; I have a server up/down indicator, online time, etc.

The script I’m having trouble with is displaying a player list. Ideally, what I want to be able to do is display a list of the names of people that play on my server, colour grey the people who are offline, and blue those who are online.

Now the part I’m having an issue with:

the minecraft server jarfile is executed in a ‘screen’, labelled minecraft. To obtain the listof online players, I should be able to execute (in the screen) ‘list’, followed by enter, and it spits out a list of players.

I tried many different ways of executing the command in the screen from PHP, such as:

$online = shell_exec('screen -S minecraft -X  print "list\r"');
    echo "<pre>Players online: $online";

The result always echoed on the webpage is

Players online: No screen session found.

What am I doing wrong? MY php is abysmal (I have never learnt PHP and am learning straight off the reference), but this seems straightforward?

On a side note, what’s the best way to achieve a dynamic highlighted list of characters? An array of characters that play, and explode() and compare, or should I be writing to databases and comparing from that?

Thanks in advance everyone.

PS: for reference, website is located at http://fudgesminecraftserver.info, and you can see what’s happening right there.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:12:43+00:00Added an answer on May 28, 2026 at 4:12 am

    This is most likely a Linux permissions issue. You need to give the user running Apache (www-data ?) permission to execute command ‘screen’

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background : I am using nginx as a reverse proxy to my express server
Background I have an installation of VisualSVN on a server. under this, I have
Background: I have several builds running on a Windows Server 2003 R2 machine via
Background info: Me and a couple of friends are building this platform game in
Background: I am using node.js and express to create an API. I have implemented
Background: I'm using the (fantastic) Vim plugin python-mode , which includes the pep8 linter.
Background - I am using paramiko to put files on a bunch of remote
Background: Using unix, codeigniter from localhost. I'd like to run a controllers via a
Background I'm trying to understand matrix transformations. (Developing plugins for SketchUp using it's Ruby
Background: I have a website where people can store transactions. As part of this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.