LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-18-2006, 11:12 PM   #1
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Rep: Reputation: 30
how do i go about starting my apache and mysql on UBUNTU


also with those, how do i start PHP command line, if anyone knows. thanks in advance, also if anyone can answer this last question i'd be most greatful. If i have my mysql databases on a phpmyadmin on my server, can i remotely host them to a server i've paid for. like can i create dbs and use them from my own machine. You see my apache server is brand new, it doesn't have ip forwarding (which i dunno how to go about doing that) or none of that other stuff it needs in order to be viewable to the world. but i wasnt sure whether or not it could be remotely usable, for mysql needs. THANKS again!

Last edited by $Linuxnoob; 09-18-2006 at 11:16 PM.
 
Old 09-19-2006, 12:08 AM   #2
lior.okman
LQ Newbie
 
Registered: Sep 2006
Distribution: Debian GNU/Linux
Posts: 9

Rep: Reputation: 0
You usually start stuff by running the script in /etc/init.d

If you want the apache and mysql to automatically start when you boot, use the update-rc.d command to automatically create the relevant runlevel links.

Code:
update-rc.d apache defaults
Instead of apache, use the name of the script in /etc/init.d . This might be "apache2" if you installed apache version 2.0 and not apache version 1.1

Regarding the PHP command line, try

Code:
php -a
Also take a look a the man page for php. Lots of good info there.

About connecting to MYSQL from a remote location, where remote is "not localhost" - this is disabled by default in mysql's configuration file. Edit it, and reenable it (see the comments in the file /etc/mysql/my.cnf ). Try again after that.
 
Old 09-19-2006, 06:15 AM   #3
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
Thanks

I am going to attempt to do all you've said, i appreciate your help without i might not have figured much of that out.
 
Old 09-19-2006, 06:22 AM   #4
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
I would just like to say

You're my hero right now. As you prescribed everything is as it should be. I have a prob in my apache, but now i know how to start/restart and all of that

php runs as you told me it would.

mysql i'm doing that when i can here in a second

all and all thanks so much.
 
  


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
Starting MySQL OLD Error : imeout error occurred trying to start MySQL Daemon Fr33B5D Linux - Software 9 10-28-2006 06:23 AM
skype on ubuntu not starting fberna Ubuntu 5 09-16-2005 02:32 PM
starting windows installation from ubuntu abtimoteo Ubuntu 2 06-23-2005 02:36 PM
Ubuntu not starting up zivs Linux - Newbie 5 05-16-2005 05:26 PM
Starting apache and mysql as service on boot :: buddy Linux - General 2 12-30-2002 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:28 AM.

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