Apache webserver troubleshooting


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Apache webserver troubleshooting
# 8  
Old 07-22-2014
Corona688: I have no other option than compiling as i dont have root access and engaging administrator is another hassel .
# 9  
Old 07-22-2014
SElinux is probably just doing its job, preventing users from running their own local daemons without the administrator's knowledge and approval.
# 10  
Old 07-22-2014
Akshay Hegde : Compiling is not an issue . I see all the http processes ,starting the webserver is also not an issue . But the page is not getting displayed. any inputs ?

---------- Post updated at 10:58 AM ---------- Previous update was at 10:57 AM ----------

Corona688 . But process are running .

Code:
/local/tools/apache/logs > ps -ef |grep http
weather  22178     1  0 Jul21 ?        00:00:03 /local/tools/apache/bin/httpd -k start
weather  22179 22178  0 Jul21 ?        00:00:23 /local/tools/apache/bin/httpd -k start
weather  22180 22178  0 Jul21 ?        00:00:23 /local/tools/apache/bin/httpd -k start
weather  22182 22178  0 Jul21 ?        00:00:23 /local/tools/apache/bin/httpd -k start

# 11  
Old 07-22-2014
Quote:
Corona688 . But process are running.
So what? That doesn't mean it's going to work.

I suspect this is SElinux doing its job, preventing users from running network daemons without the administrator's knowledge and approval. This is usually a useful function... An attacker can't just just dump in an IRC server or whatever to coordinate a botnet, even if they did manage to get in.

So you will likely need to ask your administrator to enable networking on that port for the daemon you installed without his knowledge.

Or, more likely, just get him to install an apache server properly.
# 12  
Old 07-22-2014
I asked the administrator to open ports for 8080 which I am using a non root user port . So is that still a problem on SELinux

Code:
/local/tools/apache/logs > netstat -na|grep 8080
tcp        0      0 149.186.251.174:8080        0.0.0.0:*                   LISTEN

---------- Post updated at 11:10 AM ---------- Previous update was at 11:08 AM ----------

Only problem when having root user to install webserver is everytime you want to update httpd.conf you need root user to update . Which is not feasible . So its always good to compile your own source code and edit the configuration as possible .
# 13  
Old 07-22-2014
Quote:
Originally Posted by ajayram_arya
I asked the administrator to open ports for 8080 which I am using a non root user port . So is that still a problem on SELinux
Things which don't require explicit permission in ordinary Linux, do in SElinux -- that is the entire point of having it. SElinux is "security-enhanced Linux". It adds many extra layers of checks and controls. Often we get people coming here having problems with ordinary programs in SElinux, the solution of which is to enable certain special SElinux options, permissions, or bug their administrator to do so. It's a completely different kettle of fish.

So it's entirely possible that you're not getting the access you need just because SElinux isn't configured to allow full access to rogue daemons which someone just happened to upload without Administrator oversight or approval.

Quote:
Only problem when having root user to install webserver is everytime you want to update httpd.conf you need root user to update . Which is not feasible . So its always good to compile your own source code and edit the configuration as possible.
Most distributions of apache organize it into sub-files, so you don't need to edit httpd.conf at all. File access permissions or a line in sudoers or whatever could easily be set up so you could edit any of those files yourself anyway.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Web Development

How to enable x-client-ip address in apache webserver LogFormat?

how to enable x-client-ip address in apache webserver LogFormat i tried below option, but no luck... 1. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined 2. LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy 3.... (0 Replies)
Discussion started by: raghur77
0 Replies

2. Emergency UNIX and Linux Support

Netcat ( nc -l ) as webserver

Dear Linux guru's I am trying to create a webserver using nc (netcat only) on RHEL 7.2 running on bash shell. now the easy thing is to get nc listing to a port and respond back $ while true; do { echo -e 'HTTP/1.0 200 OK\r\n'; set; } | nc -l 7877; done This when called from a... (3 Replies)
Discussion started by: chakrapani
3 Replies

3. HP-UX

Help troubleshooting new Apache installation on HPUX 11.31

Hi Guys! I have a very odd problem while installing Apache in an HPUX 11.31, What I did was downloaded the latest webserver suite from hp software, installed using swinstall, everything was extracted properly. The apache version was 2.2.15 Now the issue comes when I run it, it starts... (3 Replies)
Discussion started by: feliper
3 Replies

4. UNIX for Advanced & Expert Users

apache webserver url redirection

I need help in apache url redirection: I have added the below command in httpd.conf and it is working fine. Redirect http://xyz.com/site/homehttp://abc.com/site/home Can we set a rule such that http://xyz.com/site/* -> http://abc.com/site/* is applied For... (0 Replies)
Discussion started by: raghur77
0 Replies

5. Ubuntu

Apache Server troubleshooting

I'm having issues getting apache to respond to requests outside of my local LAN. If I goto my server URL (www .poillion. com) it says connecting... but never finishes and returns anything. I'm using Ubuntu Server 10.10. a) The DNS is working fine. It's pointed to my cable modem's IP and... (1 Reply)
Discussion started by: lorewap3
1 Replies

6. Solaris

webserver login

how can I get statistics and web analysis for solaris 10 webserver access? what is the file? and what is the tools to analyze it? thanx (2 Replies)
Discussion started by: fsmadi
2 Replies

7. UNIX for Advanced & Expert Users

apache webserver

Can I set up an apache webserver on Mandriva? Looking for the easiest webserver program to install basic webserver just for home use. Any ideas/suggestions much appreciated..... (2 Replies)
Discussion started by: jo calamine
2 Replies

8. OS X (Apple)

Webserver Setup, need help!

Hey guys, does anyone know how I edit, configure the server settings using the terminal? MySQL and PHP was once working. But after frying the Xserve G5 i'm in the middle of rebuilding everything, I believe i need to re-configure the root document directory... but have forgotten how to edit... (1 Reply)
Discussion started by: hype.it
1 Replies

9. UNIX for Advanced & Expert Users

Logout Apache WebServer!

I've just started an Apache WebServer a few days ago. I'm using a web site interface for uses to interact with when they login. There are only 5 accounts for my server at the moment. How would i create a logout link so that when the user wants to end their session and logout I can see this in... (1 Reply)
Discussion started by: cipher
1 Replies
Login or Register to Ask a Question