LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware without DE for web and FTP server. (http://www.linuxquestions.org/questions/slackware-14/slackware-without-de-for-web-and-ftp-server-4175431119/)

Maris-S 10-08-2012 08:13 AM

Slackware without DE for web and FTP server.
 
Hello!

I just installed Slackware 14 for Web, FTP and maybe Samba server, also SSH is necessary, but I decided to remove everything what is for desktop environments, so only command line. I didn't install this package series:

Code:

KDE
KDEI
L
X
XAP
XFCE
Y

So, everything is working, but I noticed that now in apache log there is warning:

Code:

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
but there is no this warning when making default installation.

So I wanted to ask which package series I still have to install?



And one more question, maybe even not slackware related, but after installing Slackware 14 in apache httpd.conf I cannot use - and + options at the same time in one line, I mean before I could use:

Code:

Options -Indexes FollowSymLinks
But now I'm getting error on this:

Code:

AH00526: Syntax error on line 246 of /etc/httpd/httpd.conf:
Either all Options must start with + or -, or no Option may.

I solved this by changing Options line to:

Code:

Options FollowSymLinks
Options -Indexes

but now I'm not sure if I doing this right way? I couldn't find any good answer in google.


Thank you!

TobiSGD 10-08-2012 09:00 AM

You have to install the L series, it contains necessary libraries.

Didier Spaier 10-08-2012 09:06 AM

The "slackpkg file-search libX11.so.6" command would have tell you that this file is included in the package libX11 that you did not install but is included in the X series.

So make a full installation or leave alone at most only KDE, KDEI, XFCE and Y. Generally there is no gain and especially no gain in performances in not doing a full install, but more hassle about missing dependencies. Slackware is supposed to work as a full installation.

kikinovak 10-08-2012 09:19 AM

Even on a headless server, I usually install the full L and X series, only leaving out KDE, KDEI and XAP (and XFCE since the latest release).

Y is vital for a server, though. :p

Maris-S 10-08-2012 10:09 AM

Thank you for your answers. Well it looks like easiest way would be to install everything. :) I think I will try not to remove L and X package series from my list in my first post.

I also managed to write apache directory options in one line, now I have:

Code:

Options -Indexes +FollowSymLinks
I'm not sure since when I have my backup httpd.conf file where I have line

Code:

Options -Indexes FollowSymLinks
but it looks like now apache do not allow to use + or - symbols within one options line, if one option has this signs then the rest options should have it either. Maybe it was changed in some version and I missed it.

kikinovak 10-08-2012 01:22 PM

If you really want to have a lighter system, you can eventually do without L and N, and then hunt down missing libraries with George Vlahavas' nifty 'depfinder' tool:

http://depfinder.sourceforge.net/

Gave it a spin some time ago. Works nice.

Alien Bob 10-08-2012 01:39 PM

Quote:

Originally Posted by Maris-S (Post 4800208)
Hello!

I just installed Slackware 14 for Web, FTP and maybe Samba server, also SSH is necessary, but I decided to remove everything what is for desktop environments, so only command line. I didn't install this package series:

Code:

KDE
KDEI
L
X
XAP
XFCE
Y

So, everything is working, but I noticed that now in apache log there is warning:

Code:

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
but there is no this warning when making default installation.

So I wanted to ask which package series I still have to install?

If I were you, I'd take the easy way: download the Slackware sources and SlackBuild script of the "gd" package, and then compile a new gd package that does not depend on X - using Slackware's own SlackBuild script.
Code:

links -c "open http://slackware.osuosl.org/slackware-14.0/source/l/ ; mirror gd"
cd gd
BUILD="4_nox" ./gd.SlackBuild
upgradepkg /tmp/gd-*-4_nox.txz

By giving your new package a build tag of "4_nox" you will be able to differentiate it from the stock Slackware package.
And if you are using slackpkg to keep your system up-to-date, you can add this line to "/etc/slackpkg/blacklist" to prevent your new gd package from being overwritten by Slackware's own version:
Code:

[0-9]+_nox
Eric

mariostg 10-08-2012 02:14 PM

Haven't played with php for a while, but If you don't need the gd library, which is very possible, comment the line extension=gd.so in /etc/httpd/php.ini. See how that goes.

Maris-S 10-09-2012 02:52 AM

Thanks for answers again. :)

Thanks Eric for suggestion, I compiled gd package, but still getting the same warning, and library is not loaded. I think I will install full installation, just to be sure that everything is working. I'm just curious why gd library didn't work for me, after I recompiled it?

I see that during start up there are some other warnings about missing libraries, looks like GTK related. I think web server would work fine without them, but anyway it's better to have all dependencies installed. It would be too time consuming for me to find all dependencies. :)

Kikinovak, thanks for link, I will check, looks like it can be useful.

Mariostg, gd library will be necessary.


All times are GMT -5. The time now is 01:43 PM.