LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2007, 07:25 PM   #1
melp57
LQ Newbie
 
Registered: Oct 2007
Posts: 7

Rep: Reputation: 0
how to start a program


I just installed phpmyadmin, via my package manager. How do I start a program in Linux, also how do I see if php and mysql is running? Sorry if these are dumb questions. Is there a good place to learn these things?

Thanks in advance for your help!
 
Old 11-06-2007, 07:50 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I'm not familiar with phpmyadmin. There may be a README file in /usr/share/doc/phpmyadmin-<version>/ or /usr/share/doc/packages/phpmyadmin/. Often you just need to point your browser to a certain port on localhost. However, there may be something to do first, such as editing a line in a /etc/xinet.d/phpmyadmin. There probably is a more comprehensive manual installed as well.

For mysql, you can configure the mysqld service to start on certain runlevels. You can also use the "service" command to start and stop the service manually. On SuSE linux, there will be an rc script to manually start/stop/restart services.
"sudo /usr/sbin/rcmysql start". On other distro's you could probably use "sudo service mysql start".

The mysql package also installed a comprehensive manual. Be sure to read the section on post installation security. You need to perform the steps which add a root password. The phpmyadmin documentation probably has a similar procedure, being designed to allow admin access to mysql over the web, you probably have a bit of work to do before you can use the program safely.
 
Old 11-06-2007, 07:53 PM   #3
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
To use phpmyadmin you have to run a web server. That would be Apache for any *nix system.

Once you have Apache running, you will access phpmyadmin by pointing a browser at it, or more specifically at the directory in which it is installed.

How you start Apache depends on your distro. Provide that information and I can tell you what to do.
 
Old 11-07-2007, 04:11 AM   #4
melp57
LQ Newbie
 
Registered: Oct 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jiml8 View Post
To use phpmyadmin you have to run a web server. That would be Apache for any *nix system.

Once you have Apache running, you will access phpmyadmin by pointing a browser at it, or more specifically at the directory in which it is installed.

How you start Apache depends on your distro. Provide that information and I can tell you what to do.
Iam running SimplyMEPIS

Thanks for the great help
 
Old 11-07-2007, 10:13 AM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
I do not know Mepis at all.

Probably the easiest way for you to proceed is to locate the script that starts Apache. Mepis may have a graphical control panel that you use to start/stop services. If it does and you know where it is, use it to start Apache (which also might be known simply as httpd).

If Mepis doesn't have this or if you don't know, then the way to do it is to open a shell window and su to root.

Then issue this command:

locate httpd

If apache is installed, this will give you a lot of results, but you are looking for results located someplace in the /etc directory. You may find it in /etc/init or in /etc/init.d or in /etc/rc.d/init.d, or perhaps someplace else depending on how Mepis does it.

When you find the script, change to the directory it is in using the cd command. Then execute the command

./httpd start

and see what happens. If your apache is correctly configured it will start. If you have PHP properly installed, you then will be able to start phpmyadmin from a web browser.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I automatically start a program at start up? victordh Linux - General 7 10-27-2013 06:02 AM
Start program hylke Linux - Newbie 6 08-03-2004 11:45 AM
Can I start a program without X, then start X and use that program? marenkiapina Linux - General 1 05-20-2004 05:07 AM
Program will not start godders48 Linux - Software 4 10-05-2003 05:10 AM
start program killi Slackware 8 05-22-2003 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:27 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