Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am having trouble installing apache webserver. I am running Vector linux 5.9 light. I just dowloaded the latest release. I uncompressed it as then as root I ran:
Code:
# ./configure
# make
# make install
Everything seemed to work fine, but when I look in the default install location, /usr/local/apache2, all I see is the modules directory with nothing in it. Is there something I missed?
if you want apache to reside in 1 directory you could set that by
./configure --prefix=/usr/local
as far as I remember. ( btw. I dont know vector linux.)
./configure --help
should display the available options.
More documentation http://httpd.apache.org/
.....
P.S.: And by the way, there is no need to compile it,
there is a Slackware 'httpd' package for all versions
of Vector.
.....
Also:
Being relatively new to linux why is it unsafe to run "./configure" and "make" as root?
And where can i find the pre built httpd package for slackware?
./configure and make are only compiling the final binaries, so there is no reason why this has to be done as root. Usually it's not a problem to do it as root, but then again, you never know what's hidden in a complex Makefile, so doing the whole build procedure as some average user will protect the relevant parts of your system from unintended harm.
'make install' is the only part that needs root privileges to copy the binaries into the relevant locations.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,493
Rep:
To reconfigure 'httpd' : Unpack it to /home/Iceman99one/tmp/
as an example. Then it is easier to do the commands as user.
Every time before './configure' is run again, it is necessary
to do 'make distclean'. ( Or start from scratch again with a
new 'tar xvf httpd-2.2.x..' to a new location........ you can
have as many temporary directories in your /home/<username> ,
as you want.)
A system cannot be corrupted, deleted, changed, infected
when run as ordinary user. ( At least, it's very difficult
to do. )
If you do non admin tasks as root,
you will destroy the system yourself by accident, some day.
And intruders can do it too. As gergely89 says : The intrusion
or 'deleting all files' can happen from a 'Makefile'.
I downloaded the slackware package, but i am confused on how to install it. Could someone give me a quick set of instructions, or point me to a URL that has some.
VectorLinux is based on Slackware, but there are certainly some differences between this and a vanilla Slackware installation. If you want to compile Apache from sources anyway, then you should maybe doing it using the sources from http://apache.org/ directly. Make sure to do a first build without any options, go for the default settings. Keep an eye on the Apache documentation to find out where your results start out being different from the expected.
I tried using "installpkg" to install my downloaded package as root. It didn't work.
It starts fine then it says:
"executing installer scripts"
Then it exits and has done nothing.
I am having no luck with gslapt either. No httpd package shows up.
I tried vector because I wanted to experiment with a webserver on my very old box. I looked it up and thought it might do the trick.
I would have used xubuntu (having ubuntu on my other box) but i didn't know if it would run well on 128MB of ram and 1.4GHz pentium 4.
But after this vector thing, I think I might try another distro. (something debian maybee...)
Do you think xubuntu would run well? Or do you have any other suggestions (something light cause I only have 6GB hard drive and 128MB ram)?
I checked /var/log/packages and it seemed to have installed ok after all. I think...
I tried entering "localhost" in my browser but i get "server not available check you URL" etc...
I dug out my httpd.conf file and tried playing with the directory it looks for "index.html" when it is called.
But no luck...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.