LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-29-2014, 09:51 PM   #1
Johnn0
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:

http://www.unixmen.com/easy-steps-to...lackware-14-0/

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, 10:56 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,677
Blog Entries: 12

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

Code:
~/ $ 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: http://slackware.ponce.cc/blog/2011/...omment-page-1/

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-30-2014, 12:29 AM   #3
Johnn0
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, 06:40 AM   #4
peonuser
Member
 
Registered: Mar 2008
Location: Where ever I am.
Distribution: Various
Posts: 177
Blog Entries: 166

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


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


All times are GMT -5. The time now is 05:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration