Link to home
Start Free TrialLog in
Avatar of ramble
rambleFlag for United States of America

asked on

Apache upgrade Troubleshooting Ideas

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.
Avatar of baeuml
baeuml

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

Avatar of ramble

ASKER


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?

ASKER CERTIFIED SOLUTION
Avatar of heskyttberg
heskyttberg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ramble

ASKER

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?
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
Avatar of ramble

ASKER

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.
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
Avatar of ramble

ASKER

Thanks_ramble

Just Ignore the last comment