Solved

Apache 1.3.12 setup

Posted on 2000-03-03
13
288 Views
Last Modified: 2013-12-16
I'm setting up a Solaris 7 system (intel), and I'm trying to install apache 1.3.12.  I ran the configure and make, and it created the httpd binary in src/. I then modified the conf files similar to how my old system is setup. My problem now, is that I can't start the daemon.  I tried ./httpd from the src/ directory, but that didn't work ("ps -A | grep http" shows nothing).

Suggestions?
0
Comment
Question by:cokeman_
  • 7
  • 6
13 Comments
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Okay, you've got it built, now do a "make install" as root. The default from configure will be to install into /usr/local/apache. If that's not acceptable you'll have to re-run configure and specify a new installation directory, like "./configure --prefix=/path-to/apache" and them re-make everything.

When it's been installed you need to setup Apache's configuration. The file to modify is /path-to/apache/conf/httpd.conf. Make sure that you properly set ServerName on Solaris. If "hostname" returns the short name for your system, you'll have to set ServerName to be the FQDN of the system.

When the conf file looks good, check it by executing "/path-to/apache/bin/httpdctl configtest" to check the config file for errors. If everything looks okay, start the server with "/path-to/apache/bin/httpdctl start".

0
 

Author Comment

by:cokeman_
Comment Utility
I have run make install before, and I made a user called web, and installed it in ~web/apache_1.3.12.  The httpd.conf looks ok.

There is no httpdctl file, but there is an apachectl file which the readme files said to run.  when I do 'apachectl configtest', it returns 'Syntax OK'.  When I do 'apachectl start', it returns 'apachectl start: httpd started'.  However, ps -A still doesn't show any sign of a web server running..
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
What configure options did you use and what dir does ~web translate to?
0
 

Author Comment

by:cokeman_
Comment Utility
~web is /export/home/web and while in /export/home/web/apache_1.3.12/bin, I ran the command './apachectl start'.

Here are some of the settings in httpd.conf that I changed (or looked at long enough that it made an impact on me):
ServerType standalone
ServerRoot /export/home/web/apache_1.3.12
Port 80
User nobody
Group #-1
ServerAdmin root@xxx.xxx.uci.edu
ServerName xxx.xxx.uci.edu
DocumentRoot /export/home/web/apache_1.3.12/htdocs
HostnameLookups On


On a side note, there was this comment with Port 80 --
# Port: The port to which the standalone server listens. For
# ports < 1023, you will need httpd to be run as root initially.

I tried changing User to root and it complained about that, telling me that I needed to set some flag and recompile it..
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Uh, my mistake on the httpdctl, they've changed it yet again (back to apachectl). I hadn't yet fetched the 1.3.12 and was looking at the prior version.

Gimme a couple of hours & I'll set 1.3.12 up and be able to tell you exactly how to fix it.

I still need to know what your configure options were. If you're not sure what you used, they are recorded in "config.status" at the top level of the source tree.
0
 

Author Comment

by:cokeman_
Comment Utility
Here are the contents of config.status

#!/bin/sh
##
##  config.status -- APACI auto-generated configuration restore script
##
##  Use this shell script to re-run the APACI configure script for
##  restoring your configuration. Additional parameters can be supplied.
##

../configure \
"--with-layout=Apache" \
"--prefix=/export/home/web/apache_1.3.12" \
"$@"
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:cokeman_
Comment Utility
Maybe I should just try a different version of apache =)
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Naa, it'll work... Just take me a bit to get one built and check the differences between 1.3.12 and the 1.3.9/1.3.11 versions that I've got running.
0
 

Author Comment

by:cokeman_
Comment Utility
hmm.. I just tried apache 1.3.11 and it worked straight out.. no problems whatsoever..

If you feel like going on with the 1.3.12 thing though, feel free to and I'll keep up to speed with you on that..

If not, go ahead and post an answer to get your points since your answer is technically correct =)
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
I'll wait until I get the 1.3.12 up and then post the correct answer for that. I had intended to do so this week anyway. So stay tuned.
0
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
Comment Utility
Okay, I've got 1.3.12 up. The configure options that I used were:

../configure \
"--with-layout=Apache" \
"--prefix=/opt/Apache" \
"--enable-module=most" \
"--enable-shared=max" \

Those aren't quite the same as yours and the last two come highly recommended. The Apache docs will explain why. The directory wouldn't matter unless there was some odd perms set on it. You might try letting Apache create the dir (point it somewhere on a local filesystem). I compiled with gcc and with Sun's cc for this test. I normally build everthing as an ordinary user and then become root for the install, config, and start. So after configure and build I su'd to root and ran "make install"

The only thing I needed to change in the httpd.conf file was:

Port 80
ServerName chimera.domain.com
     (ServerName changed to protect, who knows)

"apachectl configtest" returned OK, so I started it with "apachectl start". Checking ps -ef showd the http instances and I was able to point a browser at "http://chimera.domain.com" and the default Apache page came up.

I'll call that the answer and we can continue to work this until we figure out what's happening with your's
0
 

Author Comment

by:cokeman_
Comment Utility
Well, it worked.. go figure =)
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Did you have a chance to look at what "enable-module=most" and "enable-shared=max" does for you?

The resultant server has a lot more features and it's much easier to add other (not distribution) modules. The memory foot print for the child servers that actually serve pages is quite a bit less as a lot of what they migh need is shared between all children.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now