Paul and Michael,
Thanks a lot for your quick answer. I have found the problem. My linux
distro (mdk 8.2) has the httpd config files splitted in three in the
etc/httpd/conf directory:
httpd.conf
httpd-perl.conf
commonhttpd.conf
And, because I was changing the DocumentRoot /usr/share/cajun/www only in
the first file, the apache server was not running at all.
So, there is no need that the /usr, the /usr/share, and the /usr/share/cajun
directories has the owner nobody and owner nogroup. Only we have to change
it on the /usr/share/cajun/www directory.
Anyway, another question: I have the cxterm running. There is a key to pass
to the next and previous song?. Actually, with "D", I select the song, I
can select another one, but the first keeps playing. I have to press the "A"
for stop, and pressing again "D", the start playing the second file. I need
a key to directly pass to the next song, and the next, and the next .... I
can't wait to finish every song ;-)
Many thanks for your quick help!
----- Original Message -----
From: "Paul Bournival" <paulb@...>
To: "Guillermo Perez" <gpchia@...>
Cc: <cajun-users@...>
Sent: Sunday, December 01, 2002 4:17 AM
Subject: Re: [Cajun-users] Apache forbidden problem!. Please help!
> From a parallel universe, Guillermo Perez <gpchia@...> scrawled.....
> > Hi there!
> >
> > I receive the following apache error when trying yo access to the cajun
machine:
> >
> > Forbidden
> > You don't have permission to access / on this server.
> >
> >
>
> --------------------------------------------------------------------------
------
> >
> > Apache-AdvancedExtranetServer/1.3.23 Server at cascajo.linux.es Port 80
> >
> > I have tried everything. I have seen in some mailing list about apache
that this could be caused due to a file permission or owner problem. But I
have checked everything, and I cannot find the problem. I have tried also
changing the owner and the group of all files to nobody / nogroup, because
in some pages i found this coul be the problem.
> >
> > The apache server runs OK with the default DocumentRoot /var/www/html,
but when I change it to /usr/share/cajun/www, it gives me the forbidden
page!
>
> hmm... mike's got some good suggestions, but I can think of one more
thing:
> not only the dirs in cajun's www directory need to be set right, but
> also the dirs *above* that need to be set right too.
>
> your /usr/share/cajun directory looks okay:
> > drwxr-xr-x 10 nobody nogroup 4096 nov 30 20:53 ./
>
> I'd be curious about how /usr/share and /usr are set. looks
> like / is set okay, because you can access /var/www/html. can you
> do a "ls -lagd" on both dirs?
>
> the other thing which we really need is the error_log file, which tells
> us exactly what happened...
>
> -paulb
>
> >
> > Please have a look to the files and the httpd.conf:
> >
> > Many thanks in advance for your help!
> >
> > Guillermo, from Madrid, Spain.
> > ***********************************
> >
> > The /usr/share/cajun directory (ls -la)
> > drwxr-xr-x 10 nobody nogroup 4096 nov 30 20:53 ./
> > drwxr-xr-x 178 root root 4096 nov 29 21:10 ../
> > drwxr-xr-x 2 nobody nogroup 4096 nov 29 21:11 api/
> > drwxr-xr-x 2 nobody nogroup 4096 nov 29 21:11 bin/
> > drwxr-xr-x 6 nobody nogroup 4096 nov 29 21:11 contrib/
> > drwxr-xr-x 5 nobody nogroup 4096 nov 29 21:11 doc/
> > drwxr-xr-x 4 nobody nogroup 4096 nov 29 21:11 etc/
> > drwxr-xr-x 8 nobody nogroup 4096 nov 29 21:11 lib/
> > -rw-r--r-- 1 nobody nogroup 227 nov 29 21:11 README
> > drwxr-xr-x 2 nobody nogroup 4096 nov 29 21:11 unit_test/
> > drwxr-xr-x 4 nobody nogroup 4096 nov 30 20:53 www/
> > The /usr/share/cajun/www directory (ls -la)
> > drwxr-xr-x 4 nobody nogroup 4096 nov 30 20:53 ./
> > drwxr-xr-x 10 nobody nogroup 4096 nov 30 20:28 ../
> > -rwxr-xr-x 1 nobody nogroup 333 nov 29 21:11 cajun.css*
> > -rwxr-xr-x 1 nobody nogroup 2594 nov 29 21:11 dbck.cgi*
> > -rwxr-xr-x 1 nobody nogroup 9699 nov 29 21:11 dbedit.cgi*
> > drwxr-xr-x 2 nobody nogroup 4096 nov 29 21:11 images/
> > -rwxr-xr-x 1 nobody nogroup 8724 nov 29 21:11 import.cgi*
> > -rwxr-xr-x 1 nobody nogroup 1164 nov 29 21:11 index.html*
> > -rwxr-xr-x 1 nobody nogroup 9113 nov 29 21:11 nodeedit.cgi*
> > -rwxr-xr-x 1 nobody nogroup 5893 nov 29 21:11 playlist.cgi*
> > -rwxr-xr-x 1 nobody nogroup 4095 nov 29 21:11 schema*
> > drwxr-xr-x 2 nobody nogroup 4096 nov 29 21:11 templates/
> >
> > My /etc/httpd/conf/httpd.conf file:
> >
> > ### Main Configuration Section
> > ### You really shouldn't change these settings unless you're a guru
> > ###
> > ServerType standalone
> > ServerRoot /etc/httpd
> > #ServerName localhost
> > #LockFile /etc/httpd/httpd.lock
> > PidFile /var/run/httpd.pid
> > ScoreBoardFile /etc/httpd/httpd.scoreboard
> > ErrorLog logs/error_log
> > LogLevel warn
> > ResourceConfig /dev/null
> > AccessConfig /dev/null
> > DocumentRoot /usr/share/cajun/www
> > #DocumentRoot /var/www/html
> > Options Indexes FollowSymLinks ExecCGI
> >
> >
> > ### Dynamic Shared Object (DSO) Support
> > ###
> > ###
> > #LoadModule mmap_static_module modules/mod_mmap_static.so
> > LoadModule env_module modules/mod_env.so
> > LoadModule config_log_module modules/mod_log_config.so
> > LoadModule agent_log_module modules/mod_log_agent.so
> > LoadModule referer_log_module modules/mod_log_referer.so
> > #LoadModule mime_magic_module modules/mod_mime_magic.so
> > LoadModule mime_module modules/mod_mime.so
> > LoadModule negotiation_module modules/mod_negotiation.so
> > LoadModule status_module modules/mod_status.so
> > LoadModule info_module modules/mod_info.so
> > LoadModule includes_module modules/mod_include.so
> > LoadModule autoindex_module modules/mod_autoindex.so
> > LoadModule dir_module modules/mod_dir.so
> > LoadModule cgi_module modules/mod_cgi.so
> > LoadModule asis_module modules/mod_asis.so
> > LoadModule imap_module modules/mod_imap.so
> > LoadModule action_module modules/mod_actions.so
> > #LoadModule speling_module modules/mod_speling.so
> > LoadModule userdir_module modules/mod_userdir.so
> > LoadModule proxy_module modules/libproxy.so
> > LoadModule alias_module modules/mod_alias.so
> > LoadModule rewrite_module modules/mod_rewrite.so
> > LoadModule access_module modules/mod_access.so
> > LoadModule auth_module modules/mod_auth.so
> > LoadModule anon_auth_module modules/mod_auth_anon.so
> > #LoadModule dbm_auth_module modules/mod_auth_dbm.so
> > #LoadModule db_auth_module modules/mod_auth_db.so
> > LoadModule digest_module modules/mod_digest.so
> > #LoadModule cern_meta_module modules/mod_cern_meta.so
> > LoadModule expires_module modules/mod_expires.so
> > LoadModule headers_module modules/mod_headers.so
> > LoadModule usertrack_module modules/mod_usertrack.so
> > #LoadModule example_module modules/mod_example.so
> > #LoadModule unique_id_module modules/mod_unique_id.so
> > LoadModule setenvif_module modules/mod_setenvif.so
> > LoadModule vhost_alias_module modules/mod_vhost_alias.so
> >
> > # Reconstruction of the complete module list from all available modules
> > # (static and shared ones) to achieve correct module execution order.
> > # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
> > ClearModuleList
> > #AddModule mod_mmap_static.c
> > AddModule mod_env.c
> > AddModule mod_log_config.c
> > AddModule mod_log_agent.c
> > AddModule mod_log_referer.c
> > #AddModule mod_mime_magic.c
> > AddModule mod_mime.c
> > AddModule mod_negotiation.c
> > AddModule mod_status.c
> > AddModule mod_info.c
> > AddModule mod_include.c
> > AddModule mod_autoindex.c
> > AddModule mod_dir.c
> > AddModule mod_cgi.c
> > AddModule mod_asis.c
> > AddModule mod_imap.c
> > AddModule mod_actions.c
> > #AddModule mod_speling.c
> > AddModule mod_userdir.c
> > AddModule mod_proxy.c
> > AddModule mod_alias.c
> > AddModule mod_rewrite.c
> > AddModule mod_access.c
> > AddModule mod_auth.c
> > AddModule mod_auth_anon.c
> > #AddModule mod_auth_dbm.c
> > #AddModule mod_auth_db.c
> > AddModule mod_digest.c
> > #AddModule mod_cern_meta.c
> > AddModule mod_expires.c
> > AddModule mod_headers.c
> > AddModule mod_usertrack.c
> > #AddModule mod_example.c
> > #AddModule mod_unique_id.c
> > AddModule mod_so.c
> > AddModule mod_setenvif.c
> > AddModule mod_vhost_alias.c
> >
> > ###
> > ### Global Configuration
> > ###
> > # We now support multiple apache configurations on the same server. In
> > # common.conf, we put all directives that are common to all
implementations
> > # (httpd, httpd-perl, etc.)
> > Include conf/commonhttpd.conf
> >
> >
> > ###
> > ### IP Address/Port and Proxied configuration section
> > ###
> > # The APACHEPROXIED setting can be set in /etc/rc.d/init.d/httpd if you
> > # are using a proxy or accelerator, like the Apache-SGI or khttpd, so
that
> > # the fast web server serves static content while Apache handles the
> > # cgi or php files
> >
> > #BindAddress *
> > <IfDefine APACHEPROXIED>
> > Port 8080
> > Listen 8080
> > </IfDefine>
> > <IfDefine !APACHEPROXIED>
> > Port 80
> > Listen 80
> > </IfDefine>
> >
> > # Likewise, we can set apache as the server by default and send perl
> > # requests via ProxyPass to apache-mod_perl. It increases performance
> > # since the perl interpreter is only used for perl and the standard
apache
> > # does all the html and image files, with a smaller footprint.
> > #
> > # If you install apache and apache-mod_perl, this is the default config.
> > # If you don't want two web servers to use perl, uninstall apache, and
> > # apache-mod_perl will not be proxied.
> >
> > <IfDefine PERLPROXIED>
> > RewriteEngine on
> > RewriteRule ^proxy:.* - [F]
> > RewriteRule ^(.*\/perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P]
> > RewriteRule ^(.*\/cgi-perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P]
> > </IfDefine>
> >
> > ###
> > ### Log configuration Section
> > ###
> >
> > #Single logfile with access, agent and referer information
> > #This is the default, if vlogs are not defined for the main server
> > CustomLog logs/access_log combined env=!VLOG
> > #If VLOG is defined in conf/vhosts/Vhost.conf, we use this entry
> > CustomLog "|/usr/sbin/advxsplitlogfile" vhost env=VLOG
> >
> >
> > ###
> > ### Virtual Hosts
> > ###
> > # We include different templates for Virtual Hosting. Have a look in the
> > # vhosts directory and modify to suit your needs.
> > Include conf/vhosts/Vhosts.conf
> > #Include conf/vhosts/DynamicVhosts.conf
> > #Include conf/vhosts/VirtualHomePages.conf
> >
> >
> > ###
> > ### Performance settings Section
> > ###
> > #
> > # Timeout: The number of seconds before receives and sends time out.
> > #
> > Timeout 300
> >
> > #
> > # KeepAlive: Whether or not to allow persistent connections (more than
> > # one request per connection). Set to "Off" to deactivate.
> > #
> > KeepAlive On
> >
> > #
> > # MaxKeepAliveRequests: The maximum number of requests to allow
> > # during a persistent connection. Set to 0 to allow an unlimited amount.
> > # We recommend you leave this number high, for maximum performance.
> > #
> > MaxKeepAliveRequests 100
> >
> > #
> > # KeepAliveTimeout: Number of seconds to wait for the next request from
the
> > # same client on the same connection.
> > #
> > KeepAliveTimeout 15
> >
> > #
> > # Server-pool size regulation. Rather than making you guess how many
> > # server processes you need, Apache dynamically adapts to the load it
> > # sees --- that is, it tries to maintain enough server processes to
> > # handle the current load, plus a few spare servers to handle transient
> > # load spikes (e.g., multiple simultaneous requests from a single
> > # Netscape browser).
> > #
> > # It does this by periodically checking how many servers are waiting
> > # for a request. If there are fewer than MinSpareServers, it creates
> > # a new spare. If there are more than MaxSpareServers, some of the
> > # spares die off. The default values are probably OK for most sites.
> > #
> > MinSpareServers 2
> > MaxSpareServers 10
> >
> > #
> > # Number of servers to start initially --- should be a reasonable
ballpark
> > # figure.
> > #
> > StartServers 2
> >
> > #
> > # Limit on total number of servers running, i.e., limit on the number
> > # of clients who can simultaneously connect --- if this limit is ever
> > # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
> > # It is intended mainly as a brake to keep a runaway server from taking
> > # the system with it as it spirals down...
> > #
> > MaxClients 150
> >
> > #
> > # MaxRequestsPerChild: the number of requests each child process is
> > # allowed to process before the child dies. The child will exit so
> > # as to avoid problems after prolonged use when Apache (and maybe the
> > # libraries it uses) leak memory or other resources. On most systems,
this
> > # isn't really needed, but a few (such as Solaris) do have notable leaks
> > # in the libraries. For these platforms, set to something like 10000
> > # or so; a setting of 0 means unlimited.
> > #
> > # NOTE: This value does not include keepalive requests after the initial
> > # request per connection. For example, if a child process handles
> > # an initial request and 10 subsequent "keptalive" requests, it
> > # would only count as 1 request towards this limit.
> > #
> > MaxRequestsPerChild 500
> >
> >
>
>
===========================================================================
> paulb@... "I'm fuzzy on this whole good/bad thing"
> paulb@... -Dr. Peter
Venkman
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Get the new Palm Tungsten T
> handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> _______________________________________________
> Cajun-users mailing list
> Cajun-users@...
> https://lists.sourceforge.net/lists/listinfo/cajun-users
_______________________________________________________________
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis!
Descárgalo ya desde http://messenger.yahoo.es
|