Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Apache 1.3.12 setup

Posted on 2000-03-03
13
Medium Priority
?
302 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 6
13 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2582212
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_
ID: 2588176
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
ID: 2588236
What configure options did you use and what dir does ~web translate to?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:cokeman_
ID: 2588429
~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
ID: 2588523
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_
ID: 2588543
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
 

Author Comment

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

Expert Comment

by:jlevie
ID: 2588559
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_
ID: 2588587
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
ID: 2588610
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 200 total points
ID: 2588689
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_
ID: 2589491
Well, it worked.. go figure =)
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2589976
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

618 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