1830354 Members
2254 Online
110001 Solutions
New Discussion

configuring APACHE & SSH

 
Rajc
New Member

configuring APACHE & SSH

Hey guys, for my school project we are working with HP _ linux for which we can not get any of the the parts working :(. We have installed and followed all of the SSH and Apache installation documents. we have configured apache files. However we can not make User or Group (in the httpd.conf file) to be the root, we have to use "nobody" for both of them. At this point if we can run the server, it runs as a root + 5 instances of "nobody". :( eventhough its running we can not access it off of the web, it gives us timeout message.
Our SSH is online but when we try to access it it just hangs with no error message or any other activity. Can any one tell whats wrong with the Apache and SSH ( i know i am kind of vague but we have followed whatever its said to follow in the HP docs) what can be wrong? We have configured all of the compartments as explained in the HO docs. HELP thanks
5 REPLIES 5
Maxim Sinev
New Member

Re: configuring APACHE & SSH

What is a simptoms - is ssh daemon runing (try: ps ax | grep sshd). Is there anything complaining is system log (/var/log/messages, I guess). Is there any service reacheble (telnet, smtp, pop, ping)?

If yes, could you just try to reinstall ssh (and apache) frome the scratch, by downloading recent versions. My recomedation is to go with ssh till the success as it is a much simpler to configure.

My answer is a linux general, as I have no idea on what was written in HP docs and what is a HP_linux.
Doing nothing is still doing.
Mike McCue_1
New Member

Re: configuring APACHE & SSH

I think they were shooting for HP '+' Linux, not _...

In any case, you might want to check and see what port you've got httpd listening on (should be 80, but could be different)... Its in your http.conf file..

Do you have a firewall running on the box as well ? Do you have the http ports blocked ?

As far as running as other users besides nobody and root, are the 'other' users defined ? You can't have apache running as "apacheuser" if there is no "apacheuser" defined (IIRC, I could be off base...)

There's other things too, are you positive your network is running correctly ? Output of ifconfig is really helpful. Can you ping the server from a remote node... What happens if you get on the box and try to hit the http server locally ? (use 'lynx http://127.0.0.1/' (without quotes) on the command line, or if you have X available, run netscape and hit http://127.0.0.1/).. Do you get a demo page ? If you get a demo page locally on the box, but not from a remote box, and you're hitting the right port as defined in http.conf, then most likely your networking isn't correct...

Could be a bunch of things...
Rajc
New Member

Re: configuring APACHE & SSH

we ran ps and netstat, both ssh and apache seems to be running, except that we can not access SSH it gives us no errors no messages at all it just sits their. We have installed all the key needed etc. by following docs. The apaches is running as well but can t access it as well. it mozila gives time out message. We have just installed both of this services so we don t think of any reason to reinstall.
but we might have to
thanks
Jeffrey S. Sims
Trusted Contributor

Re: configuring APACHE & SSH

Rajc

Just a few questions here.
1. Did you set the ServerName directive in the httpd.conf file for the apache server?
2. Can the client and the server ping each other or you may even want to do a port scan on the server to see if it is listening on port 80.
3. What version of ssh is the server running, and does it prompt for a username and pass before it hangs?
4. You may want to check the sshd_config file for weird restrictions that you may not be aware of.

Hope some of this helps.
Jeffrey S. Sims
Trusted Contributor

Re: configuring APACHE & SSH

Rajc

One more thing, if you did change the ServerName directive in the apache httpd.conf file make sure that name resolves to the server IP address on both the client and server.

For example if you changed it to:

ServerName www.mydomain.com

Then make sure that both the server and client translates www.mydomain.com to your webserver IP address.

Should have said this earlier, but better late than never. Hope it helps.