LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-19-2008, 02:42 PM   #1
alluoshi
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
Access a Linux server from a browser


I have a multi-user web application installed on Linux. For example, I have mysql installed in Linux server and users can use their browsers to access this application "mysql" (through Apache2 and php 5) by using phpmyadmin tool (phpmyadmin/sql is just an example). I need to monitor the processes created in Linux when users access this application (usually there are apache and mysql processes and might be other processes/threads). I can't determine to which user/users (here I am not talking about unix users, these users are phpmyadmin/mysql users)these processes belong. To solve this problem, I am thinking to create a unix user in the Linux server to each one who wants to use this application from his/her browser. For example, I want to create a user "john" in Linux, john will login to the Linux server using his username and password from his browser, and after a successful login, john can use this application (he also needs to authenticate to this application)
I believe by doing this, it is easier to know the processes that are created by a given user/users.
First, am I right in my suggestion?
Second, if I want to achieve that, is there any documentations to follow?
Thank you
 
Old 11-19-2008, 03:24 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Well, I don't think you're looking at the puzzle at the right angle.

MySQL usually runs as a mysql user. All of it's processes will be owned by mysql. Individual users that have access to the MySQL service and application don't own the OS processes. Now they will usually show up within the applications own processes which could be monitored.

Just like phpmysqladmin is an application or tool that uses apache to serve itself on and use. Apache will run as nobody or httpd user, but each processed spawned by users using the web server isn't going to be owned by them and you can't track the OS level of processes by an individual stance or level.
 
Old 11-19-2008, 03:58 PM   #3
alluoshi
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Yes you are right, I used the "top" command while I was using phpmyadmin and I noticed the "mysql" user.
Actually, my main problem is that I want to track the usage (cpu usage and memory usage)of this application for each user accessing it. For example, if user1 accessed this software for 30 minutes, I need to know the "cpu user time", "cpu system time", "idle time" and "elapsed time which is 30 minutes" (or any form of cpu usage) for each user (application level user like in my example mysql user). All the tools that I have ("sar", "top", "vmstat") or others, depend on the processes created. If I can't know the processes for each user, how can I track cpu and memory usage for each user using this application?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: ACCESS Announces NetFront Browser Widgets on ACCESS Linux Platform, Support for LXer Syndicated Linux News 0 08-04-2008 04:10 PM
Access Home Directory on the Debian 3.1 Server Remotly via Browser? ischi Linux - Server 4 04-26-2008 10:25 AM
Browser-based X Server for Remote Access Garibaldi3489 Linux - Software 3 10-29-2007 02:40 PM
Can't access files on remote server thru browser kornerr Linux - General 3 01-29-2006 12:29 PM
Cannot directly access files from server via browser on FTP MasterC Linux - Networking 10 01-15-2003 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration