- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Problem Starting apache httpd using sudo
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2014 12:16 PM
04-04-2014 12:16 PM
Problem Starting apache httpd using sudo
I have a very strange issue. I can't start the (IBM IHS) apache/httpd on one RHEL 6.2 machine (VM running on HP hardware) IF I use sudo.
Now, I know you can't bind to ports < 1024 without root privs. So I configured sudo like I always do so allow users to run "[path]/bin/apachectl" via sudo. This works fine on two other supposedly identical machines, but here.
So, out of curiousity, I changed it to listen on port 8080. Now, this is truly odd:
[ajohnsce@a300s706 ~]$ /ihs/ihs8-80/bin/apachectl start
[ajohnsce@a300s706 ~]$ ps -ef | grep http
ajohnsce 21095 1 0 14:20 ? 00:00:00 /ihs/ihs8-80/bin/httpd -d /ihs/ihs8-80 -k start
ajohnsce 21096 21095 0 14:20 ? 00:00:00 /ihs/ihs8-80/bin/httpd -d /ihs/ihs8-80 -k start
ajohnsce 21097 21095 0 14:20 ? 00:00:00 /ihs/ihs8-80/bin/httpd -d /ihs/ihs8-80 -k start
ajohnsce 21098 21095 0 14:20 ? 00:00:00 /ihs/ihs8-80/bin/httpd -d /ihs/ihs8-80 -k start
ajohnsce 21129 21059 0 14:20 pts/0 00:00:00 grep http
[ajohnsce@a300s706 ~]$ /ihs/ihs8-80/bin/apachectl stop
[ajohnsce@a300s706 ~]$ ps -ef | grep http
ajohnsce 21139 21059 0 14:21 pts/0 00:00:00 grep http
[ajohnsce@a300s706 ~]$ sudo /ihs/ihs8-80/bin/apachectl start
[ajohnsce@a300s706 ~]$ ps -ef | grep http
ajohnsce 21171 21059 0 14:21 pts/0 00:00:00 grep http
Why would this NOT work with sudo but work fine without it?
I have doubled checked my sudo setup, it is identical to the other machines where this works (on either port). I even reinstalled the sudo rpm.
Help.
- Tags:
- sudo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2014 06:28 AM
04-07-2014 06:28 AM
Re: Problem Starting apache httpd using sudo
my first thought would be, possibly selinux rearing it ugly head.