Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-29-2014, 08:51 PM   #1
LQ Newbie
Registered: Dec 2014
Posts: 5

Rep: Reputation: Disabled
Installing a LAMP server on slackware 14.1

Hi there,

I'm running slackware 14.1 as a VMWare virtual machine and I wanted to get a LAMP server up and running. I've been following the steps in this tutorial here:

When I run the commands "slackpkg install httpd", "slackpkg install mysql", "slackpkg install php" I receive the following message:

Looking for php in package list. Please wait... DONE

No packages match the pattern for install. Try:

/usr/sbin/slackpkg reinstall|upgrade

I have two mirrors uncommented in /etc/slackpkg/mirrors and I've been able to run slackpkg update and slackpkg upgrade-all.

What do I need to do to be able to install the packages using slackpkg in slackware?
Old 12-29-2014, 09:56 PM   #2
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 16,660
Blog Entries: 27

Rep: Reputation: 5056Reputation: 5056Reputation: 5056Reputation: 5056Reputation: 5056Reputation: 5056Reputation: 5056Reputation: 5056Reputation: 5056Reputation: 5056Reputation: 5056
Slackware includes all you need for a LAMPP server out-of-the-box. From this Slackware box I'm using right now:

~/ $ whereis httpd
httpd: /usr/sbin/httpd /etc/httpd /usr/lib/httpd /usr/include/httpd /opt/lampp/bin/httpd /usr/man/man8/httpd.8.gz /usr/share/man/man8/httpd.8.gz /usr/X11/man/man8/httpd.8.gz
~/ $ whereis mysql
mysql: /usr/bin/mysql /usr/lib/mysql /usr/X11R6/bin/mysql /usr/bin/X11/mysql /usr/X11/bin/mysql /usr/include/mysql /usr/share/mysql /opt/lampp/bin/mysql.server /opt/lampp/bin/mysql /usr/man/man1/mysql.1.gz /usr/share/man/man1/mysql.1.gz /usr/X11/man/man1/mysql.1.gz
~/ $ whereis perl
perl: /usr/bin/perl /usr/X11R6/bin/perl /usr/bin/X11/perl /usr/X11/bin/perl /opt/lampp/bin/perl /usr/man/man1/perl.1.gz /usr/share/man/man1/perl.1.gz /usr/X11/man/man1/perl.1.gz
~/ $ whereis php
php: /usr/bin/php /etc/php /usr/lib/php /usr/X11R6/bin/php /usr/bin/X11/php /usr/X11/bin/php /usr/include/php /opt/lampp/bin/php /usr/man/man1/php.1.gz /usr/share/man/man1/php.1.gz /usr/X11/man/man1/php.1.gz
You may find this tutorial more useful:

I took a look at that Unixmen link and couldn't figure out, for the life of me, why they wanted you to reinstall stuff that was already there.
Old 12-29-2014, 11:29 PM   #3
LQ Newbie
Registered: Dec 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
I think I'd already tried running the mysql setup earlier and became bogged down. From the tutorial frankbell posted above; when I try to run mysql_secure_installation it asks me for the current password for root. I try no password, and passwords I think I may have set and it gives this error and keeps prompting me.

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)

It also throws an error when I attempt mysql_install_db --user=mysql.

Is there a way I can start again on my mysql setup, such as uninstalling and reinstalling the application, or is there a process I can reset the password?
Old 01-01-2015, 05:40 AM   #4
Registered: Mar 2008
Location: Where ever I am.
Distribution: Various
Posts: 177
Blog Entries: 172

Rep: Reputation: 21
Can not wait to try this on my old P1. Speed is not critical. The machine is for learning.


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
[SOLVED] LAMP server - installing via tasksel or apt-get ? czezz Ubuntu 1 11-18-2013 09:59 AM
LXer: Installing LAMP Server Using TASKEL (desktop edition) in Ubuntu LXer Syndicated Linux News 0 11-22-2007 01:12 AM
Confused about installing a simple LAMP server in Linux jtatarin Linux - Server 2 03-13-2007 01:56 PM
Server project "LAMP" and Slackware TranceOne Linux - General 1 11-11-2005 04:16 AM
setting up a LAMP server in Slackware 10.0 yolopollo Slackware 2 07-23-2004 03:32 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration