My Linode has no AMP - what packages do I need for AMP in Slackware?
Hello All,
My first post - as an introduction this month is my ten-year anniversary: ten years since I clicked "Use all the disk" or words to that effect during installation of Linux (Mandrake) and wiped MS Windows. I have used Linux exclusively ever since at work and at home. I have used many distributions - when I found Arch I thought I had found "the one" but, much as I love Arch, the rolling release bit me a couple of times. To cut a long story short, this year I have re-discovered Slackware and it has replaced all other distros on all my machines. The UNIX-like organisation, the init scripts and the simplicity all appeal to me. Thanks Pat, Robby, Alien and the rest of the people who bring us Slack! Anyway, I am actually posting a question. I installed Slack on my Linode and I find that their (13.37 64bit) image does not include Apache, PHP or MySQL. Now I know that LAMP is wonderfully easy to setup on a full Slack install - but how do I do it here? I installed Apache and PHP, tweaked /etc/httpd/httpd.conf to enable PHP and started getting errors - missing packages. I then installed libidn, libmcrypt then libxml2 but the latter killed httpd, it would not start. I did not look in the logs, but re-built my Linode in the hope that I might have missed an "install LAMP" option. I had not. My questions are - What packages do I need in Slackware for AMP, and/or - Is there an easy way to install the rest of Slackware on my Linode? I can list the contents of /var/log/packages/ if that would help. Thanks, Bill |
Quote:
Code:
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/a/bzip2-1.0.6-x86_64-1.txz Code:
$ wget -i package-list Code:
# upgradepkg --install-new *.txz Code:
# slackpkg install apr apr-util aspell bzip2 curl cxxlibs cyrus-sasl db44 expat gcc gdbm libgcrypt libgpg-error libidn libmcrypt libtool libxml2 mhash mm ncurses net-snmp openldap-client openssl-solibs pcre sqlite t1lib util-linux zlib |
Quote:
Code:
# slackpkg install slackware64 |
Thanks Ruarí for your help. I installed all of the above and of course
Code:
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/n/httpd-2.2.17-x86_64-3.txz Code:
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/enchant-1.5.0-x86_64-1.txz Code:
root@li127-7:~/installing_AMP# /etc/rc.d/rc.httpd restart Code:
root@li127-7:~/installing_AMP# cat /var/log/httpd/error_log Thanks, Bill |
In desperation I tried installing everything:
Code:
#!/bin/sh Code:
# /etc/rc.d/rc.httpd restart Help please! Thanks, Bill |
In even more desperation I
1. Re-built my Linode 2. Installed slackpkg and selected a mirror 3. Used slackpkg to install everything - KDE, the lot: Code:
# slackpkg update 5. Enabled and started httpd Code:
# chmod 0744 /etc/rc.d/rc.httpd 6. Edited /etc/httpd/httpd.conf to set: Code:
<IfModule dir_module> Code:
Include /etc/httpd/mod_php.conf Code:
# /etc/rc.d/rc.httpd restart Code:
# cat /var/log/httpd/error_log Bill |
I'd like to point out that it's quite possible to upgrade a Slackware 13.37 Linode to Slackware 14; I've done this a couple of times, though only once on a VPS. I don't remember my exact process, but it basically involved being really lucky about editing /etc/slackpkg/mirrors.
The Linodes default (expectedly) to a 13.37 mirror list. Going through one of my Linodes' /etc/slackpkg/mirrors.orig, it looks like I just added a section for Slackware 14: Code:
#---------------------------------------------------------------- Considering you're already in the habit of rebuilding the Linode as things go horribly awry, such an upgrade is definitely worth a shot. |
Thanks YellowApple, I will try it over the weekend. You are right, I do not have any content on the Linode yet so re-building it is easy.
Did what you describe update the kernel? Bill |
I have a Slackware 13.37 Linode as well. I have upgraded it to 14.0 successfully and installed everything except X and XAP (this includes the AMP stack).
If I remember it correctly, I just used slackpkg but selectively installed packages in order specified by the README file for upgrading. |
Quote:
|
I have got the same problem that httpd can't start at Linode.
Quote:
|
Quote:
|
Thanks all for your help. The problem turns out to be glibc: the (excellent) Linode support tells me
Quote:
Code:
ftp://ftp.slackware.com/pub/slackware/slackware-current/UPGRADE.TXT Quote:
|
So how to setup LAMP using Slackware on a Linode? Here is one way:
1. Re-build Linode using 32bit Slackware 2. Install slackpkg Code:
# cd /tmp Code:
# vi /etc/slackpkg/mirrors # I used ftp://slackware.oregonstate.edu/pub/slackware/slackware-13.37/ Code:
# slackpkg update gpg Code:
# slackpkg install a ap d l n x 6. Configure Apache /etc/httpd/httpd.conf: - Specify Code:
ServerName Code:
<IfModule dir_module> Code:
Include /etc/httpd/mod_php.conf Code:
# chmod 0744 /etc/rc.d/rc.httpd |
Something seems fishy with Linode's explanation, though...
For one, if Linode knows this to be an issue with Slackware64-13.37's glibc, and are recommending upgrading to 14.0, then is there some reason why they aren't offering Slackware64-14.0 for their Linodes (if they indeed aren't, that is; I've yet to see one, though I haven't tried creating a Linode in a couple months)? Second, if this is indeed a bug with Slackware64-13.37's glibc, then why am I unable to replicate this issue on a non-Linode Slackware64-13.37 VPS (specifically, running on an OpenVZ host)? Did Linode provide any kind of information on the exact bug they believe to be causing this? I mean, I don't exactly object to the upgrade recommendation, but this seems like an odd response from Linode. On another note, the fact that Linode believes you're running a 32-bit kernel indicates an alternate cause for your symptoms, though it's a wonder why the heck your VM was able to make it all the way to running httpd before it started to do silly things. Or did you switch from 64-bit to 32-bit as part of your troubleshooting at some point? |
All times are GMT -5. The time now is 12:16 PM. |