php-install Digest 8 Nov 2002 00:06:24 -0000 Issue 1108

Topics (messages 9058 through 9059):

Request entity too large (already seen the FAQ)
        9058 by: Brian Fahrlander

php & mod_jrun
        9059 by: Daniel Chicayban

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

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

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Here's the situation:

httpd-2.0.40-8
php-4.2.2-8.0.5

The application is SquirrelMail 1.2.8; everything else works, but it's limited to about 512Kbytes of upload. My first impulse was to investigate the FAQ on Squirrelmail.org, and it had it, but the text was kinda...spastic. Go read it and see if you agree.

http://www.squirrelmail.org/wiki/AttachmentSize

...not quite English. Yet, it's in English.


This is the only hint I'm getting from /var/log/httpd/error_log:

[Wed Nov 06 23:20:01 2002] [error] [client 63.69.210.36] Requested content-length of 4586489 is larger than the configured limit of 524288...

I've scanned php.ini for the variables suggested; they're at 700M. The variable in httpd.conf, LimitRequestBody, is set to 0 (or 700M, makes no difference).

What else can I check for? Surely this isn't some compiled-in limit; that's just not Apache or PHP's way...

This means a lot to me: first, it allows a primary client to send accounting files by mail. Soon, it'll allow a high-profile client to roll out Linux and leave Microsoft server's CDs in the pile of free AOL clients. ;>

Any thoughts? (Yes, I've restarted Apache after changes)

--- End Message ---
--- Begin Message --- Two redhat servers: A (rocknroll.chicayban.com.br) and B (crazycat.uglydog.com)

-- A runs coldfusion mx and php.
# JRun Settings
LoadModule jrun_module /var/cfmx/runtime/lib/wsconfig/1/mod_jrun.so
LoadModule php4_module libexec/libphp4.so
<IfModule mod_jrun.c>
JRunConfig Verbose false
JRunConfig Apialloc false
JRunConfig Ssl false
JRunConfig Ignoresuffixmap true
JRunConfig Serverstore /var/cfmx/runtime/lib/wsconfig/1/jrunserver.store
JRunConfig Bootstrap 127.0.0.1:51010
#JRunConfig Errorurl <optionally redirect to this URL on errors>
AddHandler jrun-handler .cfm .cfc .jsp .cfml .jws
</IfModule>

-- A has these two lines in <IfModule mod_mime.c>
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps

Everything works fine on A. Here's the modules A has

[root@rocknroll conf]# ../bin/httpd -l
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_status.c
mod_info.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_speling.c
mod_userdir.c
mod_alias.c
mod_rewrite.c
mod_access.c
mod_auth.c
mod_proxy.c
mod_usertrack.c
mod_unique_id.c
mod_so.c
mod_setenvif.c
suexec: disabled; invalid wrapper /var/apache/bin/suexec


-- B loads coldfusion mx and php.
# JRun Settings
LoadModule jrun_module /home/cf/runtime/lib/wsconfig/1/mod_jrun.so
LoadModule php4_module libexec/libphp4.so

<IfModule mod_jrun.c>
JRunConfig Verbose false
JRunConfig Apialloc false
JRunConfig Ssl false
JRunConfig Ignoresuffixmap true
JRunConfig Serverstore /home/cf/runtime/lib/wsconfig/1/jrunserver.store
JRunConfig Bootstrap 127.0.0.1:51010
#JRunConfig Errorurl <optionally redirect to this URL on errors>
AddHandler jrun-handler .cfm .cfc .jsp .cfml .jws
</IfModule>

B has these two lines in <IfModule mod_mime.c>
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps

B has these modules running:
[root@crazycat conf]# ../bin/httpd -l
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
suexec: disabled; invalid wrapper /var/apache/bin/suexec

PHP doesn't work on B.

Here's what I do to make PHP work:
-- I comment the jrun_module on B
#LoadModule jrun_module /home/cf/runtime/lib/wsconfig/1/mod_jrun.so

And I restart apache:
[root@crazycat conf]# ../bin/apachectl restart
../bin/apachectl restart: httpd restarted

And try: http://crazycat.uglydog.com/~daniel/phpinfo.php
And it works!

Of course, coldfusion doesn't work anymore. If I uncomment the jrun_module, coldfusion works fine, PHP stop to work and I notice other behaviors (see below)

With coldfusion (jrun_module) loaded...:
Try: http://crazycat.uglydog.com/~daniel/

You see the whole directory... If I unload (comment, restart) jrun_module, I get:
Forbidden: you don't have permission to access /~daniel/ on this server

Which is the should happen...

B needs coldfusion up and running all the time, so I'll leave it with the jrun_module running. The urls above, then, will show you the behavior of apache when JRUN is running...

Does anybody knows what to solve this?
Thanks. Daniel

--- End Message ---

Reply via email to