Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Install error with apache

Status
Not open for further replies.

anastaciomelero

Technical User
May 31, 2005
13
US
I've been trying to install Apache onto my Linux system and I keep on getting the following:

make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/melerocorporation/apache/srclib/apr'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/melerocorporation/apache/srclib'
make: *** [install-recursive] Error 1

can someone please assist me on solving this problem. I'm using Version 9 of Red Hat Linux.
 
Which version of Apache are you trying to install ?
What is the command you use , and what is the full errors you get?


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Thank you for responding. I didnt notice till now, but I didnt add the error in the previous message where it states something about security, but below is the full detail. The apache version I am using is 2.0.54

[melerocorporation@localhost apache]$ make install
Making install in srclib
make[1]: Entering directory `/home/melerocorporation/apache/srclib'
Making install in apr
make[2]: Entering directory `/home/melerocorporation/apache/srclib/apr'
Making all in strings
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/strings'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/strings'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/strings'
make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/strings'
Making all in passwd
make[3]: Entering directory `/home/melerocorporation/apache
srclib/apr/passwd'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/passwd'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/passwd'
make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/passwd'
Making all in tables
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/tables'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/tables'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/tables'
make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/tables'
Making all in file_io/unix
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/file_io/unix'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/file_io/unix'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/file_io/unix'
make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/file_io/unix'
Making all in network_io/unix
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/network_io/unix'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/network_io/unix'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/network_io/unix'
make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/network_io/unix'
Making all in threadproc/unix
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/threadproc/unix'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/threadproc/unix'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/threadproc/unix'
make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/threadproc/unix'
Making all in misc/unix
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/misc/unix'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/misc/unix'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/misc/unix'make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/misc/unix'Making all in locks/unix
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/locks/unix'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/locks/unix'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/locks/unix'
make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/locks/unix'
Making all in time/unix
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/time/unix'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/time/unix'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/time/unix'make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/time/unix'Making all in mmap/unix
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/mmap/unix'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/mmap/unix'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/mmap/unix'make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/mmap/unix'Making all in shmem/unix
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/shmem/unix'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/shmem/unix'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/shmem/unix'
make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/shmem/unix'
Making all in user/unix
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/user/unix'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/user/unix'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/user/unix'make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/user/unix'Making all in memory/unix
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/memory/unix'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/memory/unix'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/memory/unix'
make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/memory/unix'
Making all in atomic/unix
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/atomic/unix'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/atomic/unix'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/atomic/unix'
make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/atomic/unix'
Making all in poll/unix
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/poll/unix'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/poll/unix'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/poll/unix'make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/poll/unix'Making all in support/unix
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/support/unix'
make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/support/unix'
make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/support/unix'
make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/support/unix'
Making all in dso/unix
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr/dso/unix'make[4]: Entering directory `/home/melerocorporation/apache/srclib/apr/dso/unix'make[4]: Nothing to be done for `local-all'.
make[4]: Leaving directory `/home/melerocorporation/apache/srclib/apr/dso/unix'
make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr/dso/unix'
make[3]: Entering directory `/home/melerocorporation/apache/srclib/apr'
make[3]: Leaving directory `/home/melerocorporation/apache/srclib/apr'
if [ ! -d /usr/local/apache2/include ]; then \
/home/melerocorporation/apache/srclib/apr/build/mkdir.sh /usr/local/apache2/include; \
fi;
mkdir /usr/local/apache2
mkdir: cannot create directory `/usr/local/apache2': Permission denied
mkdir /usr/local/apache2/include
mkdir: cannot create directory `/usr/local/apache2/include': No such file or directory
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/melerocorporation/apache/srclib/apr'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/melerocorporation/apache/srclib'
make: *** [install-recursive] Error 1


Thanks again.
 
As you can see you don't have permission on the pc to install anything in the folder [red]/usr/local[/red]

Go and create the dir [red]apache2[/red] in the /usr/local dir , by hand if you can, and try the installation again.

But if you cannot create it, even by hand, then either you have to choose another dir to install, or ask from the admin of the *nix you have for access to the /usr/local dir.


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
I replied yesterday, but I guess it didnt get sent, but in short, I had already tried creating the directory and I didnt have the permission to do so, so what I asked on the reply that never got sent out was how to install into another directory?

Thank you
 
Code:
./configure --prefix=/home/myusr/Apache
But i don't suggest you to do it, unless you don't have any other choise.
All of your installation options, have to be set while running configure.
Be carefull though to do it in a package of Apache that you just downloaded. If something goes wrong and you have to try again, delete the folder (that was created by untaring the file) and uncompress again the package of apache that you downloaded.


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Awesome! I got it installed, but now I got another error while starting Apache:
[melerocorporation@localhost bin]$ /home/melerocorporation/apache//bin/apachectl start
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

Thanks.
 
Be sure you have these in your httpd.conf file
Code:
ServerRoot "/home/melerocorporation/apache"
Listen 80
ServerName localhost:80
DocumentRoot "/home/melerocorporation/apache/htdocs"
if not, then post what you have.
And be sure when you use
[red]iptables -L[/red] on your shell
you get something like this
[red]ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:https[/red]


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Thank you for that. I did decided earlier today to install an earlier version of Apache and it actually installed and its running now, thanks to your help of course. I have one last question... Do you think you could give me a link where I can install PHP to run with Apache?

Thanks.
 
First of all you have to be sure that you used
[red]./configure --enable-module=so[/red]
when you compiled apache, so that the php module will be loaded dynamically (and every other module you want to use).

Now here are three links that will help you to get to now how to install and configure apache and how to install php properly. I assume you got Apache 2.0.54.

[blue]Apache[/blue]
-------
Apache Compiling and Installing
Apache - Configure the source

[blue]PHP[/blue]
-----
PHP Installation on Unix
PHP - Configure Options


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Okay, I've been following the instruction and it seems as though when I get to the PHP Install folder and after I configure it, when I use make I get this error:

make: *** No targets specified and no makefile found. Stop.

Now am I supposed to be doing the configuration, make and make install under the php install directory?

Thanks.
 
what were the commands you used to compile apache and what were the command for php
give me the full commands.



``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Well, i've tried different methods, but here is one set of commands I have tried the most with:

cd /home/melerocorporation/php
./configure --with-Apache=/home/melerocorporation/Apache
make
make install

Thanks
 
ok, you will have to recompile apache, install it and then
compile the php again and install it.

first untar the sourse of apache (anywhere) and 'cd' into that directory.
once in the directory
Code:
./configure --prefix="/home/melerocorporation/apache" --enable-module=so
make
make install
test if your apache installed correctly with
Code:
/home/melerocorporation/apache/bin/apachectl start
now you can open a browser and try You see the page of apache.
now close apache with
Code:
/home/melerocorporation/apache/bin/apachectl stop

Now up to PHP configuration
first untar the sourse of php (anywhere) and 'cd' into that directory.
Code:
./configure --with-apxs2=/home/melerocorporation/apache/bin/apxs --with-mysql
make
make install
The 'with-mysql' is optional if you use mysql on your system and you want to access it via php.

if all goes fine then go to this directory -> [blue]/home/melerocorporation/apache/conf[/blue]
and you will find a file named [blue]httpd.conf[/blue]

open this file (with a text editor) and inside (line 222 or something like that) you will see something like this
Code:
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so

after the line LoadModule ......
enter
Code:
LoadModule php4_module libexec/libphp4.so
if the php you have is version 5 then change the '4' to '5'.

now at the end of the file add this line too
Code:
AddType application/x-httpd-php .php

and up to start apache again with
Code:
/home/melerocorporation/apache/bin/apachectl start

I hope you do everything i wrote, form the start till the end.


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Oh i forgot,

if this line (change the '4' to '5' if you use PHP5)
Code:
LoadModule php4_module libexec/libphp4.so
causes any errors,

then

change it to
Code:
LoadModule php4_module modules/libphp4.so


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Okay. I followed your instructions and when I got up to the make and make install of php, it kept on showing the same message as the last time:

make: *** No rule to make target `install'. Stop.

I'm a try to attempt to do it again, but let me know if there is something I am doing wrong.


Thanks.
 
which package of php you downloaded and from which link??
and which version of apache did you downloaded?
It seems that might be something wrong with php package.


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Hey there. SOrry it took long to respond. My computer that I was using ended out having a bad CPU, so I was stuck on another computer with Windows. But anyway, I'm back onto Linux again(finally!) and I attempted again with the install and when I CD to PHP and install this is what I get:

Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /home/melerocorporation/apache/bin/apxs follows:
./configure: line 5467: /home/melerocorporation/apache/bin/apxs: No such file or directory
configure: error: Aborting

I don't think it can be the third one as I followed your directions in doing so, but let me know what I can do next.

THanks.

 
Ok lets start from the begining. Please answer these question so i can get an idea, of what might happen.

What linux do you have, which version, and which kernel version?

How did your apache ended up (at the first place) being in your home directory?

which version of apache is it?

Can you become the root in this PC ?

If you enter on your shell > ps -ajx
is there any 'httpd' running and what is the path to it? (maximize the shell screen so you can see the output better)

Try on your prompt these commands and paste the output?
(first try the commands after you > cd /home/myuser/Desktop to see if they run).
Otherwise cd into the dirs where the executables are.

perl -V
httpd -V
apachectl -V
php -v
which perl
which php
which httpd
which apachectl
echo $PATH

Paste the path from which you run each command, so you can take the desired output.
They will take some space to paste. No worries.


To Forum Administrator
------------------------
If you care for the space, let me know so i can give an email to do all these in private. I don't mind, either way.
Thanks


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Alrighty. To start with, I am using Red Hat Linux 9. I'm unsure of the kernel version. As to Apache and PHP, I'm using the latest available. The reason why I ended up installing into the home root is because I get an error when I install to the default. I checked the httpd test and I couldnt find it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top