Operating System - HP-UX
1833772 Members
2317 Online
110063 Solutions
New Discussion

problems installing apache

 
SOLVED
Go to solution
Ben Wilson_4
Advisor

problems installing apache

Hi,
i'm trying to install apache ""ApacheStrong.APACHE-STRONG,r=1.3.19.22" on hp-ux 11.0. During the installation of the .depot, i got the following errors:

* Summary of Analysis Phase:
* 2 of 2 filesets had no Errors or Warnings.
* The Analysis Phase succeeded.


* Beginning the Install Execution Phase.
* Filesets: 2
* Files: 3871
* Kbytes: 45671
* Installing bundle "B9415AA,r=1.3.19.22.06" .
* Installing fileset "ApacheStrong.APACHE-STRONG,r=1.3.19.22" (1
of 2).
* Installing fileset "ApacheStrong.TOMCAT,r=1.3.19.22" (2 of 2).
* Running install clean command /usr/lbin/sw/install_clean.
NOTE: tlinstall is searching filesystem - please be patient
NOTE: The following are messages for core transition links
WARNING: Can't create core transition links since files/directories exist:
/etc/btmp -> /var/adm/btmp
/etc/wtmp -> /var/adm/wtmp
NOTE: Complete with message(s) displayed above
WARNING: The command "/usr/lbin/sw/install_clean" had warnings. The
installation will continue. Check the above output for
details about the warnings.

The files in "etc" are empty files. Can anyone enlighten me as to the purpose of these files?

The the install dies hard-core:


* Beginning the Configure Execution Phase.
ERROR: Failed to start the server.
ERROR: The "configure" script for "ApacheStrong.APACHE-STRONG" failed
(exit code "1"). The script location was
"/var/tmp/BAAa11754/catalog/ApacheStrong/APACHE-STRONG/configure".

* This script had errors but the execution of this product will
still proceed. Check the above output from the script for
further details.

* Summary of Execution Phase:
ERROR: Installed ApacheStrong.APACHE-STRONG,r=1.3.19.22
ERROR: 1 of 2 filesets had Errors.
* 1 of 2 filesets had no Errors or Warnings.
ERROR: The Execution Phase had errors and warnings. See the above
output for details.

I have all the files isntalled, but httpd returns "sh: ./httpd: Execute permission denied." huh? Any suggestions?

Thanks,
Ben
10 REPLIES 10
Santosh Nair_1
Honored Contributor

Re: problems installing apache

The wtmp and btmp files which actually reside in /var/adm/. These files keep track of user login and bad login respectively. You can use the last or lastb command to view these files.

As for the second error...check the permissions on httpd, i.e. the correct ownership and permissions.

Also check /var/adm/sw/swagent.log for more details on the errors.

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
Sridhar Bhaskarla
Honored Contributor

Re: problems installing apache

btmp and wtmp messages are only warning. So you don't need to worry about them.

Regarding the permission denied message, check if this depot is meant for hp-ux 11.0 or not. Do a file on httpd and see if it gives our PA-RISC1.1 executable or not. Also, it should have execute permissions for httpd. Try running it as ./httpd

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Ron Cornwell
Trusted Contributor

Re: problems installing apache

From the output it appears that apache is failing because it is trying to create the files /etc/btmp and /etc/wtmp and they already exist. I would rename the files try the install again. If that doesn't work you can move the files back. HTH.
Wodisch
Honored Contributor

Re: problems installing apache

Hello Ben,

just check the permissions of those links with "ls -l" wether they have the "t" permission set. If not, try "tlremove" and "tlinstall".

HTH,
Wodisch
John Bolene
Honored Contributor

Re: problems installing apache

I installed APACHE and had no problems.

My files look like
lrwxr-xr-t root sys btmp -> /var/adm/btmp
same for wtmp

/var/adm/btmp does not exist
wtmp looks like
-rw-r--r-- root sys /var/adm/wtmp
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Ben Wilson_4
Advisor

Re: problems installing apache

wow! i actually got a response from one of my posts :)

Thanks, here's what i got:

-rwxr-xr-x 1 bin bin 4726264 Oct 6 19:19 httpd
[(root) @ hbgint05 (/opt/apache/bin)]
# file httpd
httpd: ELF-64 executable object file
[(root) @ hbgint05 (/opt/apache/bin)]
# ./httpd start
sh: ./httpd: Execute permission denied.
[(root) @ hbgint05 (/opt/apache/bin)]
# ./httpd
sh: ./httpd: Execute permission denied.
[(root) @ hbgint05 (/opt/apache/bin)]

I'm really not sure what is wrong at this point. I installed this from B9415AA_ia1319.depot. This is on an L 2000 series server running HP-UX 11.0.

I'm fairly new to UNIX, but it doesn't look like a permissions issue, does it?

Ben
Santosh Nair_1
Honored Contributor
Solution

Re: problems installing apache

The problem seems to be that fact that you installed the "wrong" version of Apache. The ia in B9415AA_ia1319.depot stands for Itanium. The L2000 uses the PA-Risc chip, not the Itanium chip.

Download the Apache for 11.0/11i from the following URL:

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B9415AAPA1319

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
John Bolene
Honored Contributor

Re: problems installing apache

I normally use ./apachectl start

Do you have the apache www user setup?

have you modified the few things that are needed in /opt/apache/etc/httpd.conf such as server name or IP?
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Kevin Wright
Honored Contributor

Re: problems installing apache

check your logfile, it will tell you why apache is not starting. probably wrong username/group name in httpd.conf.
Ben Wilson_4
Advisor

Re: problems installing apache

Thanks Santosh! I swear that was the link i followed to download it the first time.

Regardless, thanks everyone for you suggestions.

Have a good weekend

Ben