Re: [EMAIL PROTECTED] Compile with modules - howto?

2006-12-26 Thread Boysenberry Payne

I have apache2 on OSX with the following

httpd -V

Server version: Apache/2.2.3
Server built:   Nov 27 2006 20:51:56
Server's Module Magic Number: 20051115:3
Server loaded:  APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture:   32-bit
Server MPM: Prefork
  threaded: no
forked: yes (variable process count)
Server compiled with
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr/local/apache2"
-D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

I used the following configuration setup:

./configure --with-mpm=prefork --enable-mods-shared=all --enable- 
proxy --enable-rewrite --enable-ssl=/usr/bin/openssl --with-perl=/usr/ 
bin/perl


As a general rule of thumb I remark any modules that aren't essential  
then add as I need them...


Here is the relevant httpd.conf settings:

#LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
#LoadModule authz_user_module modules/mod_authz_user.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
#LoadModule authz_default_module modules/mod_authz_default.so
#LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule include_module modules/mod_include.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule deflate_module modules/mod_deflate.so
#LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule logio_module modules/mod_logio.so
#LoadModule env_module modules/mod_env.so
#LoadModule mime_magic_module modules/mod_mime_magic.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 ident_module modules/mod_ident.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule version_module modules/mod_version.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
#LoadModule status_module modules/mod_status.so
#LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule asis_module modules/mod_asis.so
#LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
#LoadModule imagemap_module modules/mod_imagemap.so
#LoadModule actions_module modules/mod_actions.so
#LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so

# added modules
LoadModule perl_module modules/mod_perl.so
LoadModule apreq_module modules/mod_apreq2.so
LoadModule php5_modulemodules/libphp5.so


Hope this helps...

You can email me off list if you need more help also...
;)

Happy New Year everyone


Boysenberry Payne
[EMAIL PROTECTED]



On Dec 26, 2006, at 8:03 AM, Tom Cooper wrote:


Nick Kew wrote:

On Mon, 25 Dec 2006 21:53:26 -0500
Tom Cooper <[EMAIL PROTECTED]> wrote:
  The only clear question you've asked is the one in the subject
line.  That has an easy answer - look up "apxs" in the documentation
at httpd.apache.org.



Thanks for the pointer.
I did find http://httpd.apache.org/docs/trunk/programs/apxs.

Re: [EMAIL PROTECTED] Free Web Benchmark...

2006-11-16 Thread Boysenberry Payne

Do any of these benchmarking programs work with ajax
or other asynchronous loading methodologies, like flash,
etc.?

I find it next to impossible to get an accurate benchmark
when I'm only loading the top level html page


Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 16, 2006, at 5:37 AM, Christian Gottschalch wrote:

or JMeter from Jakarta Projekt http://jakarta.apache.org/jmeter/ 
index.html


regards

Christiaan Lamprecht schrieb:

Try httperf and autobench

Christiaan

On 11/15/06, Salvatore Cozzolongo <[EMAIL PROTECTED]> wrote:
Are there open/free web server Benchmark? Do you know some? I  
just found commercial one...


regards
--
Salvatore Cozzolongo



 
-
The official User-To-User support forum of the Apache HTTP Server  
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
The official User-To-User support forum of the Apache HTTP Server  
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
The official User-To-User support forum of the Apache HTTP Server  
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] question about runaway children

2006-09-23 Thread Boysenberry Payne
I'm getting the following kind errors on apachectl restart:[warn] child process 1321 still did not exit, sending a SIGTERMIt happens every so often, and I was wondering what it indicates?I'm running:Apache/2.2.3 (Unix) PHP/5.1.4 mod_ssl/2.2.3 OpenSSL/0.9.7i DAV/2 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.6on OS X 10.4.7Any ideas on how to troubleshoot it.  It only happens on my localdevelopment box not on our production server, even though itspretty much the same set up.  I am using Apache2::Reload andthe production server is centOS rather than OS X... Thanks, Boysenberry  boysenberrys.com | habitatlife.com | selfgnosis.com  

Re: [EMAIL PROTECTED] mod_rewrite-question

2006-09-15 Thread Boysenberry Payne
RewriteEngine onRewriteRule /SingleSignOn/SingleSignOn?r=/dom(.*)	/SingleSignOn/SingleSignOn?r=/domI think this ought to work.  Without having a more accurate example I might be wrong,but I think this will do it... Thanks, Boysenberry  boysenberrys.com | habitatlife.com | selfgnosis.com  On Sep 15, 2006, at 3:36 PM, Gregor Schneider wrote:Hi guys,I've just walked through the docs of mod_rewrite and I got overwhelmed by the complexity of it :(Actually I just want to do quite a simple thing:If my URI contains/SingleSignOn/SingleSignOn?r=/dom[plus_some_other_stuff_here] change it to/SingleSignOn/SingleSignOn?r=/domIf I got the docs correctly, I can't use a regex in RewriteCondition, however, somehow I'm lost setting up a RewriteRule which fullfills my requirement. Could anybody give me a starter? TIAGregor-- what's puzzlin' you, is the nature of my game

Re: [EMAIL PROTECTED] A NetHack-esque Journey of the dark arts for DBD(mysql) under httpd-2.2.3

2006-08-30 Thread Boysenberry Payne

I ran into difficulties with getting the dbd_auth to work also.
My solution was to remark it out of the config file and use
mod_perl to authenticate via DBD::mysql.
Sure saved me a lot of the head aches you had.  But you
probably don't use mod_perl.


Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Aug 30, 2006, at 9:38 AM, Ben wrote:


The next installment...

It was time for me to add some meaningful messages to mod_authn_dbd.c
Heads up to you apache developers: Try to be more imaginative when  
writing error messages - At least make each message unique!!
There are six "Error looking up %s in database." errors in  
mod_autn_dbd.c - why not be a little bit more informative?


Well, the good news is that I managed to get authentication working  
- after a new build and a couple of conf tweaks.


Here is a breakdown of some of the  [crit]  messages - and what  
they appear to mean..


(70023)This function has not been implemented on this platform:  
DBD: driver for [DBDriver unset] not available
(70023)This function has not been implemented on this platform:  
DBD: failed to initialise


 This means that you have stuck the DBD settings inside a  
VirtualHost! It will pass configtest, it is (supposedly) supported,  
but it will fry your httpd! Rawr!


Here is a breakdown of some of the  [error]  messages - and what  
they appear to mean..
"DBD: No driver for mysql" Your mysql_client_r  is not  
linked properly!  Try:  ldd (apache install directory)/lib/ 
libaprutil-1.so | grep libmysqlclient_r
"Error looking up testuser in database"   One of a whole bunch  
of things - including no database connection
"user testuser not found ..." The user  
is not in the table specified - (or the table doesn't exist, or the  
query fails... )
"user testuser: authentication failure ..."   Good news! The  
user table / record was found - just the password was entered  
wrong! (or the field isn't encrypted)


There is no return message saying whether or not the sql query  
actually worked. It would be nice for a developer to stick in a  
debug of the queries themselves.. (hint!)
Also, LogDebug for .. dynamic library loading, function calling,  
sql connections, database connections, handle creation, sql query  
creation, the actual sql queries, the execution, an ERROR for sql  
error messages, LogDebug for number of records returned, the value  
of the password returned the and the value of the encrypted  
password it is trying to match - you know what LogDebug is useful  
for??? Debugging. (hint!) (hint!) (hint!)


Also, I got a bit wobbly about which encrypt function to use.. So I  
tried the lot, and it turned out to be encrypt (doh)

An example insert user query is:

insert into users set user='test5', password=encrypt('test','test');

The conf settings that are working for me are:


 DBDParams "dbname=client06 user=dbdauth"
 []

AuthType Basic
AuthName "Database access"
AuthBasicProvider dbd
 Require valid-user
  		AuthDBDUserPWQuery "select password from users where user =  
%s"

 
 []


Also - at the top of the httpd.conf file

DBDriver mysql
DBDPersist Off
DBDMin  1
DBDKeep 1
DBDMax 1
#DBDExptime 10

Now all but the first of these settings remain mysterious and  
magical to me - but I think I have trouble with other settings.
I still don't know what causes a massive increase of active httpd  
threads that invariably burns the server to the ground - but hey..  
here be dragons ...


I am a little worried about touching anything.  Eighteen hours and  
several levels of pain later - my keyboard dripping with the blood  
of ripped code - directories filled with random notes and partial  
files - and things work  - but my confidence is in tatters.


Unless the server keels over in the next few days - this adventure  
appears to be done!


-
The official User-To-User support forum of the Apache HTTP Server  
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Alias and Rewrite directives

2006-07-24 Thread Boysenberry Payne
I think you might need to include php files that are "out of the 
kitchen" so to speak

via a php file that is in the www area


Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Jul 24, 2006, at 10:14 AM, Pieter Vanmeerbeek wrote:


Hi,

I'm trying to redirect a specific URL  (for example
http://example.com/trigger/username)  to a specific script on disk 
(rewrite

to  /libexec/pfb.php?user=username).

The document root is set to /testing.

Now I want my script (pfb.php) to be stored outside my document root 
but
still accessible by the server. So I tried adding an alias line before 
the

document root line :

Alias /libexec /blabla/test
DocumentRoot  /testing


My url is rewritten to /testing/libexec/pfb.php?user=username   (it 
says so

in the logging)

However apache complains it can't find the file 
/testing/libexec/pfb.php in

the error logging.

Putting the same file with the same access wrights under 
/testing/libexec

works fine.


Has anyone an idea on how to accomplish this?

Kind regards,
Pieter








--
---
Able: 1996-2006: already 10 safe years in YOUR company!

aXs GUARD has completed security and anti-virus checks on this e-mail 
(http://www.axsguard.com)

---
Able NV: ond.nr 0457.938.087
RPR Mechelen


-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] How to redirect to SSL if authentication is requested

2006-07-24 Thread Boysenberry Payne

I have a similar issue.

What I do is have a particular rewrite "log/"
whenever someone uses log/ in their script it will sent them
to our authentication page.  Its the only way I've figured
out how to do what you're saying.  If they request any "secure"
pages and they're not "logged in" then they get the login page
otherwise it sends them on their marry way.  Of course, the whole system
our clients are using is served up by a central set of code so
that is easy for us.

The drawback is if they use an .htaccess file with a log/ redirect
it will override ours.  One has so far though.  Maybe a really obscure
redirect would work.  I have our redirects hardwired into our httpd.conf
file to prevent them from messing our rewrite up.

Without really knowing how you and your clients interact while serving
files its hard for me to come up with a solution for your particular 
situation

though.


Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Jul 24, 2006, at 10:00 AM, Neulinger, Nathan wrote:


Unfortunately, I don't have control over the .htaccess files that are
being created by our users. If we did, would be easy enough to just
force them all to update their configs.

-- Nathan


Nathan Neulinger   EMail:  [EMAIL PROTECTED]
University of Missouri - Rolla Phone: (573) 341-6679
UMR Information Technology Fax: (573) 341-4216



-Original Message-
From: Boysenberry Payne [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 9:59 AM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] How to redirect to SSL if
authentication is requested

I think you'll have to use your own authentication script or in other
words
you'll have to authenticate only after you see that authentication is
needed
rather than automatically based off of access settings.

A script that can tell whether or not someone is using https and
whether or
not they've authenticated would do the trick.

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Jul 24, 2006, at 9:31 AM, Neulinger, Nathan wrote:


Is there any straightforward way to tell apache (2.0 build

from RHEL)

to
redirect if authentication is requested?

I want to prevent any use of Basic auth on the

cleartext/http side of

the vhost. I can do that easily by disabling AuthConfig overrides on
that vhost. However, this results in all pages breaking

that were using

that support.

What I'd like to be able to do is cause any use of AuthInfo

on the http

host to immediately generate a redirect response to the same server
name, port 443.

Is this possible?

-- Nathan


Nathan Neulinger   EMail:  [EMAIL PROTECTED]
University of Missouri - Rolla Phone: (573) 341-6679
UMR Information Technology Fax: (573) 341-4216




-

The official User-To-User support forum of the Apache HTTP Server
Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP
Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] How to redirect to SSL if authentication is requested

2006-07-24 Thread Boysenberry Payne
I think you'll have to use your own authentication script or in other 
words
you'll have to authenticate only after you see that authentication is 
needed

rather than automatically based off of access settings.

A script that can tell whether or not someone is using https and 
whether or

not they've authenticated would do the trick.

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Jul 24, 2006, at 9:31 AM, Neulinger, Nathan wrote:

Is there any straightforward way to tell apache (2.0 build from RHEL) 
to

redirect if authentication is requested?

I want to prevent any use of Basic auth on the cleartext/http side of
the vhost. I can do that easily by disabling AuthConfig overrides on
that vhost. However, this results in all pages breaking that were using
that support.

What I'd like to be able to do is cause any use of AuthInfo on the http
host to immediately generate a redirect response to the same server
name, port 443.

Is this possible?

-- Nathan


Nathan Neulinger   EMail:  [EMAIL PROTECTED]
University of Missouri - Rolla Phone: (573) 341-6679
UMR Information Technology Fax: (573) 341-4216


-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] looking for a good book on using multiple servers together...

2006-07-22 Thread Boysenberry Payne
I was wondering if anyone was familiar with any books that would cover 
the following:


Load Balancing
Proxies
Using multiple servers together e.g. database server, apache (static 
server), dynamic server (perl, etc.)

all on separate hardware
Different examples of cluster configuration
Ideally it would have a focus on open source solutions like apache.

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-21 Thread Boysenberry Payne

If I'm not mistaken from an earlier post, you actually want more than to
just have


http://cfdev.cota.csulb.edu/cota

or

http://cfdev.cota.csulb.edu/cota/


work.  You want to also use the same rewrite for images, etc.
Without knowing the full extent of what you expect the code
to do I don't even know if mod_rewrite is right for the job.

To me it sounds like you might need some server-side technology like 
php or perl

to do some URL processing and redirects...

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Jul 19, 2006, at 5:47 PM, Mike Soultanian wrote:

Well, for example, I would like to be able to input either of the 
following into my browser:


http://cfdev.cota.csulb.edu/cota

or

http://cfdev.cota.csulb.edu/cota/

and the web page will be displayed while the application server 
handling the requests all see localhost as the originating address.


My apologies for not being more clear.  cota is a folder, and the 
problem is that it's not appending the trailing slash.


thanks!
mike


Boysenberry Payne wrote:
That's why I was saying you'd probably have to write something a 
little complicated.

Its really hard if you don't already have a naming convention in mind.
That way you could just force it to rewrite without the ending slash 
if you wanted.
I think its adding the trailing slash because it assumes cota is a 
directory.

(Someone else on here might have a better explanation.)
What exactly are you trying to see happen, in human terms, i.e. how 
would

you like the request to unfold.
Thanks,
Boysenberry


-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-19 Thread Boysenberry Payne
That's why I was saying you'd probably have to write something a little  
complicated.


Its really hard if you don't already have a naming convention in mind.
That way you could just force it to rewrite without the ending slash if  
you wanted.
I think its adding the trailing slash because it assumes cota is a  
directory.

(Someone else on here might have a better explanation.)

What exactly are you trying to see happen, in human terms, i.e. how  
would

you like the request to unfold.


Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Jul 19, 2006, at 2:09 PM, Mike Soultanian wrote:


Hey Pid,
I gave this a try:

RewriteRule /(.*)(/)?$ http://localhost:81/$1$2 [P]

and it's still converting:

http://cfdev.cota.csulb.edu/cota

to

http://localhost:81/cota/

instead of:

http://cfdev.cota.csulb.edu/cota/

Any ideas?

thanks,
Mike

Pid wrote:

RewriteRule /(.*)(/)?$ http://localhost:81/$1$2
you need the second dollar variable to pick up the second pair of
brackets, instead of always appending a slash.
Mike Soultanian wrote:

Boysenberry Payne wrote:

How about adding this:

RewriteRule /(.*)(/)?$ http://localhost:81/$1/ [P]


That almost worked!

That's interesting because it gets me through to the page, but still
leaves off the trailing slash.  That in turn breaks the relative  
links
which are looking for the trailing slash as can be seen here (I just  
set

up a dns entry for my server):

http://cfdev.cota.csulb.edu/cota

whereas if you put the trailing slash, the trailing slash is getting
appended to everything and seems to break other things on the site  
such

as images.  When trying to view:

http://cfdev.cota.csulb.edu/cota/layouts/images/about/about- 
banner.jpg


I'll get the following error:

The requested URL /cota/layouts/images/about/about-banner.jpg/ was  
not

found on this server.

Any ideas?

Thanks!
MIke


-
The official User-To-User support forum of the Apache HTTP Server  
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-17 Thread Boysenberry Payne

Sounds you might need something a little more complicated.

For example:

RewriteRule  ^(.*)habitat/(.*)$ 
http://localhost:81/pro/habitat.pl?account=data=$2 [P]


Allowing me to read the whole url then process it.

Otherwise you might want to rewrite for different directories, i.e. 
taking care of images

and the like.

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Jul 17, 2006, at 2:04 PM, Mike Soultanian wrote:


Boysenberry Payne wrote:
> How about adding this:
>
> RewriteRule /(.*)(/)?$ http://localhost:81/$1/ [P]
>

That almost worked!

That's interesting because it gets me through to the page, but still 
leaves off the trailing slash.  That in turn breaks the relative links 
which are looking for the trailing slash as can be seen here (I just 
set up a dns entry for my server):


http://cfdev.cota.csulb.edu/cota

whereas if you put the trailing slash, the trailing slash is getting 
appended to everything and seems to break other things on the site 
such as images.  When trying to view:


http://cfdev.cota.csulb.edu/cota/layouts/images/about/about-banner.jpg

I'll get the following error:

The requested URL /cota/layouts/images/about/about-banner.jpg/ was not 
found on this server.


Any ideas?

Thanks!
MIke

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] help with rewrite rule

2006-07-17 Thread Boysenberry Payne

How about adding this:

RewriteRule /(.*)(/)?$ http://localhost:81/$1/ [P]


Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Jul 17, 2006, at 1:40 PM, Mike Soultanian wrote:


Hello,
We have to proxy our requests on our web server but we're running into 
some problems.  I'm having a problem with the following rewrite rule:


RewriteRule /(.*) http://localhost:81/$1 [P]

If I do not specify the trailing slash when using a folder name, I get 
an error.  So, for example, if I go here:


http://134.139.143.27/kcty/

it works fine.  However, if I use the following:

http://134.139.143.27/kcty

it forwards my browser here:

http://localhost:81/kcty/

which is incorrect.  Does anyone know how I can update the rule so 
that it will correctly put the trailing slash back on the url when a 
folder is specified?


Thanks!
Mike

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Tracking down intermittent latency

2006-07-10 Thread Boysenberry Payne
I'm running a production server using Apache2.2.2 with MP2.0.2, 
perl5.8.8, mysql4.1.14 and libapreq2.
Every once in a while I'm noticing server latency, even though it pings 
fine.
Wondering the best way to track down server latency in a production 
environment
without interrupting a low server load?  My development server never 
experiences

the latency issues.

Any ideas?


Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Looking for the best way to update a production server

2006-07-08 Thread Boysenberry Payne
I'm trying to avoid interruption of service as much as possible, but 
don't
have an alternative box to run on while I update.  Is there a 
"preferred"

way to do this?


Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Question about redirecting

2006-04-21 Thread Boysenberry Payne

I think you should be able to do it like this:

RewriteEngine on

RewriteRule ^(.*)/administrator/(.*)$  https://domain.com/

or if you want to push the data from the original request:
RewriteRule ^(.*)/administrator/(.*)$  
https://domain.com/$1/administrator/$2


Just remember the $1 above is actually the file directory the request 
resolves to, e.g.

/home/user/public_html/, etc...


Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Apr 21, 2006, at 1:22 PM, Todd Nine wrote:


Hi all,
  I'm trying to redirect a url using .htaccess with mod_rewrite.  Is 
it possible to redirect an http connection with the url 
*/administrator/* to an ssl connection?  I know I can rewrite the URI, 
but I'm not sure I can change the protocol from http:// to https://


Thanks,
Todd



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Odd intermittent mod_unique_id error on OS X 10.3.9 Apache 2.0.55

2006-04-12 Thread Boysenberry Payne

Hi All,

I'm getting the following error:

[Wed Apr 12 11:29:09 2006] [alert] (EAI 7)No address associated with 
nodename: mod_unique_id: unable to find IPv4 address of "pod.local"

Configuration Failed

If I reboot, it seems fine.  Any ideas on what could be causing it.  I 
guess I could remove mod_unique_id.

I would like to at least know what's causing it first if I could.

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Retry: HostnameLookups timeout?

2006-03-22 Thread Boysenberry Payne

What about using some kind of handler that forks its own lookup routine
outside of apache (or mod_perl, perl, phython, php, etc?)

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Mar 22, 2006, at 9:14 AM, Markus Mayer wrote:


Hi All,

I posted this one Thursday last week but so far got no answer, so I'll 
try

again today.

I have a small problem with some reverse lookups for which I hope 
somebody

here might be able to help me with.

Generally reverse lookups work well, but for some IP addresses the 
reverse

lookup times out.  With the help of our network admins, I was able to
identify the problem.  It is a name server problem of the ISP from 
which a
host connects.  For what ever reason, there is no answer from the 
problem
nameserver.  With HostnameLookups on, and these problem namseservers, 
apache

waits about 12 minutes before sending any data back to the host that
requested the page.  On a normal Linux and Solaris command line, an 
nslookup,

host, or dig fails within 10 seconds with a timeout.

To get around this problem, I wanted to configure how long apache 
waits for a
response, however I have not been able to find such an option.  I also 
looked

in the source code, but was not able to find where this timeout is set.
Either solution is fine for me, however of course a configuration 
directive
to set timeouts for HostnameLookups would be much more preferable.  
Does any
one know what directive there is to set, of if there is even one?  And 
if

there's no directive, where in the source code do I look to set this?

All help on this will be greatly appreciated.

greetings from Austria.
Markus

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache 1.3.x vs 2.0.x

2006-02-24 Thread Boysenberry Payne

Even though speed might not be a factor in upgrading if you are
using pre-fork and php/mod_perl/etc, at least mod_perl (version2) has 
significant

upgrades in how it interacts with apache2 vs. apache1.3.
For me it has impacted speed and size, in that I've been able to
do more with less...

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Feb 24, 2006, at 10:38 AM, Joshua Slive wrote:


On 2/23/06, Kishore Jalleda <[EMAIL PROTECTED]> wrote:

Hi all,
  This is my first post to the list, I am currently using 
version
1.3.34 for our websites,  I would like to hear about your experiences 
about

the 2.0.x versions as they support Multithreading, MPMs, APR, etc,
specifically about any  performance improvements over 1.3.x (which 
uses the

pre-forking model), I am aware that the MT may not be suitable for all
configurations, we use Poweredge 2650's with Dual Xeons and HT, and 
also

some Sparc Boxes.


This is something you really need to test in your environment.  In
general, 2.x will be faster than 1.3 and threaded mpms will use less
resources than non-threaded servers on OSes with good threading
libraries.  But in reality, this is only going to matter if your site
serves lots of static content.  If you are using php/mod_perl/etc, the
speed (or slowness) of your scripts will probably make any benefit of
upgrading seem small.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Getting mod_rewrite working for virtual hosts

2006-02-20 Thread Boysenberry Payne
After looking through previous threads I thought I had my solution to 
getting

mod_rewrite to work with virtual hosts.
Here is the system:
Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 
mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.22 
OpenSSL/0.9.7a


Here is what I put into httpd.conf:




RewriteEngine on
RewriteOptions inherit
RewriteRule  ^(.*)log[/]?$ http://69.72.241.170:81/pro/admin.pl [P]
	RewriteRule  ^(.*)log/(.*)$ 
http://69.72.241.170:81/pro/admin.pl?data=$2 [P]




I also tried:



Options -Indexes
RewriteEngine on
RewriteOptions inherit
RewriteRule  ^(.*)log[/]?$ http://69.72.241.170:81/pro/admin.pl [P]
	RewriteRule  ^(.*)log/(.*)$ 
http://69.72.241.170:81/pro/admin.pl?data=$2 [P]




Neither of them works so far.  What am I missing?

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] "monitor hooks" docs in apache 2.2

2006-02-12 Thread Boysenberry Payne

Is there more information online about hooks you'd suggest checking out?

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Feb 12, 2006, at 9:10 AM, Nick Kew wrote:


On Sunday 12 February 2006 14:07, Boysenberry Payne wrote:

Other than the initial blurb about it I could only find general hook
info here:

http://httpd.apache.org/docs/2.0/developer/hooks.html


FWIW, given that it's dated 1999, that document is surprisingly
up-to-date and still valid for the hooks available in the apache core.

But it would not be quite such a good reference for third-party 
modules,

for which optional hooks are more likely to be appropriate.

--
Nick Kew

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] "monitor hooks" docs in apache 2.2

2006-02-12 Thread Boysenberry Payne
Other than the initial blurb about it I could only find general hook 
info here:


http://httpd.apache.org/docs/2.0/developer/hooks.html

If you find something more, let me know, seems like a very useful hook 
to hack...


Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Feb 12, 2006, at 7:48 AM, Jacqui Caren wrote:


 'monitor hooks' feature of apache2.2



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Pretty URLs with .htaccess

2006-02-12 Thread Boysenberry Payne

As long as .htaccess files are enabled try:

RewriteEngine on

RewriteRule
^(.*)comments/blogid/(.*)[/]?$		/html/comments.php?blogid=$1


I think that will do it for you.  You'll want to validate as usual...

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Feb 11, 2006, at 11:41 PM, Murray @ PlanetThoughtful wrote:


Hi All,

I have a site hosted on apache 1.3.34 and I'd like to provide 'pretty'  
URLs for a particular PHP file.


A typical url to the file currently would be:

http://www.planetthoughtful.org/html/comments.php? 
blogid=fcc6c3c2d7756df3c3ed1900dbe1c004#351


I'm hoping to change this to something like:

http://www.planetthoughtful.org/html/comments/blogid/ 
fcc6c3c2d7756df3c3ed1900dbe1c004/


I don't really know how to achieve this using rewrite rules, so if  
anyone can give me any pointers, I'd very much appreciate it.


Much warmth,

Murray
---
"Lost in thought"
http://www.planetthoughtful.org

"Urban legends, superstitions, ghost
stories and folklore"
http://www.ulblog.org

-
The official User-To-User support forum of the Apache HTTP Server  
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Header set Server "NewServerName" ... problem

2006-02-11 Thread Boysenberry Payne
Just recently I was able to "turn off" some of the extra header output 
via:


#
# ServerTokens
# This directive configures what you return as the Server HTTP response
# Header. The default is 'Full' which sends information about the 
OS-Type

# and compiled in modules.
# Set to one of:  Full | OS | Minor | Minimal | Major | Prod
# where Full conveys the most information, and Prod the least.
#
ServerTokens Prod


It might help...


thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Feb 11, 2006, at 1:21 PM, Vincent Blondel wrote:



I am using Apache 2.0.55 and I googled a lot last hour to find why it 
is

not possible to change the HTTP Header 'Server' field with mod_headers.

I found some websites pretending this is well possible and some others
saying it is not possible. When I try it, it seems this is not 
possible.


But I didn't find an answer ... why this is not possible regarding that
this is well the sense of the module mod_headers to manipulate http
headers.

Regards
Vincent.


-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Help getting php up and running

2006-02-11 Thread Boysenberry Payne

I'm catching this thread late, did you already reinstall apache w/php?

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Feb 11, 2006, at 9:18 AM, CasperLinux wrote:

Anyone have any input? I am googling till my fingers hurt and 
everything I
find says it should be running.  Whenever I try to open a test.php 
file all I
get is the web browswer trying to save the file instead of serving up 
the php

content.

On Friday 10 February 2006 21:28, CasperLinux wrote:

I run a Debian unstable system with apache 1.3 installed.  I had PHP
 installed and running then tried to install Acid/Base for Snort.  
That
 installation did not work properly so I attempted to remove the 
components
 but then I lost php support.  I removed all the PHP files and 
reattemtped

to install. No joy. Anyone have any ideas of what may be an issue.

I have the following installed

ii  libapache-mod-php44.4.2-1
server-side, HTML-embedded scripting languag
rc  libapache2-mod-php5   5.0.5-3
server-side, HTML-embedded scripting languag
ii  php4  4.4.2-1
server-side, HTML-embedded scripting languag
ii  php4-common   4.4.2-1   Common
files for packages built from the php
ii  php4-mysql4.4.2-1   MySQL
module for php4

And this is my modules.conf

ClearModuleList
AddModule mod_so.c
AddModule mod_macro.c
LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so
LoadModule includes_module /usr/lib/apache/1.3/mod_include.so
LoadModule includes_module /usr/lib/apache2/modules/libphp4.so

For the life of me I can't figure out why following the instructions 
won't
 get this up and running this time.  I think I'm missing a file 
somewhere.


Don

--
- Powered by Debian Linux -

---

--
- Powered by Debian Linux -


--
- Powered by Debian Linux -

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

---

--
- Powered by Debian Linux -

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Off-topic. Domain (nameservers not transfered)

2006-02-01 Thread Boysenberry Payne
If they're a business you can report them to the better business 
bureau, or something similar.




Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Feb 1, 2006, at 9:42 PM, Alvaro Cobo wrote:


Hi guys:

Sorry for this off-topic, but I think this is of interest of all of us 
which

work with domains and stuff...

One month ago I have asked my current hosting service to cancel their 
service
and to change the nameserver from their to the server of the new 
hosting I

have hired. They have delayed deliberately this change for one month, I
guess expecting I will hire their services again. I have canceled the
payment account so they will not charge for another month of awful 
service.


My questions are:

a) If they suspend the service (due to I haven't paid it) I will lose 
all
the emails sent to the addresses of my domain. So, is there any way I 
can
catch this emails. I have been checking the administration control 
panel the

hosting provides me, and there is not access to my DNS records, then I
cannot change my MX records either.

b) Does anybody has faced a problem like this (a domain hijacked by the
hosting company) and how did you solved it?. I have contacted the 
registrar
and they say they cannot do anything, because this company is the 
reseller

and they have the account passwords and stuff.

I am desperate. I am feeling violated in my rights and 50 persons at my
office are going to be without email, and my server is going to 
be down because of this problem with this

hosting company.

Thanks a lot in advance.

Alvaro Cobo


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Cookie problem in IE, but not FF

2006-02-01 Thread Boysenberry Payne
You'll probably get a better response from the mailing list that are 
more geared towards Apache2::Cookie...


the mod_perl list is:
modperl@perl.apache.org

The module specific list for Apache2::Cookie is:
apreq-dev@httpd.apache.org

Without knowing what you're trying to do with your code I might not be 
able to answer you effectively.


So far in my limitted experience with Apache2::Cookie I've found the IE 
for the Windows is particularly
finicky about how cookies are made.  Here is an example of code I have 
to set cookies:


#
# Object's constructor
#
sub new {

$self->{jar} = Apache2::Cookie::Jar->new( $self->{req} );
$self->{cookies} = $self->{jar}->cookies();
}


#
# Set Cookie Array Up for baking later
# $cookie = { name => "", value => "" }
#
sub set {

my( $self, $cookie ) = ( shift, shift );
my $data = $self->{data}; # an array I use to set cookies later
if( $cookie ) {
		push( @$data, Apache2::Cookie->new( $self->{req}, %{$cookie} ) ) or 
return;

}
return 1;
}



Then when I'm done with everything else and ready to output:

my $data = $self->{cookies}->{data};

if( @$data ) {
foreach( @$data ) {
$_->bake( $r );
}
}


To get cookies I use:

my $jar = $self->{cookies}->{jar};
my $cookies = $jar->cookies();
my $previous_cookie = $cookies->{previous_cookie}->thaw if( 
$cookies->{previous_cookie} );


There are probably way better examples out there already...


Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Feb 1, 2006, at 12:37 AM, Jason Younker wrote:



Hello All,

I recently upgraded to the following (on a rhel3 box):
Apache/2.0.55
mod_ssl/2.0.55
OpenSSL/0.9.8
DAV/2
mod_apreq2-20050712/2.1.3-dev
mod_perl/2.0.2 Perl/v5.8.0

And now I find myself stuck for hours on what I am convinced is a 
no-brainer. Here is what I am trying to do ($r below is of course an 
Apache2::RequestRec object):


--start--

my $jar = Apache2::Cookie::Jar->new($r);
$m->out("Jar Status: ". $jar->status() ."");

--end--

In Firefox 1.5, this prints: "Jar Status: Success"

However, in IE 6.0.28, I am getting: "Jar Status: Missing input data"

Other than that, I don't know what to tell you. I have placed some 
install information below (how I compiled mod_perl, apache, openssl in 
case it helps). I imagine this is an httpd.conf issue, but I have no 
idea what to ask or where to go from here. *Any* help is very, very 
appreciated!


Jason

# openssl
cd openssl-0.9.8a
./config --prefix=/usr/local/ssl/install 
--openssldir=/usr/local/ssl/install/openssl

make
make install

# Apache2
tar -zxvf httpd-2.2.0.tar.gz
cd httpd-2.2.0
./configure -with-mpm=worker --enable-modules=all 
--enable-mods-shared=all --enable-deflate --enable-ssl 
--with-ssl=/usr/local/ssl/install/openssl

make
make install


# mod_perl 2
tar -zxvf mod_perl-2.0-current.tar.gz
cd mod_perl-2.0.2
perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs
make
make test
make install
ls -l /usr/local/apache2/modules/mod_perl.so



-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] reverse proxy - forward ip

2006-01-30 Thread Boysenberry Payne

Maybe try this:

RewriteRule   ^(.*)$	 http://unique.host.com:8000/$1?ip=%{REMOTE_ADDR} 
[P]


or

RewriteRule   ^(.*)$	 
http://unique.host.com:8000/index.php?request=$1&ip=%{REMOTE_ADDR} [P]


with a rewrite rule on the receiving server to bring it back to the 
original request.


You probably want something like mod_perl or php to handle this most 
effectively

(i.e. for doing something with the IP addy, etc. )


Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Jan 30, 2006, at 1:12 PM, allan juul wrote:


hello,

we have on the same machine an apache2 in front (80) of a backend web
server (8000) in a reverse proxy set up. the backend sees the proxied
requests from the apache as coming from localhost.
we are in a situation were we need the backend to see the request 
coming

from anything but localhost.

one approach might be to establish a unique host header on the backend,
so the apache would forward requests like:

RewriteRule ^/(.*) http://unique.host.com:8000/$1 [p,l]

instead of

RewriteRule ^/(.*) http://localhost:8000/$1 [p,l]


i just wander if there are an easier / or even another solution to 
this?

perhaps forwarding the original client ip somehow.

thanks
./a




-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Compiling apache 2 modules

2006-01-30 Thread Boysenberry Payne

This is what I used:

./configure --with-mpm=prefork --enable-mods-shared=all --enable-ssl 
--with-perl=/usr/bin/perl


It's all DSO for me.  I think it might be DSO because of this: 
--enable-mods-shared=all



Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Jan 30, 2006, at 9:09 AM, [EMAIL PROTECTED] wrote:



Hi everyone.

I'm messing around with SSL trying to compile apache 2.0.55
with all modules including mod_ssl as dso's.

I use the following command to configure; all modules apart
from mod_ssl are built into the server.

# ./configure --prefix=/usr/local/apache2-0-55-SSL
--enable-mods-shared=all --enable-mods-shared=ssl
--with-ssl=/usr/include/openssl

The above is all on one line.


How do I get the other modules to compile as dso's, and
not as static?

TIA

Keith

In theory, theory and practice are the same;
In practice they are not.

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache not working

2006-01-29 Thread Boysenberry Payne
Try making a blank index.html with a text editor (it should be a text 
file not rich media, etc.)
or copy an index.html file from somewhere else.  Then put it into the 
root htdoc directory
and see if it works.  Also you might want to check your logs for any 
errors.



Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Jan 28, 2006, at 2:04 PM, Chris Caceres wrote:


Hi,
 
I installed (typical) apache 2.0.55 using the msi file (I'm running 
Windows XP Home).  I assume you need to have your wireless internet 
disabled in order for the server to work properly?  Just in case, I 
have it disabled and type in http://localhost and it doesn't go to the 
proper apache page.  I saw an earlier post and tried using "ServerName 
127.0.0.1" instead of "ServerName localhost:80", but this doesn't work 
for me.  The htdocs folder has a bunch of index.html.* files but no 
index.html file.  If it needs the index.html file, where can I get 
it?  Thanks for your help!

 
Chris


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache 2.0 running but http://localhost won't work.

2006-01-27 Thread Boysenberry Payne

You might need to set:

ServerName 127.0.0.1

in your httpd.conf file


Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Jan 27, 2006, at 12:41 PM, Chris D'Ambrosio wrote:

hi, i just recently downloaded Apache 2.0 to my system 
(apache_2.0.55-win32-x86-no_ssl.msi)

 
i'm running windows XP home edition.
 
the msi would not start downloading until i turned off my wireless 
connection (not sure if this could be the root of the problem). once 
turned off the msi wizard began. i selected a typical install... 
setting my network domain and server domain to "localhost".

 
once complete, i noticed the feather in the taskbar with the green 
light indicating that the apache application had downloaded 
successfully and was running properly. i then opened up an internet 
explorer browser and typed:

 
http://localhost/
 
this is where the problem occ urs. the page will not load. I get your 
typical, "the page cannot be displayed" message. i even tried 
shutting down my compu

ter and
starting apache. still no luck. i've also tried this with my wireless 
connection on and off.

 
seems like i'm close but can figure out why i cannot see the default 
apache page in my browser.

 
any help would be appreciated.
thanks.
chris.



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Having problem while requesting for pages while downloading something from http server.

2005-12-31 Thread Boysenberry Payne

Which MPM type prefork?

Also, what are the following in your httpd.conf file:

StartServers 5
MinSpareServers  5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild  0

for the php file you can try putting the following into an .htaccess 
file if

you have AllowOverride All set for the directory:

php_value max_execution_time 1800

That's all I can think of...

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Dec 31, 2005, at 12:08 PM, paritosh mahana wrote:


Hi,
I have set up apache http server version 2.0.53. I am having problem 
when I try to access some data via php while downloading some file. 
The download thing is done by calling a php script. And in the middle 
of downloading when I try to access some other php from the server it 
gives connection time out error and the connection that  I had 
established for file download closes by itself without any exception. 
The download thing is done by calling the readfile() function.


Another thing is that when I try to download something from my server 
it works fine via the php page.(No other requests for any other 
page)But when I want to start another download then it just waits for 
the first download to finish. So why are they not sharing resources, 
like my bandwidth, and why the 2nd wait for the 1st to finish. Is 
there any configuration setting for this that I have messed up. Or do 
I have to add something in my php files.


current server config:
Apache2.0.53
php4.3.10

Thanks.



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Newbe needs help passing form data

2005-12-30 Thread Boysenberry Payne
In your httpd.conf file how do you have it set up to handle the  
directory you're working in?


Can you paste an example e.g.:

Alias /perl/ "/usr/local/apache2/perl/"

SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options ExecCGI


Or whatever you have.


Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Dec 29, 2005, at 1:39 PM, Arnie & Georgia Stender wrote:


Hi Aaron,
I'm sorry, I must not have expressed myself properly. I'm not having a  
problem with parsing the data, I'm not getting any data to parse. The  
server is not sending anything (CONTENT_LENGTH->0) to the STDIN of the  
script nor is it setting the QUERY_STRING environment variable. I  
think I have a server configuration issue but I can't find any place  
to turn it on. From everything I have read passing the data should be  
automatic once you have got the server configured to run the CGI. I  
also don't know enough about the inner workings of Apache to know for  
sure if it is actually configuration or if maybe it's the way I wrote  
the HTML. My form tag looks like everything I have seen in the books I  
have.  From what I have,  
that should do it for the HTML end of things.


Arnie

Wagner, Aaron wrote:


-Original Message-
From: Arnie & Georgia Stender [mailto:[EMAIL PROTECTED] Sent:  
Thursday, December 29, 2005 12:22 PM

To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] Newbe needs help passing form data

Hello,
   I am setting up my own Internet presence starting with DNS and  
HTML servers. I am teaching myself (as much as possible) how to  
write HTML from scratch. Below you will find the server $ENV  
variables which will describe versions of the server etc. This is  
running on Linux (LFS) 6.0 server.  I have looked through at least  
the archives for this month and not found an answer to my problem as  
well as a number of books on the subject of writing CGI (perl). So I  
ask you:
I have written a small HTML with a three field form that is supposed  
to pass the data to a perl script which in turn writes a dynamic  
HTML page based on the input to the form and sends it back to the  
browser. According to all I have read if I use method==POST the form  
data is supposed to be sent to the script via STDIN and if I use  
method==GET the data is sent via the $ENV{QUERY_STRING} variable.  
When using POST the amount of data being sent is available in the  
$ENV{CONTENT_LENGTH} variable. I have enabled everything I can find  
to run CGI on the server but I can not get the server to send any  
information to the script. I created the perl script from the online  
Apache manual to dump all the variables it is passing and the  
QUERY_STRING is empty and if the form is using POST the  
CONTENT_LENGTH==0. I am about 90% certain that I am missing  
something in the configuration file but after days of looking and  
reading I have not found out what it is. Running 'perl -w script'  
with a QUERY_STRING environment variable set equal to good data  
produces a good looking HTML output so I will go out on a limb and  
say the problem is not in the perl script. So, can anybody tell me  
what I am missing? BTW, the CGI script does produce the static  
portion of the HTML so the script is running just not getting the  
form data. Thanks in advance for any help you can give to point me  
in the right direction. Below is a sanitized output from the Apache  
ENV dump script.


Arnie

SCRIPT_NAME --> /cgi-bin/env.pl
SERVER_NAME --> stender4.local
HTTP_REFERER --> http://stender4.local/arnie.html
SERVER_ADMIN --> [EMAIL PROTECTED]
HTTP_ACCEPT_ENCODING --> gzip,deflate
HTTP_CONNECTION --> keep-alive
REQUEST_METHOD --> POST
CONTENT_LENGTH --> 0
HTTP_ACCEPT -->  
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9



,text/plain;q=0.8,image/png,*/*;q=0.5


SCRIPT_FILENAME --> /usr/local/apache2/cgi-bin/env.pl
SERVER_SOFTWARE --> Apache/2.0.54 (Unix)
HTTP_ACCEPT_CHARSET --> ISO-8859-1,utf-8;q=0.7,*;q=0.7
QUERY_STRING -->
REMOTE_PORT --> 34615
HTTP_USER_AGENT --> Mozilla/5.0 (X11; U; Linux i686; en-US;  
rv:1.7.7) Gecko/20050416 Fedora/1.0.3-1.3.1 Firefox/1.0.3

SERVER_PORT --> 80
SERVER_SIGNATURE -->
Apache/2.0.54 (Unix) Server at stender4.local Port 80

HTTP_ACCEPT_LANGUAGE --> en-us,en;q=0.5
REMOTE_ADDR --> 192.168.77.221
HTTP_KEEP_ALIVE --> 300
CONTENT_TYPE --> application/x-www-form-urlencoded
SERVER_PROTOCOL --> HTTP/1.1
PATH --> /bin:/usr/bin:/sbin:/usr/sbin
REQUEST_URI --> /cgi-bin/env.pl
GATEWAY_INTERFACE --> CGI/1.1
SERVER_ADDR --> 192.168.77.224
DOCUMENT_ROOT --> /usr/local/apache2/htdocs
HTTP_HOST --> stender4.local




Here is a script we are using now.  It is passing variables into this
perl script.  Hope it helps you


#! D:/WebCore2/perl/bin/perl.exe -w

use CGI qw(:standard);
use Net::Telnet;

$|=1;

my $WebP = new CGI;
print $WebP->header;

my $telnet;
my $output;
my $function;
my $remoteServer;
my $pageLink =
"http://esystems.bankofamer

Re: [EMAIL PROTECTED] Form Login Script

2005-12-27 Thread Boysenberry Payne

Try:




Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Dec 27, 2005, at 6:55 PM, Christopher Deeley wrote:

I am trying to use the following script to verify my users against a 
text file where each line is in the format username:password.

 
This is my script below. It worked fine until I started adding more 
users to the text file and it wouldn't recognise them. It will only 
show as a valid user if it matches the last entry in the text file.

 



 


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Detecting Javascript via Apache 2

2005-12-27 Thread Boysenberry Payne
You probably want to assume it doesn't then if it does set a cookie or 
establish it via link

or by using javascript to tell php it does and save it in the session.

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Dec 27, 2005, at 5:49 PM, [EMAIL PROTECTED] wrote:



Hi all.

Is it possible for apache 2.0 to detect if a browser has
javascript enabled when a page is requested, and then
passing this value to PHP?

This would allow me to serve different page content,
depending on whether the user's browser has javascript
enabled or not.

Regard

Keith Roberts






-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Delete Blank Lines In A Text File

2005-12-27 Thread Boysenberry Payne

Try:

$string = file_get_contents( "test.text" );
$string = file_put_contents( "test.text", preg_replace( 
"/(\r\n|\r|\n)(\s)*(\r\n|\r|\n)/", "$1", $string ) );



Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Dec 27, 2005, at 3:16 PM, Christopher Deeley wrote:

Does anyone know how to use PHP to delete blank lines in a text file. 
I use a text file to store usernames and passwords but with adding and 
deleting users, blank lines appear which returns an undefined offset 
error when the 'verify user script' tries to read each line of the 
text file.

 
Thanks


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Can Anyone Recommend A Log Analyzer?

2005-11-12 Thread Boysenberry Payne

This is my favorite, kind of a standard:

http://awstats.sourceforge.net/

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 12, 2005, at 10:25 AM, David P. Donahue wrote:

I'm looking for some recommendations for freeware (open source a plus, 
but not really necessary) log analyzers.  I've found various projects 
on the subject around sourceforge and freshmeat, but I'm wondering if 
anybody's been happy with anything in particular.  Specifically, I 
need something that will output a little HTML-based (other formats a 
plus) summary with charts and graphs and such.  Kind of like this:


http://www.the-sanctuary.info/logs

Of course, I looked up that product and it costs far too many monies. 
Basically, I'm going to be hosting some websites for family and 
friends, and hopefully branching out into a small business as such.  
I'd like to include a traffic analysis page like this for clients to 
help sell the service.


Has anyone used something with which they've been pretty happy? 
Ideally, if it can run on Linux and have the analysis be cron-able 
(that is, doesn't require a GUI to be running) that would be awesome.



Regards,
David P. Donahue
[EMAIL PROTECTED]

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] rewrite module eliminate the of .html address

2005-11-11 Thread Boysenberry Payne

Try
RewriteEngine on
RewriteRule   ^(.*)edgebanding[/]?$ 
/edgebanding.html

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 11, 2005, at 10:16 AM, Thomas J Berger wrote:

I would like to eliminate my user from having to type ".html" at the 
each

web page

 www.thermoweb.com/edgebanding.html to www.thermoweb.com/edgebanding

How do I code this in the htaccess file.

Thanks
Tom


-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache and PHP

2005-11-07 Thread Boysenberry Payne

I have PHP5 / Apache2 / mod_perl 2 all running locally on OS X 10.3.9.

It took me a bit of magic installing and reinstalling the bunch to get 
them

all to play together well.  When I use mod_perl I use a handler instead
of mod_cgi.  I had a few people mention PHP and mod_perl not getting
along together.  When I had PHP4 installed I did have problems with it.
It would crap out periodically.  After installing PHP5 my problems went 
away.


Maybe if you install PHP5 you'll have your problems go away too.

I haven't had a problem with SSL and have it installed too.

Hope that helps...

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 7, 2005, at 9:51 AM, Malka Cymbalista wrote:


We tried reinstalling apache and php but it didn't help.  Someone told
me that the problem might be because of SSL but I don't know what to do
to fix it.


[EMAIL PROTECTED] wrote on 11/7/2005 4:53 PM:

Hey, also, I started having this problem too, it didn't start until

I

started using perl scripts in my cgi-bin. Hm. I wonder if perl
sabotages
php? All I did to fix it was reinstall the blasted server, Apache and



Php
only, left MySql intact, and then everything worked fine.

On 11/7/05, Malka Cymbalista <[EMAIL PROTECTED]>

wrote:


It turns out that whenever the error occurs, there is a message in

the

error log saying that a file was not found. These files are indeed

not

found. But why should that cause the php not to open properly? And
sometimes it does open properly?


[EMAIL PROTECTED] wrote on 11/1/2005 6:01 PM:

Are there any errors in the error_log when the mishap happens?


Boysenberry

boysenberrys.com  |

habitatlife.com|
selfgnosis.com 


On Nov 1, 2005, at 1:28 AM, Malka Cymbalista wrote:


Thanks very much for your reply. I read the document you

referred

me

to
and it seems to me that it is for Apache 1 and mod_perl 1. We

are

running apache 2 and mod_perl 2 and not all of the instructions

are

applicable.
Do you have any idea how to do the installation of all these

components

using apache 2 and mod_perl 2?
Thanks for any information.


[EMAIL PROTECTED] wrote on 10/31/2005 3:05 PM:

Check out
http://www.linux-sottises.net/en_apache_install.php

Using both PHP and mod_perl together has caused problems in the

past

(http://slashdot.org/article.pl?sid=00/11/21/1720242), but I

think

they will play nicely now.

FYI, I ditched mod_perl in favor of a PHP a while ago. If I

really

need perl for a website do it with the cgi-bin directory.

On 10/30/05, Malka Cymbalista <[EMAIL PROTECTED]>

wrote:

We are having a strange problem with our PHP sites and I was

wondering

of someone has any pointers to offer.
We are running apache 2.0.55 with mod_perl 2.0.1 and php 4.3.3

and

mod_ssl 2.0.55 on a Sun Solaris machine. Every now and then,

when

you

click on a URL that is a php script, instead of the file

executing,

a

File Download panel opens and it asks if you want to save it

to

your

computer. It is as if it does not recognize that it is a php

file.

Sometimes it actually displays the code of the file. The

really

strange

thing is that it appears to happen randomly. That is, some

times

the

same link works perfectly well and the links open properky.

But

sometimes, it asks if you want to save the file. If you click

on

Cancel

and then click on the link again, it usually opens properly.
We have the following line in httpd.conf:
AddType application/x-httpd-php .php .phtml

Does that line belong in any particular place. Originally it

was

in

the general part of the file and not in any 

section.

I

added it to some of the  sections but it doesn't

seem

to

have

made a diference.

Does anyone have any ideas about what is happening and how to

fix

the

problem?

Thanks for any help.


Malka Cymbalista
Webmaster, Weizmann Institute of Science
[EMAIL PROTECTED]
08-934-3036







-

The official User-To-User support forum of the Apache HTTP

Server

Project.
See http://httpd.apache.org/userslist.html> for more

info.

To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]



For additional commands, e-mail: [EMAIL PROTECTED]










-

The official User-To-User support forum of the Apache HTTP

Server

Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Malka Cymbalista
Webmaster, Weizmann Institute of Science
[EMAIL PROTECTED]
08-934-3036





-

The official User-To-User support forum of the Apache HTTP

Server

Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [EMAIL PROTECTED] Serving dynamic pages with C

2005-11-05 Thread Boysenberry Payne

What list is the Apache Modules list, I'll sign up for that one too.
Never hurts to learn new things.

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 5, 2005, at 12:18 PM, Nick Kew wrote:


On Saturday 05 November 2005 18:14, Boysenberry Payne wrote:

I didn't know it was abandoned, sorry.
Is there going to be an equivalent?


With a bit of luck there'll be a real book on the subject:-)

On the apache modules list I said "watch this space".  I guess this 
list

might just get to hear of relevant news too.

--
Nick Kew

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Serving dynamic pages with C

2005-11-05 Thread Boysenberry Payne

I didn't know it was abandoned, sorry.
Is there going to be an equivalent?


Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 5, 2005, at 12:10 PM, Nick Kew wrote:


On Saturday 05 November 2005 18:04, Boysenberry Payne wrote:

It probably the best one until this comes out:

http://www.amazon.com/exec/obidos/tg/detail/-/1590594436/002-2785792
-3636047?v=glance


Good grief!  That one was abandoned a *long* time ago.  Don't say 
Amazon

are taking orders on it?

--
Nick Kew

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Serving dynamic pages with C

2005-11-05 Thread Boysenberry Payne

It probably the best one until this comes out:

http://www.amazon.com/exec/obidos/tg/detail/-/1590594436/002-2785792 
-3636047?v=glance



Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 4, 2005, at 5:02 PM, Nick Kew wrote:


On Friday 04 November 2005 16:56, Boysenberry Payne wrote:

I good book to check out is Writing Apache Modules with Perl and C by
O'Reilly.


Well, it's no doubt better than nothing, but it's too old to apply to  
much
more than CGI-replacement level development with current apache  
versions.


--
Nick Kew

-
The official User-To-User support forum of the Apache HTTP Server  
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Serving dynamic pages with C

2005-11-04 Thread Boysenberry Payne
I good book to check out is Writing Apache Modules with Perl and C by 
O'Reilly.


http://www.oreilly.com/catalog/wrapmod/desc.html

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 3, 2005, at 6:58 PM, Rob Belics wrote:

I would like my Apache server to dynamically create and serve some web 
pages using 'C'.  I am not interested in using the default CGI or 
Perl.  I have gotten myself turned round and round for weeks on how to 
do this.  I know I need to use the API but I don't understand where 
handlers and modules fit in.


An example of where I am confused.  If a request for index.html comes 
in, would I have AddHandler myhandler .html in httpd.conf and write 
code for 'myhandler' to do this?  Wouldn't 'myhandler' actually be a 
module?  Or are modules just a collection of handlers like a library?


I think I might have enough information to know how to write a module 
if I just knew how Apache knew when and where to call my 'whatever' 
but I just need some direction.


Thanks.

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] How to access files via apache stored in InItCaps

2005-11-03 Thread Boysenberry Payne

You could use a registry expression with mod_rewrite something like:

RewriteEngine on
RewriteRule   ^(.*)[Tt][Ee][Ss][Tt][Pp][Aa][Gg][Ee]\.txt$   /testpage.txt

This is by no means a great example of either mod_rewrite or rexexp
but it's a start...

If you have .htaccess files enabled you can put it in there...


Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 3, 2005, at 7:45 AM, Kumar, Atul wrote:


Hi All,
 I am not an expert in apache so please ignore if this question
sounds silly.

I have placed some text file in one of the folder ( htdocs ) in apache 
,

File name is   TestPage.txt so when I try to access this page from
browser message comes as page not found . On checking error message on
log files I can see that it displays that file  testpage.txt not
found so its loking for "lowercase" file name .
How to force apache so that it looks for actual name ( case
sensitive ) of file rather then changing it to lowercase.

Atul

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Images/Flash files not loading.

2005-11-03 Thread Boysenberry Payne

You might need to set these variables:

php_value upload_max_filesize
php_value post_max_size
php_value max_execution_time

You can set them in an .htaccess file if need be...


Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 3, 2005, at 7:12 AM, Ben Houlton wrote:


hi,
im running Apache/2.0.55 (Win32) PHP/4.4.0 on Windows XP Pro, and I'm 
having problems downloading files larger then about 500KB (well 
viewing them like images/flash files). with images it downloads about 
halfway down the page then goes grey, and with flash movies with a 
preloader it just stops.
you can see what i'm talking about here: 
http://www.benjrox.net/?page=kangaroos and here: 
http://john.benjrox.net/flash/YouCannotEscapeYourFate.swf

 
thank you for your time.
 
ben houlton


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] [OT] Apache and PHP/MP

2005-11-02 Thread Boysenberry Payne
The only thing I'm afraid of is mod_perl not getting the proper respect 
if deserves
in the development community by "new comers."  If it looses developers 
because
of ignorance in the communities attracting them then the internet as a 
whole looses.


To continue to have the wealth of resources available via cpan and 
other similar resources
we need to look at each technology as complimentary as opposed 
competitive.
The arguments favoring one over the other are always situational by 
nature.  With
Apache you can use both.  If all I need to do is connect to mysql and 
process some
for data, or use plug and play free prefab systems, php works fine.  If 
I want a bullet proof
html parser for free I'd be hard pressed to find the equivalent to 
HTML::TreeBuilder

or one of the other 20 or more choices available to perl.

So, my point is if you want script a solution thats easily done php 
works fine.  If you
need something low level or are putting together a bigger application 
then perl
makes a lot more sense.  There is lots of other languages too (lisp, 
ruby, python, etc).
Apache is good that way.  If we look for ways to utilize each to the 
best of its ability

we all benefit.

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 2, 2005, at 7:52 PM, Michael Vince wrote:


Joshua Kogut wrote:

w00t. You got me on that one. I think this analogy is blown far out 
of the water by those smarter than I. Congrats *bows*. Ok, the real 
reason I would rather have php than perl, is really two things. 
First, to use the toolbox [perl], you (should) need to know how to 
use every tool effectively, or at least most of them, the hammer 
[php] is the ONLY the tool you need.


 Inexperienced users may see easier ways to do something with perl, 
but chances are, you can still do these things (related to web 
applications) with php. Note: Perl has tools to cover every aspect of 
your entire computing experience, it can make desktop applications, 
utilities, can do file management, etc. This results in a steep 
learning curve. Another benefit for php, is that it is SIMPLE, and 
simple doesn't always mean limited. It means simple. It results in a 
language that I, a relative beginner to php (only been using it for a 
year and a half now) can make an entire web site, login system, 
custom session handlers, full database support (mysql, yeah!) basic 
file management, user uploading, automatic payment system (paypal, 
yeah!), automatic xml/rss feed generation, mass emailing system 
(spam, yeah! lol), HAND-BUILT message boards, etc.


 How many scripts do you see for the front/back end of a website that 
involve perl? I don't see very many, on the other hand, php has many 
freely available scripts that do everything that I have just said 
could be done in less than 5 hours. Note: I am NOT recommending php 
because of the amount of free scripts that are out there, this is an 
example of its popularity. As stated by a popular wiki,


>
One major part of PHP which has helped it become popular is that it 
is a very loose language; in particular, it is dynamically typed 
. That is, the rules are 
not as strict with variables—they do not have to be declared and they 
can hold any type of object. Arrays are heterogeneous, meaning a 
single array can contain objects of more than one type.


According to Netcraft 's April 
2002  survey, PHP is now the most 
deployed server-side scripting language, running on around 9 million 
of the 37 million domains  in 
their survey. This is confirmed by PHP's own figures, which show PHP 
usage (measured on a per-domain basis) growing at around 5% per 
month. In May 2003, almost 13 million domains were using PHP, based 
on the same source.[1] 


Due to PHP's popularity in the web space, a new breed of programmers 
emerged who are familiar only with PHP. This encouraged the 
development of a command line interface for PHP, as well as GUI 
libraries such as GTK+  and text 
mode libraries like Ncurses  
and Newt. This was a major step for PHP, because it helped move it 
from being a language used only for CGI to a general-purpose 
programming language. On the desktop it has been favored by some new 
programmers as a rapid prototyping environment. It is both a quick 
and effective tool for create rapid web applications with ease, 
greatly improving any website as a whole.

--

So, php isn't just a web language, it is also a general purpose 
programming language. lol, php is powerful, no doubt about it, but 
there is one thing you should know, that you don't have to go either 
php OR perl, you can choose php AND perl, for the sick, sick people 
that want to

Re: [EMAIL PROTECTED] [OT] Apache and PHP/MP

2005-11-02 Thread Boysenberry Payne
When I was beginning perl seemed way too hard.  PHP was pre-installed
on my server so a ran with it.  I also used Javascript and Actionscript.
After a while perl seemed like the Holy Grail of languages and I found my
self pulled to it like a moth to a flame.  After using PHP for about 5 years
I finally got up the courage to try Perl.  I learned (am learning) Perl while
translating something I wrote in PHP to Perl.

After 3 months I'm nearing completion of my translation.  In finishing I've
noticed huge speed increases and have cut the weight of the code nearly
by half.

Getting mod_perl installed was definitely harder than getting php installed.
But using mod_perl has been so much more satisfying.  I would say unless
you want to really get into the nitty gritty of coding mod_perl is over kill for most
light weight web scripts, only in that it takes more know how to get up and
running and started.  There are so many peculiarities to perl you wont find
in the stricter c based languages (i.e. python, php, javascript, etc.)  For example,
the special variables like $_, $@, etc. aren't found in most common web based script
languages.  Whitespace is another one I hear a lot about.

Once you get your head around the odd perlisms it becomes clear they're useful
tools.  I myself love PHP as well as Perl.  Some people hate GUI, some hate
CLI for the same issues.  I think they both have usefulness.

I'm truly grateful to the the whole Open-source community; without them we
wouldn't be debating at all.  Instead we'd probably still use punch cards stuck
in some bad 60's sci-fi flick.  Think about all of those people sharing unix code
when this was all starting.  If they didn't imagine how slow it would all be going.

So one thing Perl has going for it is it's been around for a long time, undergoing
growth and change from a broad effort of many people, even longer than PHP.
PHP started with processing text as its goal.  Perl was a glue language, for site
administrators mostly.  The differences in their origins shaped their structures.
As a glue language Perl behaves like a few different languages.  PHP on the
other hand acts more like a shell for lower level C apps.  If you're used to awk
or shell scripting and moving into www development, then Perl will probably
be more accessible.  On the other hand if you have used other C based languages
like Javascript, etc then PHP makes a lot of sense.

Where Perl was most useful for me, inspiring my 3 month debacle, was extensibility
and handling apache processes.  mod_perl allows me to get into creating
apache handlers.  You can also use Perl in the Apache configuration files.

Maybe PHP does this now, or will shortly.  I imagine the next best thing to
creating it in Perl would be to do it in C though...

Thanks Apache Foundation for building the best server in the world, and for free too...

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 2, 2005, at 12:55 PM, Joshua Kogut wrote:

Also, methinks perl was just too hard when I was just a *wee little*  beginner.  Now that I have a simpler language under my belt, I should probably try to tackle learning perl. Then, to see how much easier perl is, I will attempt to learn python (I HATE WHITESPACE SYNTAX).

On 11/2/05, Joshua Kogut <[EMAIL PROTECTED]> wrote:
Oh yes, Visual Basic is also used very much. And Windows is also used much 
more than Unix. Because they are better, right? :-)
 lol, you got me on that one. I dunno why I prefer php now, maybe because it has a cooler name...





-- 
||  jmkogut  ||
email: [EMAIL PROTECTED]
|| Networking: Where all your problems are category 5. ||


Re: [EMAIL PROTECTED] Apache and PHP

2005-11-01 Thread Boysenberry Payne
I understand, for me it was kind of like after having using a hammer
for so long the nail gun feels good, you know
;)


Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 1, 2005, at 9:46 AM, Joshua Kogut wrote:

It isn't that multipurpose tool couldn't do anything that the hammer could, it's just that the hammer did it with less work, less learning, and less frustration.

On 11/1/05, Octavian Rasnita <[EMAIL PROTECTED]> wrote:[EMAIL PROTECTED]>
Hey guys, here's an analogy concerning Php and MP. You can go to a store,
and you have $100 US to buy something to help you hammer nails. The logical 
choice is that you should buy a hammer right? It does what you need it to,
and the shallow learning curve is nice. But, on the way to the hammer
section, you see this multi-purpose tool that can not only hammer the nail 
for you, but it can also buy the nail, hold the nail in the wood, and then
make lemonade for you. Now, you go buy the multi-purpose tool, bring it
home, and then realize that it doesn't do the one job that you wanted it 
for, hammering, as well as a hammer would.

This is how I felt with Perl. It did so many things that I felt that it just
couldn't concentrate one one thing enough, web applications. So, I found
myself at php.net  one day and fell in love with the trusty
hammer.
--

What did you try to do and couldn't do it with MP?

...really curious. :-)


Teddy


-
The official User-To-User support forum of the Apache HTTP Server Project.
See  http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
||  jmkogut  ||
email: [EMAIL PROTECTED]
|| Networking: Where all your problems are category 5. ||


Re: [EMAIL PROTECTED] Apache and PHP

2005-11-01 Thread Boysenberry Payne

Are there any errors in the error_log when the mishap happens?


Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 1, 2005, at 1:28 AM, Malka Cymbalista wrote:

Thanks very much for your reply.  I read the document you referred me 
to

and it seems to me that it is for Apache 1 and mod_perl 1.  We are
running apache 2 and mod_perl 2 and not all of the instructions are
applicable.
Do you have any idea how to do the installation of all these components
using apache 2 and mod_perl 2?
Thanks for any information.


[EMAIL PROTECTED] wrote on 10/31/2005 3:05 PM:

Check out
http://www.linux-sottises.net/en_apache_install.php

Using both PHP and mod_perl together has caused problems in the past
(http://slashdot.org/article.pl?sid=00/11/21/1720242), but I think
they will play nicely now.

FYI, I ditched mod_perl in favor of a PHP a while ago.  If I really
need perl for a website do it with the cgi-bin directory.

On 10/30/05, Malka Cymbalista <[EMAIL PROTECTED]>

wrote:

We are having a strange problem with our PHP sites and I was

wondering

of someone has any pointers to offer.
We are running apache 2.0.55 with mod_perl 2.0.1 and php 4.3.3 and
mod_ssl 2.0.55 on  a Sun Solaris machine.  Every now and then, when

you

click on a URL that is a php script, instead of the file executing,

a

File Download panel opens and it asks if you want to  save it to

your

computer.  It is as if it does not recognize that it is a php file.
Sometimes it actually displays the code of the file. The really

strange

thing is that it appears to happen randomly.  That is, some times

the

same link  works perfectly well and the links open properky.  But
sometimes, it asks if you want to save the file. If you click on

Cancel

and then click on the link again, it usually opens properly.
We have the following line in httpd.conf:
AddType application/x-httpd-php .php .phtml

Does that line belong in any particular place.  Originally it was

in

the general part of the file and not in any  section.  I
added it to some of the  sections but it doesn't seem to

have

made a diference.

Does anyone have any ideas about what is happening and how to fix

the

problem?

Thanks for any help.


Malka Cymbalista
Webmaster, Weizmann Institute of Science
[EMAIL PROTECTED]
08-934-3036



-

The official User-To-User support forum of the Apache HTTP Server
Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-

The official User-To-User support forum of the Apache HTTP Server
Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Malka Cymbalista
Webmaster, Weizmann Institute of Science
[EMAIL PROTECTED]
08-934-3036

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache and PHP

2005-10-31 Thread Boysenberry Payne
That's funny I did the opposite, started with PHP and went to MP
after a few years at PHP.

Just out of curiosity, why would one go from MP to PHP?  It seems
like you're giving up a lot in the move.

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Oct 31, 2005, at 1:44 PM, Joshua Kogut wrote:

I too have strayed from the the road of perl in favor of my new love. Php.

On 10/31/05, Tom Cat <[EMAIL PROTECTED] > wrote:Check out
 http://www.linux-sottises.net/en_apache_install.php

Using both PHP and mod_perl together has caused problems in the past
(http://slashdot.org/article.pl?sid=00/11/21/1720242 ), but I think
they will play nicely now.

FYI, I ditched mod_perl in favor of a PHP a while ago.  If I really
need perl for a website do it with the cgi-bin directory.

On 10/30/05, Malka Cymbalista < [EMAIL PROTECTED]> wrote:
> We are having a strange problem with our PHP sites and I was wondering
> of someone has any pointers to offer.
> We are running apache 2.0.55 with mod_perl 2.0.1 and php 4.3.3 and
> mod_ssl 2.0.55 on  a Sun Solaris machine.  Every now and then, when you
> click on a URL that is a php script, instead of the file executing, a 
> File Download panel opens and it asks if you want to  save it to your
> computer.  It is as if it does not recognize that it is a php file.
> Sometimes it actually displays the code of the file. The really strange 
> thing is that it appears to happen randomly.  That is, some times the
> same link  works perfectly well and the links open properky.  But
> sometimes, it asks if you want to save the file. If you click on Cancel
> and then click on the link again, it usually opens properly.
> We have the following line in httpd.conf:
> AddType application/x-httpd-php .php .phtml
>
> Does that line belong in any particular place.  Originally it was in 
> the general part of the file and not in any  section.  I
> added it to some of the  sections but it doesn't seem to have
> made a diference.
>
> Does anyone have any ideas about what is happening and how to fix the 
> problem?
>
> Thanks for any help.
>
>
> Malka Cymbalista
> Webmaster, Weizmann Institute of Science
> [EMAIL PROTECTED]
> 08-934-3036
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See  http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED] 
>
>

-
The official User-To-User support forum of the Apache HTTP Server Project.
See  http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
||  jmkogut  ||
email: [EMAIL PROTECTED]
|| Networking: Where all your problems are category 5. ||


Re: [EMAIL PROTECTED] Error on apachectl start

2005-10-14 Thread Boysenberry Payne
I forgot I am trying to get Apache 2.0.55 working.  I had Apache 2.0.54 
before this.

It was working fine.

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Oct 14, 2005, at 5:36 PM, Boysenberry Payne wrote:

I'm using OSX 10.3.9 and had the following error while trying to start 
apache:


Syntax error on line 255 of /opt/local/apache2/conf/httpd.conf:
Cannot load /opt/local/apache2/modules/mod_ssl.so into server: dyld: 
/opt/local/apache2/bin/httpd Undefined 
symbols:\n_X509_INFO_free\n_X509_free\n


Do I need to reinstall OpenSSL?

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com


-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Error on apachectl start

2005-10-14 Thread Boysenberry Payne
I'm using OSX 10.3.9 and had the following error while trying to start 
apache:


Syntax error on line 255 of /opt/local/apache2/conf/httpd.conf:
Cannot load /opt/local/apache2/modules/mod_ssl.so into server: dyld: 
/opt/local/apache2/bin/httpd Undefined 
symbols:\n_X509_INFO_free\n_X509_free\n


Do I need to reinstall OpenSSL?

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Re: Apache running with PID of 0

2005-10-05 Thread Boysenberry Payne

Is PHP5 installed as package? Binary or Source?


Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Oct 5, 2005, at 2:32 PM, Shankar Unni wrote:


Duncan Drury wrote:


Output from ps -aux |grep httpd
root   645 99.0  0.8  8208 3920  ??  Rs7:47PM   2:29.57
/usr/local/sbin/httpd
www  0  0.0  0.0 00  ??  ZW   - 0:00.00  
(httpd)
www  0  0.0  0.0 00  ??  ZW   - 0:00.00  
(httpd)
www  0  0.0  0.0 00  ??  ZW   - 0:00.00  
(httpd)

...

This ("ZW") means they're all zombies (I guess freebsd shows them as 
"PID 0"). Your parent httpd process seems to be spinning wildly, and 
not receiving the SIGCHLDs from the children? Or something else has 
caused the signals to get blocked?


I'd suspect PHP, too..


-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] moving .htaccess rewrite cond to httpd.conf

2005-10-04 Thread Boysenberry Payne

I have a server that has .htaccess files with mod_rewrite instructions.
Now I want to move the instructions into httpd.conf so I don't have to 
put into

each of our clients sites anymore.

It's nothing special (the rewrite conditions) and I want it for all of 
our virtual hosts.
How do I need to insert it into our httpd.conf file, as is, or is there 
some special

way to structure it to work with each virtual host?

Here is an example of the rewrite conditions:

RewriteEngine on
RewriteRule   ^(.*)/section$/new_location/new_file.htm

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache running with PID of 0

2005-10-04 Thread Boysenberry Payne

It sounds like php to me too, with what you've said so far.
What OS and PHP versions are you using?


Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Oct 4, 2005, at 1:43 PM, Duncan Drury wrote:


It tells me that apache isn't running and fails to start apache.

I failed to mention that this is Apache 1.3.

The problem I am having is almost certainly to do with PHP.

If I do apachectl graceful, Apache won't start up until I comment out 
the

Load and AddModule directives for php5 in httpd.conf.

Then if I uncomment out these directives the server starts fine.

Then running apachectl graceful again throws apache into the PID 0
situation, which I only know how to get out of by rebooting the whole
server.

Duncan


-Original Message-
From: Boysenberry Payne [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 4 October 2005 7:31 pm
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Apache running with PID of 0

What happens when you do an apachectl restart or stop?

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Oct 4, 2005, at 1:15 PM, Duncan Drury wrote:


I am having some trouble with my installation of Apache and

PHP, which

had previously been running fine on FreeBSD.

I think there may be an error with my installation of PHP, but I am
still trying to track that down.  However, one of the symptoms is
Apache ends up running with a PID of 0 (or shows up as

doing so when I

ps -aux | grep httpd)  I don't know how to shut down this

process with

a PID of 0, so I am having to reboot the server every time this
happens.  Tried googling the problem, but not found

anything useful so

far.

I wonder if anyone else on the list has experienced problems like
this, and knows a quick way to kill Apache when it is

running as pid

0.

Cheers,

Duncan




-

The official User-To-User support forum of the Apache HTTP Server
Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP
Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache running with PID of 0

2005-10-04 Thread Boysenberry Payne

What happens when you do an apachectl restart or stop?

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Oct 4, 2005, at 1:15 PM, Duncan Drury wrote:

I am having some trouble with my installation of Apache and PHP, which 
had previously been running fine on FreeBSD.


I think there may be an error with my installation of PHP, but I am 
still trying to track that down.  However, one of the symptoms is 
Apache ends up running with a PID of 0 (or shows up as doing so when I 
ps -aux | grep httpd)  I don't know how to shut down this process with 
a PID of 0, so I am having to reboot the server every time this 
happens.  Tried googling the problem, but not found anything useful so 
far.


I wonder if anyone else on the list has experienced problems like 
this, and knows a quick way to kill Apache when it is running as pid 
0.


Cheers,

Duncan


-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Looking for a good Apache2 book

2005-10-02 Thread Boysenberry Payne
Anyone know of a good book written for Apache2 similar to the
O'Reilly Writing Apache Modules with Perl and C?

I'm looking for something I can use for when I'm not online...

But would love any suggestions for good online references too, other than
the obvious Apache 2 docs...

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com


Re: [EMAIL PROTECTED] Is using vairables in apache config file possible?

2005-09-22 Thread Boysenberry Payne

What about mod_perl, mod_ruby, or mod_phython?
I know at least mod_perl can be used in the configuration
directives.


Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Sep 22, 2005, at 5:42 AM, Krist van Besien wrote:


On 9/22/05, Davide Bianchi <[EMAIL PROTECTED]> wrote:

Krist van Besien wrote:

Is this actually possible?


No and yes.

While apache's configuration file doesn't handle variables,
nothing stops you to have the 'variables' defined in there
and then use a simple C preprocessor (for example) or a simple
search-and-replace command (like sed) to parse the file
before calling apache itself to read it.


Replacing tags with values with a script is how I do it right now. And
it is this is what I want to get rid of...

It is a pity variable substitution is not possible...


Krist
--
[EMAIL PROTECTED]
Solothurn, Switzerland

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Getting Alert on apachectl start preventing Apache2 from starting

2005-09-21 Thread Boysenberry Payne

I'm getting the following error when I try to start up my apache server:


[Wed Sep 21 15:19:41 2005] [alert] (EAI 7)No address associated with 
nodename: mod_unique_id: unable to find IPv4 address of "pod.local"

Configuration Failed

How can I correct it, or troubleshoot why it's happening even.

I'm using Apache2 on OS X 10.3.9 with perl 5.8.7 / MP2

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Blocking harrassment

2005-09-19 Thread Boysenberry Payne
What about making a rewrite rule in httpd.conf or a .htaccess file  
something

that redirects them to yahoo.com or something similar?


Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Sep 19, 2005, at 6:46 PM, Jean-Christophe Montigny wrote:


Hello,

Joshua Slive wrote:

I think you are going about this the wrong way entirely.  Your problem
is garbage in your log (and, by the way, that is the whole goal of
these requests -- put garbage in your log so that the referer will
show up).  Solve it by fixing your log analysis.  For example, just
use grep -v to remove the relevant lines before analyzing the log.


Yeah i'm using webalizer for my own logs. There is stuff in it to  
ignore requests and ips. However, the thing is, i'm also using a third  
party log analyser (in my website, there's a call to another website  
that takes care of analysis) and that's a problem. Since i cannot  
firewall that ip, or so it seems, i wondered if apache could refuse  
serving files to an ip...


In fact, i believe it's more something about firewalling it. That  
thing bypasses the firewall and the rules i wrote in it... That's  
quite of strange.
--  
Jean-Christophe Montigny

Responsable Commission Web, Association Planètes
Responsable serveurs assoces.com, Association Planètes
Etudiant de deuxième année à Grenoble Ecole de Management
Majeure Conseil en Organisation des Systèmes d'Information
-- 
---
The official User-To-User support forum of the Apache HTTP Server  
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Having error on Apachectl start

2005-09-14 Thread Boysenberry Payne
Hello,

When I try to start Apache I get the following errors:

dyld: /usr/local/httpd/bin/httpd version mismatch for library: /usr/local/httpd/lib/libexpat.0.dylib (compatibility version of user: 6.0.0 greater than library's version: 2.0.0)
/usr/local/httpd/bin/apachectl: line 100:   Trace/BPT trap  $HTTPD $ARGV

I installed Apache2 from source using:
./configure --prefix=/usr/local/httpd --with-perl=/usr/bin/perl --with-mpm=prefork --enable-mods-shared=all
I also have mod_perl2 installed as a shared mod.
The error only came up after I tried to install APR::Request
It gave an error stating I needed expat so I installed expat-1.95.8.
It allowed me to install APR::Request, but then Apache wouldn't start.
I even tried reinstalling Apache to no avail.
I'm running this on OS X 10.3.9

Any idea how to fix this?  Would this be a darwin list issue?

Any help is appreciated.

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com