?
Solved

Apache upgrade Troubleshooting Ideas

Posted on 2003-02-21
9
Medium Priority
?
190 Views
Last Modified: 2010-03-04
I upgraded our Apache server from 1.9 to 1.26.  But now the web pages aren't coming up.  I can go to the domain, and apache is running the correct version, but there is some kind of characteristic that is unknown to me.  For example, lets say you have the following structure:

/var/apache/htdocs
/var/apache/cgi-bin

In the cgi-bin, there is a script called: runit

This appears to be some kind of "doorway" to allow web pages to be served to the public.

The characteristics of the server are as follows:

http://www.-mydomain-.com  (Uhmm...this is is just an example, ofcourse)

If you go to this site, you'll immediately be redirected to:

http://www.-mydomain-.com/adirectory/runit/many/paramters/77322s/ewryisdf/532/x

Now...I've searched for a directory called: adirectory
And it doesn't exist on the server.  I can't find a reference to it...not even a symbolic link.  adirectory seems to be another name for the cgi-bin directory, because runit is located there.

After the upgrade...some kind of configuration was lost...

I'm not too familiar with apache.  I'm running it on a Solaris 8 SUN system.  So if you reply...speak slow...  :^)

I'd like to have anyones input on what they think is going on, and what I should do to try to fix it.  I normally give most everyone who replies points...because all expert input if valuable to me.  I appreciate any comments.
0
Comment
Question by:ramble
[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
  • 5
  • 3
9 Comments
 

Expert Comment

by:baeuml
ID: 8002925
Look in your httpd.conf and change the ScriptAlias directive to:

ScriptAlias /adirectory/ /var/apache/cgi-bin/

A request for http://myserver/adirectory/runit will now cause the server to run the script /var/apache/cgi-bin/runit

0
 

Author Comment

by:ramble
ID: 8005533

Well...I've seemed to have installed this upgrade version of apache in a different directory than it was previously installed.  I see that the old httpd.conf file had a reference to it the script at:

/usr/apache/cgi-bin but it looks like I installed it at:
/var/apache/cgi-bin.  

I changed the reference to match my new installed directory...and it didn't seem to help.

The old httpd.conf also seems to have a lot of: LoadModule XXX What does that do?

0
 
LVL 8

Accepted Solution

by:
heskyttberg earned 800 total points
ID: 8029976
Hi!

The LoadModule XXX is to load apache modules at runtime to keep down memory consumtion.

This is somewhat difficult to achive on Solaris and not to stable.

I got it working after a week of detective work.
It rquires quite a few extra paramters to configure if you want to use loadable modules in Solaris.

But if you need SSL I think you have to get this working.
I also requires the 'so' module.

It was almost 2 years since I did this in Solaris, you had to add some configure vairables like HTTPD_SHARED_CORE and ROW_CHAINING, I think it was in order to get dynamic modules.

When I did it I couldn't use the newest gnu compiler either there were som bugs in it.

As baeuml suggests there must be som sort of alias in order to get adirectory to work.

Either by a regular alias:
Alias adirectory "/www/cgi-bin"
<Directory "/www/cgi-bin">
  Options +ExecCGI
  Allow override none
</Directory>

For example, this requires you somewhere have AddHandler cgi-?? .pl .cgi

Or by the ScriptAlias.
But keep the cgi-bin ScriptAlias, copy that and name the new one to adirectory.

I'm not sure how that looks you can find it in your httpd conf somewhere ocmmented out.

Regards
/Hans - Erik Skyttberg
0
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 

Author Comment

by:ramble
ID: 8034628
Ok...I've got one last question, then I'll close out this topic.

Since I've installed the apache in a different directory, I want to move, or delete, the previous installation.  However...the previous installation seems to have installed some files in several different directories, whereas the new installation is more central.  Is there a way to determine what files my current apache installation is using, so I can delete the other files?
0
 
LVL 8

Expert Comment

by:heskyttberg
ID: 8034783
Hi!

If you are atlking about the Apache that comes with Solaris 8, this is installed all over the place.

You should be able to run the admintool, open the packages section locate apache and remove it.

Or use the pkg tools, I have no idea what the apache pkg is called.

This will stop the Solaris document web to function though.

Regards
/Hans - Erik Skyttberg
0
 

Author Comment

by:ramble
ID: 8042580
heskyttberg

In response you your LOADMODULE...

If I used the old httpd.conf file, and "copied and pasted" the LOADMODULE from the old one, into the new one...do you know what kind of adverse effect that my have?

Thanks for you help.
0
 

Author Comment

by:ramble
ID: 8042596
0
 
LVL 8

Expert Comment

by:heskyttberg
ID: 8042869
Hi!

You might get some errors if you don't have thoose modules compiled and then just need to remove them from the conf file.

You also may have to change the path to thoose modules.

Regards
/Hans - Erik Skyttberg
0
 

Author Comment

by:ramble
ID: 10893463
Thanks_ramble

Just Ignore the last comment
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

752 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