LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Install apache, mysql etc. (https://www.linuxquestions.org/questions/slackware-14/install-apache-mysql-etc-4175488544/)

Goodfellas 12-19-2013 07:41 AM

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.

ponce 12-19-2013 07:46 AM

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).

Goodfellas 12-19-2013 08:56 AM

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.

ponce 12-19-2013 09:21 AM

Quote:

Originally Posted by Goodfellas (Post 5083914)
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.

kikinovak 12-19-2013 10:00 AM

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

Goodfellas 12-19-2013 01:44 PM

Quote:

Originally Posted by ponce (Post 5083933)
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 (Post 5083951)
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 :)

skush 12-22-2013 12:43 PM

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.

ponce 12-22-2013 02:27 PM

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



All times are GMT -5. The time now is 11:41 AM.