Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
02-22-2009, 10:22 PM
|
#1
|
LQ Newbie
Registered: Jul 2008
Distribution: Ubuntu, Vector
Posts: 19
Rep:
|
trouble installing apache on vector linux
hi there
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?
Any help is much appreciated!
|
|
|
02-23-2009, 03:30 AM
|
#2
|
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591
Rep:
|
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.
|
|
|
02-23-2009, 01:34 PM
|
#3
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
"./configure" alone will take care, that you get no modules.
Running 'configure' ( and 'make') as root is just unsafe,
and not at all recommended.
Code:
./configure --enable-mods-shared=all
will make the most modules.
And another 'configure' example :
Code:
./configure --enable-mods-shared=all --with-devrandom=/dev/urandom --with-ssl --enable-ssl --enable-cache --enable-disk-cache --enable-mem-cache --enable-deflate --enable-cgid --enable-proxy --enable-proxy-connect --enable-proxy-http --enable-proxy-ftp
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.
.....
Last edited by knudfl; 02-23-2009 at 02:05 PM.
|
|
|
02-23-2009, 08:05 PM
|
#4
|
LQ Newbie
Registered: Jul 2008
Distribution: Ubuntu, Vector
Posts: 19
Original Poster
Rep:
|
thanks for the replies!
But I am still having trouble.
I ran:
Code:
$ ./configure --enable-mods-shared=all
$ make
$ make install
and at the end of the output from "make install" I get a long serries of various "permission denied" and then series of errors like this:
Code:
make[3]: *** [install-modules-yes] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
Any ideas?
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?
Thanks!
|
|
|
02-23-2009, 08:11 PM
|
#5
|
Member
Registered: Feb 2009
Posts: 100
Rep:
|
./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.
linux
Last edited by gergely89; 02-27-2009 at 11:54 PM.
Reason: syntax error
|
|
|
02-23-2009, 11:58 PM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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'.
And again : A working 'httpd-2.2.x' can be found here
ftp://ftp.heanet.ie/mirrors/ftp.slac...pub/slackware/
example
ftp://ftp.heanet.ie/mirrors/ftp.slac....2/slackware/n
> > slackware/slackware-12.x/slackware/n
Or with 'Slapt-get' and 'Gslapt' in Vector .......
http://vectorlinux.com/products/vect...andard-edition
....
Last edited by knudfl; 02-24-2009 at 01:36 PM.
|
|
|
02-24-2009, 10:17 PM
|
#7
|
LQ Newbie
Registered: Jul 2008
Distribution: Ubuntu, Vector
Posts: 19
Original Poster
Rep:
|
Thanks for the tips about root, I am always learning.
But I am still having trouble installing apache.
I keep getting these errors at the end of the output of the "make" AND "make install" commands even after running "make distclean" and reconfiguring.
Code:
make[3]: *** [install-modules-yes] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
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.
Thanks again!
|
|
|
02-24-2009, 11:36 PM
|
#8
|
Member
Registered: Feb 2009
Posts: 100
Rep:
|
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.
|
|
|
02-25-2009, 08:07 AM
|
#9
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
@gergely89 # 8 :
Post #1 from the OP, Iceman99one, describes how he succesfully
did build 'httpd' with no options.
.....
Iceman99one : Which version of Vector are you using ? ?
Did you try the Vector package ?
Tried with 'Slapt-get' or 'Gslapt' in your Vector ?
.....
The command to install a <package.tgz> :
'su' .... # 'installpkg <package.tgz>'
.....
Last edited by knudfl; 02-25-2009 at 08:10 AM.
|
|
|
02-25-2009, 11:16 PM
|
#10
|
LQ Newbie
Registered: Jul 2008
Distribution: Ubuntu, Vector
Posts: 19
Original Poster
Rep:
|
I am using vector light version 5.9.
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)?
Thanks!
|
|
|
02-26-2009, 05:23 AM
|
#11
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
"executing installer scripts" and exting :
... usually means, that the package is installed.
Please try : 'ls /var/log/packages/ | grep httpd'
and ' cat /var/log/packages/httpd* '
If any result, the package is installed.
To create a list ( to /home/<username> ) of all installed packages :
'ls /var/log/packages/ > installed_packages.txt'
.....
|
|
|
02-26-2009, 10:45 PM
|
#12
|
LQ Newbie
Registered: Jul 2008
Distribution: Ubuntu, Vector
Posts: 19
Original Poster
Rep:
|
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...
any suggestions??
|
|
|
02-27-2009, 03:02 AM
|
#13
|
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591
Rep:
|
did you start the server? What did that respond?
|
|
|
02-28-2009, 02:59 PM
|
#14
|
LQ Newbie
Registered: Jul 2008
Distribution: Ubuntu, Vector
Posts: 19
Original Poster
Rep:
|
Ok when trying to start the server with "apachectl start" i get this error:
Code:
/usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_atomic_xchgptr
(/usr/sbin/httpd is my apache binaries right?)
I also tried to start it with "/etc/rc.d/rc.httpd start" but i get the same error.
Any ideas?
|
|
|
02-28-2009, 04:31 PM
|
#15
|
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591
Rep:
|
sudo /usr/sbin/apache2ctl start
you installed apache2, didn't you? Anyway you have to start it as root beause it will listen to port 80
|
|
|
All times are GMT -5. The time now is 03:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|