LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-09-2003, 11:47 PM   #1
initself
Member
 
Registered: Feb 2003
Location: Lake Forest, CA
Distribution: Slackware 10.2, Ubuntu 6.06 LTS
Posts: 38

Rep: Reputation: 16
Lightbulb Apache PHP MySQL Setup after Slackware 9.0 Installation


For whatever reasons, Apache, PHP and MySQL are not fully setup for use after an initial Slackware 9.0 installation. Below are some steps that helped me quickly setup all three:

Apache/PHP/MySQL Setup

1. Set Apache to boot at startup:

chmod 755 /etc/rc.d/rc.httpd

2. Add PHP support to httpd.conf:

vi /etc/apache/httpd.conf

#add the following to sections containing similar code:

LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php

You might want to also add an index.php entry to the DirectoryIndex section as well:

#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>


3. Set permissions on MySQL files:

cd /var/lib
chown -R mysql mysql mysql
chgrp -R root mysql mysql
su mysql
#prompt changes from # to $
mysql_install_db
safe_mysqld --user=mysql & #hit enter once the db loads
exit
#prompt changes from $ to #
mysqladmin -u root status #verify the database is running

4. Add MySQL to startup scripts::

vi /etc/rc.d/rc.local
echo Starting MySQL server:
safe_mysqld --user=mysql &
sleep 2

Good Luck!

mb

Last edited by initself; 11-11-2004 at 11:56 PM.
 
Old 04-10-2003, 06:00 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
Slack 9 does have some probs yes, here is a bug I found.....
the kernel configurator does not even get installed on my system, and the Bash setup in not complete either. I have a Slack subscription, so I have the 4 CD set. I am gonna put 8.1 back in and just upgrade everything and see how it works.
 
Old 05-06-2003, 08:34 PM   #3
rivang
Member
 
Registered: May 2002
Location: Elkview, WV
Distribution: Slackware 10
Posts: 139

Rep: Reputation: 15
Location of Apache on Slackware 9.0

I am trying to install Apache 2.0 on Slackware 9.0... using DevShed's "The Soothingly Seemless Setup of Apache, SSL, MySQL and PHP guide.

What is the location of the default install of Apache in Slackware 9.0?

I am looking to install Apache 2.0 in /usr/local per the instructions from the guide mentioned above.

The recommended paths are

/usr/local/apache
/usr/local/mysql
/usr/local/ssl

Can you uninstall the default installation of Apache, SSL, MySQL and PHP?
 
Old 05-08-2003, 10:32 AM   #4
initself
Member
 
Registered: Feb 2003
Location: Lake Forest, CA
Distribution: Slackware 10.2, Ubuntu 6.06 LTS
Posts: 38

Original Poster
Rep: Reputation: 16
Re: Location of Apache on Slackware 9.0

Quote:
What is the location of the default install of Apache in Slackware 9.0?
/etc/apache - index.html is located in /etc/apache/htdocs

You can add your own index.html file in this directory to test.
Quote:
Can you uninstall the default installation of Apache, SSL, MySQL and PHP?
I understand your desire to work within the guidelines of your book but one of the great things about Slackware 9.0 is that it handles the installation for you.

If you follow the directions in my first post, you'll have everything installed and working in 10 minutes. Then you can concentrate on what's important: using these tools!

If you really want to uninstall these modules, use the 'pkgtool' command as root and remove the packages.

mb
 
Old 05-27-2003, 06:19 AM   #5
tentonipete
LQ Newbie
 
Registered: May 2003
Distribution: Slackware 9.0
Posts: 26

Rep: Reputation: 15
genius - that setup tip is great thanks

*scribbles it down*
 
Old 06-29-2003, 10:28 AM   #6
immortal
LQ Newbie
 
Registered: May 2003
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
great tips

thnx

Last edited by immortal; 06-29-2003 at 10:44 AM.
 
Old 06-29-2003, 02:36 PM   #7
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 660

Rep: Reputation: 30
Personally I never liked how slack installed apache/php/sql from 8.0, so I install them myself from source. :-)
 
Old 06-30-2003, 02:18 AM   #8
C++freak
Member
 
Registered: Apr 2002
Location: NB, Canada
Distribution: Gentoo
Posts: 180

Rep: Reputation: 30
That is a good peice of advice. That has been stored away in my collection of priceless documents (HOW-TOs, Guides, etc), in a very secure place. Thanks!
 
Old 06-30-2003, 05:19 AM   #9
deanglass
LQ Newbie
 
Registered: Jun 2003
Location: Somerset
Distribution: Red Hat 9
Posts: 11

Rep: Reputation: 0
htdocs location in default RH9 setup

Hello all,

This is my first thread in this forum, so be gentle.

Main problem:

Cannot find htdocs folder in my RH9 installation.
-----
I am trying to locate the usual html file to replace with my content but for some reason cannot find it! I have viewed /etc/httpd/conf/httpd.conf to see the location of the server is poniting at /var/www/html/, which is empty. I have tested http://localhost in mozilla and everything is ok, but it is wierd that i cannot find the main directories. Is there a generic 'search' terminal command that would get me out of future situations like this?

Thanx in advance
 
Old 06-30-2003, 10:52 AM   #10
initself
Member
 
Registered: Feb 2003
Location: Lake Forest, CA
Distribution: Slackware 10.2, Ubuntu 6.06 LTS
Posts: 38

Original Poster
Rep: Reputation: 16
Deanglass,

This forum is for information regarding the 'Slackware' distribution, not RH9. I would suggest posting here:

http://www.linuxquestions.org/questions/forumdisplay.php?s=&forumid=5

Thanks.
.
mb
 
Old 07-24-2003, 01:24 AM   #11
ignavus
LQ Newbie
 
Registered: Jul 2003
Location: Tromso, Norway
Distribution: Slackware
Posts: 5

Rep: Reputation: 0
A very helpful thread, initself.

I've been having trouble installing and running MySQL since I obtained it a few days ago, until I figured out it actually is installed as a package along with Slackware. Using the few steps you mentioned had the server up and running in less than five minutes.

Now I just have to figure out how to upgrade it to the newest version of MySQL - as the one provided with Slackware 9.0 only is 3.23.56.


Thanks alot.


 
Old 07-30-2003, 11:08 AM   #12
woodsta
LQ Newbie
 
Registered: Jul 2003
Location: London
Distribution: slackware
Posts: 5

Rep: Reputation: 0
Unhappy

Hi, newcomer to slackware (recent convert from debian), so excuse any lame/obvious questions.

I've tried the method for setting up mysql after installing a fresh copy of slack9, but I appear not to have a mysql dir in /var/lib - seem to have the rest of mysql installed ok.

Cheers,
 
Old 07-30-2003, 11:23 AM   #13
initself
Member
 
Registered: Feb 2003
Location: Lake Forest, CA
Distribution: Slackware 10.2, Ubuntu 6.06 LTS
Posts: 38

Original Poster
Rep: Reputation: 16
Full Installation?

Quote:
Originally posted by woodsta
I've tried the method for setting up mysql after installing a fresh copy of slack9, but I appear not to have a mysql dir in /var/lib - seem to have the rest of mysql installed ok.
Can you verify that your Slackware 9.0 installation was a full installation?

mb
 
Old 07-30-2003, 11:58 AM   #14
woodsta
LQ Newbie
 
Registered: Jul 2003
Location: London
Distribution: slackware
Posts: 5

Rep: Reputation: 0
Re: Full Installation?

Quote:
Originally posted by initself
Can you verify that your Slackware 9.0 installation was a full installation?

mb
as far as I remember, it was a full install.

initially, /usr/share/mysql/mysql.server start crashed out as /var/lib/mysql/ dir was not found, I have now created the mysql dir in /var/lib, and no longer gives the directory not found error.

now when I run the following:
# cd /usr ; /usr/bin/safe_mysqld &
[1] 1043

I get this:
# Starting mysqld daemon with databases from /var/lib/mysql
030730 17:05:06 mysqld ended

and mysqld exits straight away (presumably due to finding no databases).

Cheers,
 
Old 07-30-2003, 12:06 PM   #15
initself
Member
 
Registered: Feb 2003
Location: Lake Forest, CA
Distribution: Slackware 10.2, Ubuntu 6.06 LTS
Posts: 38

Original Poster
Rep: Reputation: 16
Re: Re: Full Installation?

Quote:
Originally posted by woodsta
[B]as far as I remember, it was a full install.
If you are just starting out with your installation, I would try it again from the start and make sure you install every package. I can't imagine that any Slackware 9.0 full installation would differ on the placement of the mysql installation directory.

You shouldn't have to create any directories at all. You should just be able to follow my instructions line by line.

mb
 
  


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
Slackware 10.2 + Mysql + Apache + PHP + Tomcat Black187 Slackware 5 11-16-2005 07:11 AM
PHP/MySQL and Apache server setup nenyo Linux - Software 7 02-12-2005 01:48 PM
Apache/PHP/MySQL Setup Help jobless_joe Linux - Software 2 05-30-2004 01:55 PM
Slackware 9.0 / MySQL /PHP/Apache ..? MikeFoo1 Linux - Newbie 2 05-03-2004 11:49 PM
Installation Tutorial Apache 2, PHP 4, MySQL 3.23 freddymio Programming 2 07-03-2002 09:40 AM


All times are GMT -5. The time now is 09:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration