Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bringing Gentoo to the Enterprise
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Tue May 13, 2003 3:18 pm    Post subject: Reply with quote

steveb wrote:
please do it the following way:
Code:
USE='mysql innodb' emerge -v rt
or add mysql and innodb to your USE flags in /etc/make.conf.


That did it. So it's looking for USE flags not actual compiled environment? I could have tricked it before without recompiling then.

Now I have to get apache configured::
Code:
* Starting apache...
Syntax error on line 34 of /etc/apache/conf/apache.conf:
Invalid command 'PerlModule', perhaps mis-spelled or defined by a module not included in the server configu  [ !! ]


I put almost the exact code into apache that it recommends (commented out the stuff for apache2)::
Code:
<VirtualHost 127.0.0.1>
    ServerName rt.localhost
    DocumentRoot /opt/rt3/share/html
    AddDefaultCharset UTF-8

    # this line applies to Apache2+mod_perl2 only
    # PerlModule Apache2 Apache::compat

    PerlModule Apache::DBI
    PerlRequire /opt/rt3/bin/webmux.pl

    <Location />
        SetHandler perl-script
        PerlHandler RT::Mason
    </Location>
</VirtualHost>

and at the end of the file I have:
Code:
<IfDefine PERL>
LoadModule perl_module    extramodules/libperl.so
</IfDefine>
<IfDefine PERL>
AddModule mod_perl.c
</IfDefine>


I also tried apache2 as I have that installed to play with and in /etc/apache2/conf/vhosts/vhosts.conf I put the same thing as apache.con, but uncommented "PerlModule Apache2 Apache::compat" and that starts right, but Phoenix tells me it can not be found.

You've been real helpful previously so I'm somewhat anxious for your response on this. Thank you. :D

Some random info from the denied page:
Apache/2.0.45 (Gentoo/Linux) mod_perl/1.99_08 Perl/v5.8.0 Server at rt.localhost Port 80
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Tue May 13, 2003 4:09 pm    Post subject: Reply with quote

i try to help, where i can.

first:
Code:
<IfDefine PERL>
   LoadModule perl_module    extramodules/libperl.so
</IfDefine>
<IfDefine PERL>
   AddModule mod_perl.c
</IfDefine>


you have to put this part in the porper position in your apache.conf file. in my configuration, i have put it bevore "LoadModule vhost_alias....":
Code:

<IfDefine PERL>
   LoadModule perl_module    extramodules/libperl.so 
</IfDefine>
LoadModule vhost_alias_module   modules/mod_vhost_alias.so


and the same goes for mod_perl.c:
Code:
<IfDefine PERL>
   AddModule mod_perl.c
</IfDefine>
AddModule mod_vhost_alias.c


after you have done that, you need to modify your /etc/conf.d/apache file and add -D PERL to your APACHE_OPTS. my entry looks like this:
Code:
APACHE_OPTS="-D SSL -D PHP4 -D GZIP -D JK -D PERL"


after that, you need to edit your /etc/apache/conf/vhosts/Vhosts.conf file and add:
Code:
<VirtualHost 127.0.0.1>
    ServerName rt.localhost
    DocumentRoot /opt/rt3/share/html
    AddDefaultCharset UTF-8
    PerlRequire /opt/rt3/bin/webmux.pl
    <Location />
        SetHandler perl-script
        PerlHandler RT::Mason
    </Location>
</VirtualHost>


after that, you need to restart the apache server:
Code:
/etc/init.d/apache restart
or
Code:
apachectl restart



i hope then it will work! i did not tested it, just readed the documentation, while building the ebuild for you. and if my mind does not fool me, then i think this is all you have to do for the apache part.

let us know if it is working or not.


cheers

SteveB
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Tue May 13, 2003 4:57 pm    Post subject: Reply with quote

I commented out "PerlModule Apache::DBI" in apache.conf. As in your example, that was not present. My big problem was probably the vhost at the top of apache.conf instead of Vhosts.conf. After shuffling things around it looks like things are started just fine. Now I need to figure out why I don't have permission. My connection to rt.localhost and even localhost are being refused. I tried setting allow,deny instead of deny,allow and setting deny for None rather than all in several places for both apache and apache2. Permissions for all files that should be being displayed have at least read permissions for others and in the case of directories have execute permission as well.

Anyway it's now starting, but not letting me in. I've messed a lot with apache while not really knowing what I'm doing so it might not be a bad idea to unmerge it and remerge it fresh and try it all again. I'll do that if someone doesn't have a better idea.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Tue May 13, 2003 5:18 pm    Post subject: Reply with quote

flickerfly wrote:
I commented out "PerlModule Apache::DBI" in apache.conf. As in your example, that was not present. My big problem was probably the vhost at the top of apache.conf instead of Vhosts.conf. After shuffling things around it looks like things are started just fine. Now I need to figure out why I don't have permission. My connection to rt.localhost and even localhost are being refused. I tried setting allow,deny instead of deny,allow and setting deny for None rather than all in several places for both apache and apache2. Permissions for all files that should be being displayed have at least read permissions for others and in the case of directories have execute permission as well.

Anyway it's now starting, but not letting me in. I've messed a lot with apache while not really knowing what I'm doing so it might not be a bad idea to unmerge it and remerge it fresh and try it all again. I'll do that if someone doesn't have a better idea.


can you change in your virtualhost setting the servername to "localhost"?

can you please check your /etc/hosts to include a line with "127.0.0.1 localhost"?

can you please check your /etc/apache/conf/apache.conf for correct values for "BindAddress", "Port" and "Listen"?

cheers

SteveB
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Tue May 13, 2003 6:04 pm    Post subject: Reply with quote

steveb wrote:
can you change in your virtualhost setting the servername to "localhost"?

Check...
steveb wrote:
can you please check your /etc/hosts to include a line with "127.0.0.1 localhost"?

I just added rt.localhost to the localhost line also /etc/hosts like this:
127.0.0.1 localhost rt.localhost
steveb wrote:
can you please check your /etc/apache/conf/apache.conf for correct values for "BindAddress", "Port" and "Listen"?

### IP Address/Port
#BindAddress *
Port 80
Listen 80

Interesting change, now http://localhost forwards me to http://www.localhost.net.au/. Zope is running on http://localhost:8080/ just fine and I've had apache working on port 80 in the past (a month ago or so).
That was an error of stupidity I think, got it taken care of, can't get to the page if the server isn't on to deny you. :D
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Tue May 13, 2003 6:35 pm    Post subject: Reply with quote

flickerfly wrote:
steveb wrote:
can you change in your virtualhost setting the servername to "localhost"?

Check...
steveb wrote:
can you please check your /etc/hosts to include a line with "127.0.0.1 localhost"?

I just added rt.localhost to the localhost line also /etc/hosts like this:
127.0.0.1 localhost rt.localhost
steveb wrote:
can you please check your /etc/apache/conf/apache.conf for correct values for "BindAddress", "Port" and "Listen"?

### IP Address/Port
#BindAddress *
Port 80
Listen 80

Interesting change, now http://localhost forwards me to http://www.localhost.net.au/. Zope is running on http://localhost:8080/ just fine and I've had apache working on port 80 in the past (a month ago or so).
That was an error of stupidity I think, got it taken care of, can't get to the page if the server isn't on to deny you. :D


sorry, but i don't understand?!? is it now working? or not? (my english is not so great)

cheers

SteveB
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Tue May 13, 2003 6:41 pm    Post subject: Reply with quote

Here's the log entries related to the page access
Code:
[Tue May 13 14:24:46 2003] [error] [client 127.0.0.1] client denied by server configuration: /opt/rt3/share/html
localhost - - [13/May/2003:14:24:46 -0400] "GET / HTTP/1.1" 403 276 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021207 Phoenix/0.5"


No, it isn't working. I was just saying that the part I shrunk down was no longer an issue. I just didn't have the server started when I was getting forwarded to http://www.localhost.com.au. Now I continue to get denied access to pages.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Tue May 13, 2003 7:23 pm    Post subject: Reply with quote

flickerfly wrote:
Here's the log entries related to the page access
Code:
[Tue May 13 14:24:46 2003] [error] [client 127.0.0.1] client denied by server configuration: /opt/rt3/share/html
localhost - - [13/May/2003:14:24:46 -0400] "GET / HTTP/1.1" 403 276 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021207 Phoenix/0.5"


No, it isn't working. I was just saying that the part I shrunk down was no longer an issue. I just didn't have the server started when I was getting forwarded to http://www.localhost.com.au. Now I continue to get denied access to pages.



hmmm... only 3 things pop into my mind:

1) does apache have the right permission to read the /opt/rt3/share/html directory and files?
--> quick fix: chown -R apache.apache /opt/rt3/share/html

2) do you have any "Limit" or "LimitExcept" in your virtual server configuration?
--> search your conf virtual host file for <Limit ...> and/or <LimitExcept ... entries>

3) do you have a .htaccess/.htpasswd in your /opt/rt3/share/html directory?


cheers

SteveB
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Tue May 13, 2003 7:48 pm    Post subject: Reply with quote

steveb wrote:

hmmm... only 3 things pop into my mind:

1) does apache have the right permission to read the /opt/rt3/share/html directory and files?
--> quick fix: chown -R apache.apache /opt/rt3/share/html

2) do you have any "Limit" or "LimitExcept" in your virtual server configuration?
--> search your conf virtual host file for <Limit ...> and/or <LimitExcept ... entries>

3) do you have a .htaccess/.htpasswd in your /opt/rt3/share/html directory?


1) Ran the command to make sure, but no changes afterwards
2) Found no uncommented <Limit lines in Vhost.conf, commonapache.conf or apache.conf.
3) Only one and that is in /home/httpd/htdocs/docs/.htaccess

I'll go scour google some more. I wonder how splooge is doing with his dependency stuff.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Wed May 14, 2003 8:00 pm    Post subject: Reply with quote

I guess the server didn't care to much if there was an error in a vhost as long as the main one was ok. I'm getting this error when I run "apache -t" to test the syntax of the config files. Could it be related to my problem?

Code:
$ apache -t
Syntax error on line 59 of /etc/apache/conf/vhosts/Vhosts.conf:
Invalid command 'PerlModule', perhaps mis-spelled or defined by a module not included in the server configuration

_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Wed May 14, 2003 8:14 pm    Post subject: Reply with quote

flickerfly wrote:
I guess the server didn't care to much if there was an error in a vhost as long as the main one was ok. I'm getting this error when I run "apache -t" to test the syntax of the config files. Could it be related to my problem?

Code:
$ apache -t
Syntax error on line 59 of /etc/apache/conf/vhosts/Vhosts.conf:
Invalid command 'PerlModule', perhaps mis-spelled or defined by a module not included in the server configuration


where in your Vhosts.conf are you using PerlModule?

i was thinking you use something like this in your Vhosts.conf file:
Code:
<VirtualHost 127.0.0.1>
    ServerName rt.localhost
    DocumentRoot /opt/rt3/share/html
    AddDefaultCharset UTF-8
    PerlRequire /opt/rt3/bin/webmux.pl
    <Location />
        SetHandler perl-script
        PerlHandler RT::Mason
    </Location>
</VirtualHost>



and have a look at RT/FM Installation Guide

especialy at:
Quote:
Many sites may not need the "PerlModule Apache:DBI" line, in fact in many cases Apache:DBI will cause Apache to abort every time it is run. Removing these lines should solve the problem.



cheers

SteveB
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Wed May 14, 2003 8:36 pm    Post subject: Reply with quote

Here is the contents of my Vhost.conf file.

Code:
#This is needed for Frontpage support
Port 80
ServerRoot /etc/apache
ResourceConfig /dev/null
AccessConfig /dev/null

<VirtualHost 127.0.0.1>
    ServerName localhost
    DocumentRoot /opt/rt3/share/html
    AddDefaultCharset UTF-8

    # this line applies to Apache2+mod_perl2 only
    # PerlModule Apache2 Apache::compat

    # PerlModule Apache::DBI

    PerlRequire /opt/rt3/bin/webmux.pl
    <Location />
        SetHandler perl-script
        PerlHandler RT::Mason
    </Location> 
</VirtualHost>


Should PerlRequire be PerlModule for webmux.pl??
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Wed May 14, 2003 11:25 pm    Post subject: Reply with quote

flickerfly wrote:
Should PerlRequire be PerlModule for webmux.pl??


if i can trust the documentation of RT, then it schould be PerlRequre.

cheers

SteveB
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Thu May 15, 2003 12:08 pm    Post subject: Reply with quote

That questions came because I thought I was getting this error before:

Code:
$ apache -t
Syntax error on line 61 of /etc/apache/conf/vhosts/Vhosts.conf:
Invalid command 'PerlRequire', perhaps mis-spelled or defined by a module not included in the server configuration


I am now getting that error after commenting out the 'PerlModule' line.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Thu May 15, 2003 3:11 pm    Post subject: Reply with quote

I unmerged and merged again apache mod_perl and libwww-perl (for good measure)
Then ran
'ebuild /var/db/pkg/dev-perl/mod_perl-1.27-r1/mod_perl-1.27-r1.ebuild config'
and made sure -D PERL was defined and made sure
Code:
<IfDefine PERL>
LoadModule perl_module    extramodules/libperl.so
</IfDefine>
and
Code:
<IfDefine PERL>
AddModule mod_perl.c
</IfDefine>

was in apache.conf before mod_vhost_alias(they were a few times so I removed duplicates. I removed the IfDefine tags from around the LoadModule and AddModule perl lines. I confirmed that libperl.so is in the linked directory 'extramodules/' and has rx permissions for all.

Still no changes in the error message.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Thu May 15, 2003 4:01 pm    Post subject: Reply with quote

where should mod_perl.c be at? I don't think I ever checked to make sure that was in the right place.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Thu May 15, 2003 4:53 pm    Post subject: Reply with quote

flickerfly wrote:
where should mod_perl.c be at? I don't think I ever checked to make sure that was in the right place.


post your /etc/apache/conf/apache.conf

cheers

SteveB
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Thu May 15, 2003 5:14 pm    Post subject: Reply with quote

Thanks for sticking with me on this steveb. Here it is in all it's unaltered glory. I am no longer getting the error as I put in a fresh apache.conf file and reconfigured it as you see below. I didn't save the previous one. I did the same with commonapache.conf, but made no changes in there.

cat /etc/apache/conf/apache.conf
Code:
# $Header: /home/cvsroot/gentoo-x86/net-www/apache/files/conf/apache.conf,v 1.2 2002/05/04 23:23:01 wood  chip Exp $
### Main Configuration Section
### You really shouldn't change these settings unless you're a guru
###
ServerType standalone
ServerRoot /etc/apache
#ServerName localhost
#LockFile /etc/httpd/httpd.lock
PidFile /var/run/apache.pid
ScoreBoardFile /etc/apache/apache.scoreboard
ErrorLog logs/error_log
LogLevel warn
ResourceConfig /dev/null
AccessConfig /dev/null
DocumentRoot /home/httpd/htdocs


### 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 perl_module extramodules/libperl.so
LoadModule php4_module extramodules/libphp4.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_perl.c
AddModule mod_php4.c
AddModule mod_vhost_alias.c

###
### Global Configuration
###
# Splitting up apache.conf into two files makes it possible to support
# multiple configurations on the same serer.  In commonapache.conf
# you keep directives that apply to all implementations and in this
# file you keep server-specific directives.  While we don't yet have
# multiple configurations out-of-the-box, this allows us to do that
# in the future easily.
Include conf/commonapache.conf


###
### IP Address/Port
###
#BindAddress *
Port 80
Listen 80


###
### 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/Vhosts.conf, we use this entry
#CustomLog "|/usr/sbin/apachesplitlogfile" 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 4
MaxSpareServers 10

#
# Number of servers to start initially --- should be a reasonable ballpark
# figure.
#
StartServers 4

#
# 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

_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Thu May 15, 2003 7:43 pm    Post subject: Reply with quote

apache.conf looks okay to me, but i would change it to:
Code:
# $Header: /home/cvsroot/gentoo-x86/net-www/apache/files/conf/apache.conf,v 1.2 2002/05/04 23:23:01 wood  chip Exp $
### Main Configuration Section
### You really shouldn't change these settings unless you're a guru
###
ServerType standalone
ServerRoot /etc/apache
#ServerName localhost
#LockFile /etc/httpd/httpd.lock
PidFile /var/run/apache.pid
ScoreBoardFile /etc/apache/apache.scoreboard
ErrorLog logs/error_log
LogLevel warn
ResourceConfig /dev/null
AccessConfig /dev/null
DocumentRoot /home/httpd/htdocs


### 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
<IfDefine PERL>
LoadModule perl_module    extramodules/libperl.so
</IfDefine>
<IfDefine PHP>
LoadModule php4_module extramodules/libphp4.so
</IfDefine>
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
<IfDefine PERL>
AddModule mod_perl.c
</IfDefine>
<IfDefine PHP>
AddModule mod_php4.c
</IfDefine>
AddModule mod_vhost_alias.c

###
### Global Configuration
###
# Splitting up apache.conf into two files makes it possible to support
# multiple configurations on the same serer.  In commonapache.conf
# you keep directives that apply to all implementations and in this
# file you keep server-specific directives.  While we don't yet have
# multiple configurations out-of-the-box, this allows us to do that
# in the future easily.
Include conf/commonapache.conf


###
### IP Address/Port
###
#BindAddress *
Port 80
Listen 80


###
### 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/Vhosts.conf, we use this entry
#CustomLog "|/usr/sbin/apachesplitlogfile" 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 4
MaxSpareServers 10

#
# Number of servers to start initially --- should be a reasonable ballpark
# figure.
#
StartServers 4

#
# 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

Include  conf/addon-modules/mod_php.conf



and please add "-D PHP -D PERL" in your /etc/conf.d/apache.


and the virtual host part i would change to:
Code:
<VirtualHost 127.0.0.1>
    ServerName rt.localhost
    DocumentRoot /opt/rt3/share/html
    AddDefaultCharset UTF-8
    PerlRequire /usr/bin/webmux.pl
    <Location />
        SetHandler perl-script
        PerlHandler RT::Mason
    </Location>
</VirtualHost>

i think the webmux.pl is in /usr/bin/webmux.pl or not?

and please have a look at /opt/rt3/etc/RT_Config.pm,/opt/rt3/etc/RT_SiteConfig.pm, /opt/rt3/lib/RT.pm . are they set up the way you need/want them?

cheers

SteveB
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Thu May 15, 2003 8:21 pm    Post subject: Reply with quote

All you changed in apache.conf was the IfDefine for both perl and php in Load and Add modules right?

Got the /etc/conf.d/apache thing setup already.

webmux.pl is in both places on my HD. Might be in the other from an earlier install. That might make a difference, I don't know.

As far as those three files you mentioned, I only messed with /opt/rt3/etc/RT_SiteConfig.pm by pulling lines out of /opt/rt3/etc/RT_Config.pm and changing them as that file reccommended. I looked over them again and the appear ok.

Could I try calling the perl module within the vhost? (or is that a no-no).

Thanks again. I'm trying to get another machine setup with a fresh Gentoo install to abandon this project to that and be clear of the mess I've made of this system. I've got a semi-official "go ahead" to continue this project so I can use another machine now. :-) I'll let you know when that's ready and will start focusing there instead.

Thanks again for your persistance.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Thu May 15, 2003 9:20 pm    Post subject: Reply with quote

New info, I can get to the pages on /home/httpd/htdocs/ by typing in my external IP. I'm refused when using 127.0.0.1 or localhost or rt.localhost. I created a symlink in /home/httpd/htdocs/ to /opt/rt3/share/html/ and that simply shows the code, not the accurate representation of the code, probably because the call for webmux.pl is bypassed. I'll be back tomorrow to poke at that a bit more, but I have to go. Got a date with my wife tonight.

Cheers, Josiah :-)
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Thu May 15, 2003 9:31 pm    Post subject: Reply with quote

flickerfly wrote:
Got a date with my wife tonight.


i hope tomorrow i don't find a trouble ticket in RT describing problems because of the date with your wife? :evil: *LOL* :evil:

cheers

SteveB
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Fri May 16, 2003 1:54 pm    Post subject: Reply with quote

steveb wrote:
flickerfly wrote:
Got a date with my wife tonight.

i hope tomorrow i don't find a trouble ticket in RT describing problems because of the date with your wife?

Nope, quite a pleasent evening actually. All's well there. :D 8)

I'm going to try setting the whole server up like what the vhost is and comment out the importing of the vhost file to see if it will work that way. I suspect not, but it will remove the variable.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Fri May 16, 2003 2:05 pm    Post subject: Reply with quote

Nope, that didn't do it.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Fri May 16, 2003 3:07 pm    Post subject: Reply with quote

I got it. I added this to commonapache.conf:
Code:
<Directory /opt/rt3/share/html/>
  Options -All -Multiviews
  AllowOverride None
  Order deny,allow
  Deny from all
  Allow from 127.0.0.1
</Directory>

I guess that over-rode whatever was blocking me. Thanks for all your help steveb. I've learned a lot through this process. I'm going to still give RT a shot on that other PC as that will be a fresh install and we can see how your ebuild works prior to any other things playing in the machine. It will be awhile. I just started the stage 2 of the install and it's a 200Mhz. I'll probably leave RT on there for our production use once it's running.

Now I just have to figure out what username/password I need for this RT website. :-)
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum