Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: CGI Scripts running as user that started apache

From: Cris Harrison <Webmaster(at)phoenixcomm.net>
Date: Sat Mar 15 2003 - 14:53:23 EST


At 12:15 PM 3/15/2003 -0600, Travis Gillitzer wrote:
>I may be overlooking something simple here, but I can't seem to figure

  1. where did you get the Apache source? www.apache.org good any place else BAD
  2. Is Apache configured right?? /usr/local/apache/conf/httpd.conf I have attached my conf
  3. Are you using BSD dist of Apache .. Its NOT STANDARD!!!!! 4.Check you Document Root Path statment:ServerRoot /usr/local/apache # # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "/usr/local/apache/htdocs" # # UserDir: The name of the directory which is appended onto a user's home # directory if a ~user request is received. # UserDir public_html

5 Check for usr & goups = NOBODY

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000;
#  don't use Group #-1 on these systems!
#

User nobody
Group nobody

Oh yes this is running on the following equipment with very similar conf files: they all have support for perl Not ModPerl they are ALL Installed the same that is if the OS came with perl or apache it was REMOVED and re-installed in /usr/local/whatever contrary to some apache should be installed /usr/local/apache with conf under apache
with logs in var. VAR should never have any of the conf files...

  1. SUN SS20 SOLARIS 8 www Server/ NS1
  2. SUN S5 SOLARIS 7 mail/pop/NS2
  3. SUN ULTRA2 SOLARIS 8 Mysql Server + PHP + DBI/DBD
  4. SUN ULTRA1 SOLARIS 8 Billing Server
  5. AMD K7 OpenBSD Support Web Server
  6. SUN S5 OpenBSD Firewall
  7. SUN S20 SOLARIS 8 Distibuted JAVA Stack Server (currently there are 4 boxs in the Stack)

Ok I hope that helps
Cris Harrison
www.phoenixcomm.net (owner, Sr. Network Eng.) BTW you can view my apache conf file @ www.phoenixcomm.net/temp/apache

>I am installing Twiki (twiki.org). One of the steps is to run a CGI

[demime 0.98d removed an attachment of type image/jpeg which had a name of 1e1819cf.jpg"; x-mac-type="4A504547"; x-mac-creator="4A565752] Received on Sat Mar 15 14:55:25 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:48:36 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library