the following command can be use to set the Apache working directory.

for example, lets say i want to change it to: /home/users/myapache i can use this command for changing it:

# httpd -d /home/users/myapache

the -d option sets teh initial value for the ServerRoot directive to server-root, this can be overridden by the serverroot directive in the configuration file. note that the default directory is /etc/httpd