dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: "Simple page" >> SSH + MySQL + LDAP over Linux

  1. #1
    Join Date
    Dec 2015
    Posts
    1

    Question "Simple page" >> SSH + MySQL + LDAP over Linux

    Hi all,

    I am looking for the best way (coding) to create a simple where I could get:
    - some Linux services status;
    - get my MySQL server/database status as well as query some table getting the total of records based on a specific column; and
    - query my LDAP server to get the total of records based on a specific attribute.

    I have all these information collected by a shell script, but I would like to have them on my browser (a single page were I could have all these information together without the need to connect to my server to run the script manually).

    I have good networking background and I have good logic, but my web coding references are not so good (what should I use? Perl? PHP? Asp? ????????).

    Could someone let me know what is the best coding language that I should use to create this tool?

    Best regards,

    Emerson

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    21,104
    Pretty much any server-side web language will have some mechanism for executing a command on the server. For instance, in PHP, it might be as simple as:
    PHP Code:
    <html><head><title>My Stats</title><head><body>
    <pre><?php
    echo shell_exec('/filesystem/path/to/your/script');
    ?><pre>
    </body></html>
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles