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'm in the process of creating a web service using ASP.NET 2.0. This
Background: At my company we are developing a bunch applications that are using the
Background I am writing and using a very simple CGI-based (Perl) content management tool
Background I am trying to create a copy of a business object I have
Background I have been asked by a client to create a picture of the
Background: My organization uses Microsoft .Net (3.5) with SQL Server 2005 as back end.
Background info: We are currently 3 web programmers (good, real-life friends, no distrust issues).
Background This is only my second PyQt4 project. Developing a Windows app that has
Background: I am getting a Internal Server 500 24 50 error after deploying an
Background: I am using Eclipse to develop an Android app. I have an xml

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.