Sponsored Content
Full Discussion: Apache start issue
Operating Systems Solaris Apache start issue Post 302227429 by otheus on Thursday 21st of August 2008 08:06:52 AM
Old 08-21-2008
That's correct. Only processes launched as the 'root' user may change the user to something else (Which is what Apache is trying to do with that configuration line.) In order to start Apache in such a way, you need to use something like the "sudo" package. In the sudoers configuration file, you might add a line like this:

Code:
user2   ALL=(user1) /opt/CSWApache/bin/apachectl

This says that user2 can now run (at the shell):
Code:
$ sudo -u user1 /opt/CSWApache/bin/apachectl start

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Apache wont start

Hi, like a lot of people that post here, I am new at UNIX. The only UNIX I have ever messed with is my iBook running MacOSX (10.1). I have a grasp of the basic commands and understanding of the system but only to a point. I searched the archive and FreeBSD.org and apache.org but I couldn't find... (4 Replies)
Discussion started by: Alpha_Harblo
4 Replies

2. UNIX for Dummies Questions & Answers

Apache start (Was in:how can i?) [Split by LF]

I need to know, which script starts the apache web server on start up? If anyone could help me that would be great. I'm in deep trouble if I can't find the script. thanks very much dan donohd If you know my e-mail is donohd@sage.edu thanks:( (1 Reply)
Discussion started by: donohd
1 Replies

3. AIX

Start Stop Apache

I am in the process of reorging my Lawson db. I need to turn off the RMI server...not a problem. However my instructions also state that I must also shutdown my Servlet Container....I believe it is Apache. I have looked in /usr/apache/bin/apachectl What is the command for stopping and... (2 Replies)
Discussion started by: MILLERJ62
2 Replies

4. Solaris

Apache start problem

Hi, I have installed apache webserver on my solaris 10(x86). When I tried to start the server it gives following error, ld.so.1: /usr/local/apache2/bin/httpd: fatal: libssl.so.0.9.8: open failed: No such file or directory Killedld.so.1:: Too many arguments Can somebody please guide me how... (1 Reply)
Discussion started by: maheshsri
1 Replies

5. Solaris

help me........... my apache can't start

help me please.................bro i was install apache2 and i have been configure httpd.conf on my solaris 10 machine n i already running my httd service but why my webserver couldn't run on my browser? some buddy help me.............:confused::confused::confused::confused::confused: (5 Replies)
Discussion started by: yatmianto
5 Replies

6. Solaris

apache cannot start

hi all i'm having a problem with apache on solaris 10 SPARC I'm trying to start httpd as root but it fails with the following error /usr/local/apache2/bin/httpd -k start httpd: Could not determine the server's fully qualified domain name, using 192.168.1.11 for ServerName (20014)Error... (16 Replies)
Discussion started by: h@foorsa.biz
16 Replies

7. Red Hat

How to start the right instance of Apache on RedHat server

Hi, I have 2 apache instance on my machine (RedHat), and i need to start the "apache2" after any reboot but could not find the way ( searching into "httpd.conf" ), so i'am starting "apache2" manually. After a reboot, none of them starts and when i when doing : httpd -k start, i got "apache"... (14 Replies)
Discussion started by: mehdi1973
14 Replies

8. UNIX for Advanced & Expert Users

Apache does not start

After i added this line to my apache httpd.conf it does not start. AuthUserFile /apps/apache22/conf/httpd.passwd and i see the below error. Syntax error on line 876 of /apps/apache22/conf/httpd.conf: AuthUserFile not allowed here Kindly help. (4 Replies)
Discussion started by: mohtashims
4 Replies

9. Red Hat

Apache start error

I have a new server, installed everything and tried to get it all up and running. Got the following issue: # /usr/local/apache/bin/apachectl start httpd: Syntax error on line 54 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server:... (0 Replies)
Discussion started by: Tommyk
0 Replies

10. Shell Programming and Scripting

Display status of instances in apache - Where to start

Hello, I know this is not a simple question so I just need to know where to start for below project: I am running under Ubuntu 18.04 What I'd like to see in apache page is to display status of particular process pids. ps aux | grep keywords.txt keywords.txt word1 word2 word3 word4... (9 Replies)
Discussion started by: baris35
9 Replies
Apache::Htgroup(3pm)					User Contributed Perl Documentation				      Apache::Htgroup(3pm)

NAME
Apache::Htgroup - Manage Apache authentication group files SYNOPSIS
use Apache::Htgroup; $htgroup = Apache::Htgroup->load($path_to_groupfile); &do_something if $htgroup->ismember($user, $group); $htgroup->adduser($user, $group); $htgroup->deleteuser($user, $group); $htgroup->deletegroup( $group ); $htgroup->save; DESCRIPTION
Manage Apache htgroup files Please note that this is not a mod_perl module. Please also note that there is another module that does similar things (HTTPD::UserManage) and that this is a more simplistic module, not doing all the things that one does. METHODS The following methods are provided by this module. load $htgroup = Apache::Htgroup->load($path_to_groupfile); Returns an Apache::Htgroup object. new $htgroup = Apache::Htgroup->new(); $htgroup = Apache::Htgroup->new( $path_to_groupfile ); Creates a new, empty group file. If the specified file already exists, loads the contents of that file. If no filename is specified, you can create a group file in memory, and save it later. adduser $htgroup->adduser( $username, $group ); Adds the specified user to the specified group. deleteuser $htgroup->deleteuser($user, $group); Removes the specified user from the group. groups $groups = $htgroup->groups; Returns a (reference to a) hash of the groups. The key is the name of the group. Each value is a hashref, the keys of which are the group members. I suppose there may be some variety of members method in the future, if anyone thinks that would be useful. It is expected that this method will not be called directly, and it is provided as a convenience only. Please see the section below about internals for an example of the data structure. reload $self->reload; If you have not already called save(), you can call reload() and get back to the state of the object as it was loaded from the original file. deletegroup $self->deletegroup( 'GroupName' ); Removes a group from the htgroup file. You will need to call save afterward to commit this change back to the file. save $htgroup->save; $htgroup->save($file); Writes the current contents of the htgroup object back to the file. If you provide a $file argument, "save" will attempt to write to that location. ismember $foo = $htgroup->ismember($user, $group); Returns true if the username is in the group, false otherwise Internals Although this was not the case in earlier versions, the internal data structure of the object looks something like the following: $obj = { groupfile => '/path/to/groupfile', groups => { group1 => { 'user1' => 1, 'user2' => 1, 'user3' => 1 }, group2 => { 'usera' => 1, 'userb' => 1, 'userc' => 1 }, } }; Note that this data structure is subject to change in the future, and is provided mostly so that I can remember what the heck I was thinking when I next have to look at this code. Adding groups A number of folks have asked for a method to add a new group. This is unnecessary. To add a new group, just start adding users to a new group, and the new group will magically spring into existance. AUTHOR
Rich Bowen, rbowen@rcbowen.com COPYRIGHT
Copyright (c) 2001 Rich Bowen. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.10.1 2010-12-01 Apache::Htgroup(3pm)
All times are GMT -4. The time now is 10:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy