LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 02-22-2009, 09:22 PM   #1
Iceman99one
LQ Newbie
 
Registered: Jul 2008
Distribution: Ubuntu, Vector
Posts: 19

Rep: Reputation: 0
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!
 
Old 02-23-2009, 02:30 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
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.
 
Old 02-23-2009, 12:34 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
"./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 01:05 PM.
 
Old 02-23-2009, 07:05 PM   #4
Iceman99one
LQ Newbie
 
Registered: Jul 2008
Distribution: Ubuntu, Vector
Posts: 19

Original Poster
Rep: Reputation: 0
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!
 
Old 02-23-2009, 07:11 PM   #5
gergely89
Member
 
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
./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 10:54 PM. Reason: syntax error
 
Old 02-23-2009, 10:58 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 12:36 PM.
 
Old 02-24-2009, 09:17 PM   #7
Iceman99one
LQ Newbie
 
Registered: Jul 2008
Distribution: Ubuntu, Vector
Posts: 19

Original Poster
Rep: Reputation: 0
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!
 
Old 02-24-2009, 10:36 PM   #8
gergely89
Member
 
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
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.
 
Old 02-25-2009, 07:07 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@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 07:10 AM.
 
Old 02-25-2009, 10:16 PM   #10
Iceman99one
LQ Newbie
 
Registered: Jul 2008
Distribution: Ubuntu, Vector
Posts: 19

Original Poster
Rep: Reputation: 0
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!
 
Old 02-26-2009, 04:23 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
"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'
.....
 
Old 02-26-2009, 09:45 PM   #12
Iceman99one
LQ Newbie
 
Registered: Jul 2008
Distribution: Ubuntu, Vector
Posts: 19

Original Poster
Rep: Reputation: 0
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??
 
Old 02-27-2009, 02:02 AM   #13
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
did you start the server? What did that respond?
 
Old 02-28-2009, 01:59 PM   #14
Iceman99one
LQ Newbie
 
Registered: Jul 2008
Distribution: Ubuntu, Vector
Posts: 19

Original Poster
Rep: Reputation: 0
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?
 
Old 02-28-2009, 03:31 PM   #15
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
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
 
  


Reply



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
Installing Vector Linux using a PCMCIA CDROM snacksnjackson Linux - Laptop and Netbook 1 03-16-2007 12:52 PM
Old Vector Linux trouble. antiquepc Linux - Newbie 3 02-15-2007 12:19 PM
New person installing vector linux nicosiabr VectorLinux 1 07-30-2006 11:02 AM
installing wine in vector linux easuter Linux - Software 1 02-11-2006 10:30 AM
Help Installing Vector Linux burningsun1981 Linux - Newbie 3 07-02-2005 07:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration