LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 09-10-2013, 12:51 AM   #1
canadensis
LQ Newbie
 
Registered: Sep 2013
Location: Sydney, Australia
Distribution: Slackware, FreeBSD
Posts: 18

Rep: Reputation: 3
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
 
Old 09-10-2013, 01:55 AM   #2
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
Quote:
Originally Posted by canadensis View Post
What packages do I need in Slackware for AMP
I believe (though I have not checked in detail) that the list of deps for Apache, PHP and MySQL should be something like this:

Code:
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/a/bzip2-1.0.6-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/a/cxxlibs-6.0.14-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/a/openssl-solibs-0.9.8r-x86_64-3.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/a/util-linux-2.19-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/ap/sqlite-3.7.5-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/d/gcc-4.5.2-x86_64-2.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/d/libtool-2.4-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/apr-1.4.2-x86_64-2.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/apr-util-1.3.10-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/aspell-0.60.6-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/db44-4.4.20-x86_64-2.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/expat-2.0.1-x86_64-2.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/gdbm-1.8.3-x86_64-4.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/libidn-1.19-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/libmcrypt-2.5.8-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/libxml2-2.7.8-x86_64-3.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/mhash-0.9.9.9-x86_64-3.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/mm-1.4.2-x86_64-2.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/ncurses-5.9-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/pcre-8.12-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/t1lib-5.1.2-x86_64-2.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/zlib-1.2.5-x86_64-4.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/n/curl-7.21.4-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/n/cyrus-sasl-2.1.23-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/n/libgcrypt-1.4.6-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/n/libgpg-error-1.9-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/n/net-snmp-5.6.1-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/n/openldap-client-2.4.23-x86_64-1.txz
Save that as a file (e.g. 'package-list') and then you can grab them all with a command like this:

Code:
$ wget -i package-list
Once you have the packages install them with:

Code:
# upgradepkg --install-new *.txz
Alternatively if you have slackpkg installed and configured this might do the trick:

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

Last edited by ruario; 09-10-2013 at 02:14 AM. Reason: Added slackpkg example
 
2 members found this post helpful.
Old 09-10-2013, 02:04 AM   #3
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
Quote:
Originally Posted by canadensis View Post
- Is there an easy way to install the rest of Slackware on my Linode?l
Code:
# slackpkg install slackware64
This assumes you have setup and configured slackpkg. This would take up a lot of space (perhaps more than you have allocated) and would normally be an overkill for a VPS. If you really want to go down that route start with the a/, ap/, l/ and n/ series. You might also want to consider installing d/ to allow you build stuff and perhaps even x/ as x/libX11 (and perhaps other libs) are occasionally used by non graphical apps and other libraries (e.g. l/gd depends on it and PHP can use l/gd).

Last edited by ruario; 09-10-2013 at 02:55 AM. Reason: Added a comment about x/libX11
 
1 members found this post helpful.
Old 09-10-2013, 05:08 PM   #4
canadensis
LQ Newbie
 
Registered: Sep 2013
Location: Sydney, Australia
Distribution: Slackware, FreeBSD
Posts: 18

Original Poster
Rep: Reputation: 3
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
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/n/php-5.3.6-x86_64-6.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/ap/mysql-5.1.56-x86_64-1.txz
Then by attempting to start httpd and reading /var/log/httpd/error_log I found that the following are also needed:

Code:
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/enchant-1.5.0-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/x/libX11-1.4.3-x86_64-2.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/libxslt-1.1.26-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/x/libXpm-3.5.9-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/x/libxcb-1.7-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/x/libXau-1.0.6-x86_64-1.txz
http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/x/libXdmcp-1.1.0-x86_64-1.txz
But unfortunately httpd will still not start:

Code:
root@li127-7:~/installing_AMP# /etc/rc.d/rc.httpd restart
httpd not running, trying to start
root@li127-7:~/installing_AMP# /etc/rc.d/rc.httpd restart
httpd not running, trying to start
root@li127-7:~/installing_AMP# ps aux | grep httpd
root      1240  0.0  0.0   4396   580 pts/0    S+   17:02   0:00 grep httpd
root@li127-7:~/installing_AMP#
The error log now looks like this:

Code:
root@li127-7:~/installing_AMP# cat /var/log/httpd/error_log 
[Tue Sep 10 16:31:50 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:31:50 2013] [notice] Digest: done
[Tue Sep 10 16:31:51 2013] [notice] Apache/2.2.17 (Unix) DAV/2 configured -- resuming normal operations
[Tue Sep 10 16:31:54 2013] [error] [client 203.219.44.200] File does not exist: /srv/httpd/htdocs/favicon.ico
[Tue Sep 10 16:31:54 2013] [error] [client 203.219.44.200] File does not exist: /srv/httpd/htdocs/favicon.ico
[Tue Sep 10 16:33:30 2013] [notice] SIGHUP received.  Attempting to restart
[Tue Sep 10 16:33:30 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:33:30 2013] [notice] Digest: done
[Tue Sep 10 16:33:31 2013] [notice] Apache/2.2.17 (Unix) DAV/2 configured -- resuming normal operations
[Tue Sep 10 16:34:31 2013] [notice] SIGHUP received.  Attempting to restart
[Tue Sep 10 16:34:31 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:34:31 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/enchant.so' - libenchant.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libX11.so.6: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/xsl.so' - libexslt.so.0: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Sep 10 16:34:32 2013] [notice] seg fault or similar nasty error detected in the parent process
[Tue Sep 10 16:34:40 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:34:40 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/enchant.so' - libenchant.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libX11.so.6: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/xsl.so' - libexslt.so.0: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Sep 10 16:46:32 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:46:32 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libXpm.so.4: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Sep 10 16:46:35 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:46:35 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libXpm.so.4: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Sep 10 16:46:39 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:46:39 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libXpm.so.4: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Sep 10 16:48:39 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:48:39 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libxcb.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Sep 10 16:48:41 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:48:41 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libxcb.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Sep 10 16:49:49 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:49:49 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libXau.so.6: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Sep 10 16:49:52 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:49:52 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libXau.so.6: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Sep 10 16:50:50 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:50:50 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libXdmcp.so.6: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Sep 10 16:50:52 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:50:52 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libXdmcp.so.6: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Sep 10 16:51:45 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:51:45 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libXdmcp.so.6: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Sep 10 16:51:47 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:51:47 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libXdmcp.so.6: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Sep 10 16:52:27 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:52:27 2013] [notice] Digest: done
[Tue Sep 10 16:52:29 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:52:29 2013] [notice] Digest: done
[Tue Sep 10 16:52:55 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:52:55 2013] [notice] Digest: done
[Tue Sep 10 16:54:31 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 16:54:31 2013] [notice] Digest: done
[Tue Sep 10 17:01:40 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 17:01:40 2013] [notice] Digest: done
[Tue Sep 10 17:02:11 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 17:02:11 2013] [notice] Digest: done
[Tue Sep 10 17:02:13 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 17:02:13 2013] [notice] Digest: done
root@li127-7:~/installing_AMP#
Any help would be greatly appreciated,

Thanks,
Bill
 
Old 09-10-2013, 08:38 PM   #5
canadensis
LQ Newbie
 
Registered: Sep 2013
Location: Sydney, Australia
Distribution: Slackware, FreeBSD
Posts: 18

Original Poster
Rep: Reputation: 3
In desperation I tried installing everything:

Code:
#!/bin/sh

wget -r -l1 --no-parent -A.txz http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/a/
wget -r -l1 --no-parent -A.txz http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/ap/
wget -r -l1 --no-parent -A.txz http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/d/
wget -r -l1 --no-parent -A.txz http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/l/
wget -r -l1 --no-parent -A.txz http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/n/
wget -r -l1 --no-parent -A.txz http://mirrors.slackware.com/slackware/slackware64-13.37/slackware64/x/

upgradepkg --install-new mirror.lug.udel.edu/pub/slackware/slackware64-13.37/slackware64/a/*.txz
upgradepkg --install-new mirror.lug.udel.edu/pub/slackware/slackware64-13.37/slackware64/ap/*.txz
upgradepkg --install-new mirror.lug.udel.edu/pub/slackware/slackware64-13.37/slackware64/d/*.txz
upgradepkg --install-new mirror.lug.udel.edu/pub/slackware/slackware64-13.37/slackware64/l/*.txz
upgradepkg --install-new mirror.lug.udel.edu/pub/slackware/slackware64-13.37/slackware64/n/*.txz
upgradepkg --install-new mirror.lug.udel.edu/pub/slackware/slackware64-13.37/slackware64/x/*.txz
Now Apache by itself works (it did before), but when I enable PHP by uncommenting Include /etc/httpd/mod_php.conf I get a different error:

Code:
# /etc/rc.d/rc.httpd restart
# cat /var/log/httpd/error_log 
[Tue Sep 10 19:39:08 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 19:39:08 2013] [notice] Digest: done
[Tue Sep 10 19:39:09 2013] [notice] Apache/2.2.17 (Unix) DAV/2 configured -- resuming normal operations
[Tue Sep 10 19:39:14 2013] [notice] SIGHUP received.  Attempting to restart
[Tue Sep 10 19:39:14 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 19:39:14 2013] [notice] Digest: done
[Tue Sep 10 19:39:15 2013] [notice] Apache/2.2.17 (Unix) DAV/2 configured -- resuming normal operations
[Tue Sep 10 19:40:39 2013] [notice] SIGHUP received.  Attempting to restart
[Tue Sep 10 19:40:39 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 19:40:39 2013] [notice] Digest: done
[Tue Sep 10 19:40:40 2013] [notice] Apache/2.2.17 (Unix) DAV/2 configured -- resuming normal operations
[Tue Sep 10 19:40:40 2013] [notice] SIGHUP received.  Attempting to restart
[Tue Sep 10 19:40:41 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 10 19:40:41 2013] [notice] Digest: done
[Tue Sep 10 19:40:42 2013] [notice] seg fault or similar nasty error detected in the parent process
#
So now I am confused. When I install Slackware64 14 from the DVD onto a 64bit server at work I can configure LAMP easily. When I build a Linode with Slackware64 13.37 and then install all the packages in a, ap, d, l, n and x - I cannot.

Help please!
Thanks,
Bill
 
Old 09-11-2013, 04:42 AM   #6
canadensis
LQ Newbie
 
Registered: Sep 2013
Location: Sydney, Australia
Distribution: Slackware, FreeBSD
Posts: 18

Original Poster
Rep: Reputation: 3
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
# slackpkg install slackware64
4. Edited /etc/httpd/httpd.conf to set ServerName
5. Enabled and started httpd

Code:
# chmod 0744 /etc/rc.d/rc.httpd 
# /etc/rc.d/rc.httpd start
At this stage I could browse to my site and see "It works!"

6. Edited /etc/httpd/httpd.conf to set:

Code:
<IfModule dir_module>
    DirectoryIndex index.php index.html index.htm
</IfModule>
and uncomment

Code:
Include /etc/httpd/mod_php.conf
7. httpd is now dead:

Code:
# /etc/rc.d/rc.httpd restart
# /etc/rc.d/rc.httpd restart
# ps aux | grep httpd
root      9313  0.0  0.0   4408   580 pts/0    S+   04:31   0:00 grep httpd
# /etc/rc.d/rc.httpd restart
httpd not running, trying to start
# ps aux | grep httpd
root      9320  0.0  0.0   4408   580 pts/0    S+   04:31   0:00 grep httpd
#
The log looks like this. Note the seg fault or similar nasty error detected in the parent process:

Code:
# cat /var/log/httpd/error_log 
[Wed Sep 11 04:29:50 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Sep 11 04:29:50 2013] [notice] Digest: done
[Wed Sep 11 04:29:51 2013] [notice] Apache/2.2.25 (Unix) DAV/2 configured -- resuming normal operations
[Wed Sep 11 04:31:10 2013] [notice] SIGHUP received.  Attempting to restart
[Wed Sep 11 04:31:10 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Sep 11 04:31:10 2013] [notice] Digest: done
[Wed Sep 11 04:31:11 2013] [notice] Apache/2.2.25 (Unix) DAV/2 configured -- resuming normal operations
[Wed Sep 11 04:31:13 2013] [notice] SIGHUP received.  Attempting to restart
[Wed Sep 11 04:31:13 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Sep 11 04:31:13 2013] [notice] Digest: done
[Wed Sep 11 04:31:14 2013] [notice] seg fault or similar nasty error detected in the parent process
[Wed Sep 11 04:31:42 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Sep 11 04:31:42 2013] [notice] Digest: done
root@li127-7:/tmp#
Should I give up and use Debian? Windows? Wooden tools?

Bill
 
Old 09-11-2013, 07:08 PM   #7
YellowApple
Member
 
Registered: Mar 2013
Location: Truckee, California, United States
Distribution: Slackware, openSUSE, Debian,Slackware, openSUSE, OpenBSD
Posts: 91

Rep: Reputation: 33
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:
#----------------------------------------------------------------
# Slackware 14.0
#----------------------------------------------------------------
# mirrors.slackware.com (way the fsck too slow; not bothering)
# ftp://mirrors.slackware.com/slackware/slackware-14.0/
# Let's try slackware.mirrors.tds.net instead...
ftp://slackware.mirrors.tds.net/pub/slackware/slackware-14.0/
I assume I subsequently ran slackpkg update && slackpkg upgrade-all; I don't remember exactly. Whatever the case, it somehow managed to succeed; after rebooting the Linode, it successfully booted into Slackware 14.0.

Considering you're already in the habit of rebuilding the Linode as things go horribly awry, such an upgrade is definitely worth a shot.

Last edited by YellowApple; 09-11-2013 at 07:10 PM.
 
1 members found this post helpful.
Old 09-12-2013, 07:45 PM   #8
canadensis
LQ Newbie
 
Registered: Sep 2013
Location: Sydney, Australia
Distribution: Slackware, FreeBSD
Posts: 18

Original Poster
Rep: Reputation: 3
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
 
Old 09-12-2013, 11:19 PM   #9
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 292

Rep: Reputation: 39
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.
 
1 members found this post helpful.
Old 09-13-2013, 06:32 AM   #10
YellowApple
Member
 
Registered: Mar 2013
Location: Truckee, California, United States
Distribution: Slackware, openSUSE, Debian,Slackware, openSUSE, OpenBSD
Posts: 91

Rep: Reputation: 33
Quote:
Originally Posted by canadensis View Post
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
Doesn't appear to have touched it at all; it's still running some 3.9.x-linode kernel (I don't remember the exact version number; I'm not looking at that server at the moment...). /boot is completely empty aside from a readme file pertaining to initrd generation.
 
1 members found this post helpful.
Old 09-15-2013, 08:39 AM   #11
f4lc0n
LQ Newbie
 
Registered: Dec 2010
Location: Surabaya Indonesia
Distribution: Slackware
Posts: 9

Rep: Reputation: 1
I have got the same problem that httpd can't start at Linode.

Quote:
log from /var/log/messages
Sep 10 03:52:36 localhost kernel: traps: httpd[1802] trap invalid opcode ip:7f0be1ae9e20 sp:7fffedafbab8 error:0 in ld-2.13.so[7f0be1ad5000+21000]
Sep 10 03:52:43 localhost kernel: traps: httpd[1806] trap invalid opcode ip:7fd1d215ee20 sp:7ffff925d378 error:0 in ld-2.13.so[7fd1d214a000+21000]
Sep 10 03:52:46 localhost kernel: traps: httpd[1810] trap invalid opcode ip:7ff75062ae20 sp:7fff19d0dff8 error:0 in ld-2.13.so[7ff750616000+21000]
The tech support said, that the problem because of version glibc-2.13. (Slackware 13.37). Httpd need >= glibc-2.14 version to run. I have upgraded to Slackware current (glibc-2.17)and the problem solve.
 
Old 09-15-2013, 03:41 PM   #12
YellowApple
Member
 
Registered: Mar 2013
Location: Truckee, California, United States
Distribution: Slackware, openSUSE, Debian,Slackware, openSUSE, OpenBSD
Posts: 91

Rep: Reputation: 33
Quote:
Originally Posted by f4lc0n View Post
I have got the same problem that httpd can't start at Linode.



The tech support said, that the problem because of version glibc-2.13. (Slackware 13.37). Httpd need >= glibc-2.14 version to run. I have upgraded to Slackware current (glibc-2.17)and the problem solve.
Which version of Apache/httpd were you running? From a quick check of one of my (non-Linode, but up-to-date according to slackpkg) 13.37 VMs, the Apache version is 2.2.25, which seems to run acceptably on glibc-2.13. pkgs.org (Apache's httpd page doesn't include jack squat about dependendies, at least not in an obvious place) seems to indicate that a glibc as old as 2.2.5 is supported.
 
Old 09-15-2013, 10:56 PM   #13
canadensis
LQ Newbie
 
Registered: Sep 2013
Location: Sydney, Australia
Distribution: Slackware, FreeBSD
Posts: 18

Original Poster
Rep: Reputation: 3
Thanks all for your help. The problem turns out to be glibc: the (excellent) Linode support tells me

Quote:
This issue is due to a bug in the version of glibc that ships with Slackware 13.37 on x86_64. We recommend switch back to the 32-bit version, or upgrading to Slackware 14 to resolve this issue, as the bug does not affect 32-bit systems, and Slackware 14 has a newer version of glibc where this issue has been corrected.
I then asked the Linode team about upgrading, and the referred me to

Code:
ftp://ftp.slackware.com/pub/slackware/slackware-current/UPGRADE.TXT
and added:

Quote:
Additionally, your Linode uses the kernel specified in your configuration profile, not the kernel supplied by your distribution. This means that any kernel changes made inside your Linode have no effect unless you have configure PV-GRUB for your Linode, and your configuration profile shows that you are using our latest 32-bit kernel instead of PV-GRUB.
 
Old 09-15-2013, 11:00 PM   #14
canadensis
LQ Newbie
 
Registered: Sep 2013
Location: Sydney, Australia
Distribution: Slackware, FreeBSD
Posts: 18

Original Poster
Rep: Reputation: 3
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
# wget http://mirrors.slackware.com/slackware/slackware-13.37/slackware/ap/slackpkg-2.82.0-noarch-5.tgz
# installpkg slackpkg-2.82.0-noarch-5.tgz
3. Select a mirror:

Code:
# vi /etc/slackpkg/mirrors    # I used ftp://slackware.oregonstate.edu/pub/slackware/slackware-13.37/
4. Setup slackpkg

Code:
# slackpkg update gpg
# slackpkg update
5. Install additional disk sets

Code:
# slackpkg install a ap d l n x
x may not be needed, but something may use a library in x and in the Slackware spirit of the "full install", I included it.

6. Configure Apache /etc/httpd/httpd.conf:

- Specify

Code:
ServerName
- Add additional index file name extensions

Code:
<IfModule dir_module>
    DirectoryIndex index.php index.html index.htm
</IfModule>
- Uncomment

Code:
Include /etc/httpd/mod_php.conf
- Then

Code:
# chmod 0744 /etc/rc.d/rc.httpd 
# /etc/rc.d/rc.httpd start
You now have PHP enabled - all that remains is MySQL: over to you.
 
Old 09-15-2013, 11:20 PM   #15
YellowApple
Member
 
Registered: Mar 2013
Location: Truckee, California, United States
Distribution: Slackware, openSUSE, Debian,Slackware, openSUSE, OpenBSD
Posts: 91

Rep: Reputation: 33
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?
 
  


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
Lvm, nfs, raid0&5, linux networking, crontab, yum & rpm packages job description linux_learner12 Linux - Newbie 2 10-02-2012 07:40 AM
AOL UK && BT Voyager 100 && Slackware 10.2 && RP-PPPoE pitt0071 Linux - Networking 3 01-17-2006 07:10 AM
(FreeBSD && Fedora Core 4 && Slackware 10.0) Filesystem Support taylor_venable *BSD 1 07-14-2005 03:24 PM
Japanese canna won't work : Warning: &#12363;&#12394;&#28450;&#23383;&#22793;&am OrganicOrange84 Debian 3 06-30-2005 03:28 PM
Ph&#7909;c h&#7891;i d&#7919; li&#7879;u b&#7883; m&#7845;t???, c&#7913; pollsite General 1 06-27-2005 01:39 PM


All times are GMT -5. The time now is 08:51 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration