LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-12-2006, 08:42 PM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
LAMP Question - Apahce and MySQL startup


Running Slackware 10.2 and 2.4 Kernel.

I'm setting up LAMP and wondering...
Which should startup first, Apache or MySQL?

Right now, MySQL starts first, and then Apache.

Does it matter?

thanks
 
Old 02-12-2006, 11:55 PM   #2
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Slackware already includes both MySQL and Apache. Just chmod +x the init scripts in /etc/rc.d for both and let Slackware worry about the order. Default works.

Also, though you didn't mention any issue with it, before you run the MySQL init script, read it. It has important instructions that you should follow EXACTLY if you want MySQL to work. Otherwise you will either a) not have any MySQL databases, or b) your MySQL databases will have the wrong premissions.
 
Old 02-13-2006, 08:16 AM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by shilo
Slackware already includes both MySQL and Apache. Just chmod +x the init scripts in /etc/rc.d for both and let Slackware worry about the order. Default works.

Also, though you didn't mention any issue with it, before you run the MySQL init script, read it. It has important instructions that you should follow EXACTLY if you want MySQL to work. Otherwise you will either a) not have any MySQL databases, or b) your MySQL databases will have the wrong premissions.

I've already been using MySQL for awhile and it is working well.

I decided to get Apache up and running the other day. I can get the test page (127.0.0.1) to work with no problem.

When I boot up though, MySQL starts first and then Apache.

Does it matter?

thanks
 
Old 02-13-2006, 10:00 AM   #4
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
No. That's the default. See /etc/rc.d/rc.M
 
Old 02-13-2006, 08:13 PM   #5
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by shilo
No. That's the default. See /etc/rc.d/rc.M
That explains it, thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
connecting PHP to MySQL in a LAMP server rickyglucas_143 Linux - Newbie 2 02-06-2006 04:02 AM
linux startup mysql as user question and backup questions... eyewittness Linux - Software 1 07-21-2005 12:26 PM
LAMP(Linux,Apache,MySql,PHP) and other info hamtavs General 1 01-25-2005 03:54 AM
Installing LAMP with MySQL 4.1 - close but stuck with Apache problem David Mann Linux - Software 2 11-10-2004 08:19 PM
LAMP(Linux, Apache, MySQL, PHP) Problem gamehack Slackware 7 08-17-2004 02:52 PM

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

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