LinuxQuestions.org
Review your favorite Linux distribution.
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 12-19-2013, 07:41 AM   #1
Goodfellas
LQ Newbie
 
Registered: Nov 2013
Distribution: Slackware
Posts: 7

Rep: Reputation: 0
Install apache, mysql etc.


Hi all

I`am a new user and and can not find how to install apache and mysql. I now that slackware comes with DB named MariaDB. What is this DB like ? Is it same like MySQL ? I need a DB because i`m learning programing with Java.
 
Old 12-19-2013, 07:46 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
if you have made a full install (the supported one) they are already installed: you have just to configure them

http://www.slackware.com/~mrgoblin/slackware-lamp.php

mariadb is a mysql fork, but it's a drop-in replacement (commands and configuration files are the same).
 
Old 12-19-2013, 08:56 AM   #3
Goodfellas
LQ Newbie
 
Registered: Nov 2013
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
I read this link but i hava a problem with restarting httpd server. When i restart it gives me this error : AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message. I make all things from the first step ant when i write localhost it greeted me with It Works ! but when i made index.php file i htdocs and try to load localhost/index.php appears a white page.
 
Old 12-19-2013, 09:21 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Quote:
Originally Posted by Goodfellas View Post
I read this link but i hava a problem with restarting httpd server. When i restart it gives me this error : AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message.
that's just a warning.
if you want to get rid of it run the command
Code:
hostname
it will output your hostname: enter it as the argument of the line of /etc/httpd/httpd.conf that begins with the string "ServerName".
Quote:
I make all things from the first step ant when i write localhost it greeted me with It Works ! but when i made index.php file i htdocs and try to load localhost/index.php appears a white page.
how to enable php is explained in the second part: it's a three parts tutorial.

Last edited by ponce; 12-19-2013 at 09:24 AM.
 
Old 12-19-2013, 10:00 AM   #5
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Hi,

I'm running a few public LAMP servers on Slackware. Here's a HOWTO based on Slackware 14.0:

http://www.microlinux.fr/slackware/L...ySQL-HOWTO.txt

http://www.microlinux.fr/slackware/L...LAMP-HOWTO.txt

Cheers,

Niki
 
Old 12-19-2013, 01:44 PM   #6
Goodfellas
LQ Newbie
 
Registered: Nov 2013
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ponce View Post
it's a three parts tutorial.
I`ve read the 3th part but in the begining where i have to install mysql (mysql_install_db) it gave me this error:

[ERROR] mysqld: Can't lock aria control file '/var/lib/mysql/aria_log_control' for exclusive use, error: 11 (i have changed the mod to the folder and file).


Quote:
Originally Posted by kikinovak View Post
Hi,

I'm running a few public LAMP servers on Slackware. Here's a HOWTO based on Slackware 14.0:

http://www.microlinux.fr/slackware/L...ySQL-HOWTO.txt

http://www.microlinux.fr/slackware/L...LAMP-HOWTO.txt

Cheers,

Niki
In English please
 
Old 12-22-2013, 12:43 PM   #7
skush
LQ Newbie
 
Registered: Aug 2013
Posts: 26

Rep: Reputation: Disabled
If I remember correctly, MariaDB must be stopped when you run that, so run '/etc/rc.d/rc.mysqld stop', and then run the install db command.
 
Old 12-22-2013, 02:27 PM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
if mysql it's already running, you probably have already installed it: to start from scratch
Code:
/etc/rc.d/rc.mysqld stop
rm -fR /var/lib/mysql
mysql_install_db --user=mysql
/etc/rc.d/rc.mysqld start
 
  


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
apache broke after mysql install spooge Slackware 1 04-20-2009 05:57 PM
install mysql 4 and apache 2.x manomohan Fedora - Installation 1 05-17-2007 07:59 PM
manually install mysql, php, and apache or install from CD? FiveFlat Linux - Software 5 12-15-2005 01:12 PM
Apache, PHP, MySQL Install SpiderIRE Linux - Software 3 10-03-2005 04:50 AM
how do i install apache php and mysql ashokn Linux - Software 2 04-30-2004 06:20 AM

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

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