Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with

2004-08-05 Thread ADFH
> Why would Apache log an error on a db dump?  Or are you talking about 
> the execution of the scripts after you import the data?  If the latter 

Execution of scripts, post import.

> For .htaccess :
> php_value error_reporting "E_ALL"

Tried it.. no difference.

Not sure whether or not this affects things, but it appears to be a
cPanelX controlled copy of Apache and php..

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



Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with

2004-08-01 Thread Jason Wong
On Sunday 01 August 2004 23:38, ADFH wrote:

> Even if it isn't, how could this stop Apache from logging even an error?

If you're positive that none of the Apache logs shows anything (but that seems 
*very* unlikely) then I suggest you taking this up with phpBB support. 
Another thing you could do is check the MySQL logs.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Beware of self-styled experts: an ex is a has-been, and a spurt is a
drip under pressure.
*/

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



Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with

2004-08-01 Thread John Nichel
ADFH wrote:
Can you verify that the data is actually in the db?

I'll attempt to reverify by dumping data back out again and comparing
size. I suspect it is, however.
Ie. The login succeeds because a cookie is set, and I can go to some
scripts, but not others.
Even if it isn't, how could this stop Apache from logging even an error?
Why would Apache log an error on a db dump?  Or are you talking about 
the execution of the scripts after you import the data?  If the latter 
try setting your php error reporting to E_ALL in a .htaccess file (or in 
the php.ini if you have access to that).

For .htaccess :
php_value error_reporting "E_ALL"
If you set it in the php.ini, make sure to restart your web server.
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies

2004-08-01 Thread ADFH
> > Can you verify that the data is actually in the db?
> I'll attempt to reverify by dumping data back out again and comparing
> size. I suspect it is, however.

21M Jul 29 23:19 20040509-clean.sql <-- Before
21M Aug  1 12:03 redump.sql <-- After

Yeah.. all the data's in the DB.

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



Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with

2004-08-01 Thread ADFH
> Can you verify that the data is actually in the db?

I'll attempt to reverify by dumping data back out again and comparing
size. I suspect it is, however.

Ie. The login succeeds because a cookie is set, and I can go to some
scripts, but not others.

Even if it isn't, how could this stop Apache from logging even an error?

> Also, you may want to try importing the dump and not relying on your 
> MySQL configuration file
> 
> mysql --user= -p dbname < dumpname.sql

Have done this too in initial tests, I just got sick of typing password
all the time :)

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



Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with

2004-08-01 Thread John Nichel
ADFH wrote:
How are you trying to import it?  Command line MySQL? PHPMyAdmin? 
Something else?
command line (have SSH/SCP/SFTP access)
mysql dbname < dumpname.sql
(u/p in ~/.my.cnf, 0600)
How big is the dump file?  Greater than two megs?
11M Jul 28 12:57 200405009-025130.sql
21M Jul 29 23:19 20040509-clean.sql
30K Jul 29 12:10 freshdb.sql
11MB for the initial dump
21MB for non-optimised dump from same DB tested as working, redumped
 from other system
Ie. I imported it into another system, fixed a few things like missing
themes, and re-dumped it.
Well, that eliminates the first thought I had.  Things like phpMyAdmin 
have problems with dump files greater than 2mb's (sometimes even if you 
set the file upload size and timeout higher on PHP).

Can you verify that the data is actually in the db?
Also, you may want to try importing the dump and not relying on your 
MySQL configuration file

mysql --user= -p dbname < dumpname.sql
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with

2004-07-31 Thread ADFH
> How was the dump made, mysqldump? PHPMyAdmin? Something else?

-- MySQL dump 9.10 - first dump
-- MySQL dump 9.11 - second dump (see below)

> How are you trying to import it?  Command line MySQL? PHPMyAdmin? 
> Something else?

command line (have SSH/SCP/SFTP access)

mysql dbname < dumpname.sql
(u/p in ~/.my.cnf, 0600)

> How big is the dump file?  Greater than two megs?

11M Jul 28 12:57 200405009-025130.sql
21M Jul 29 23:19 20040509-clean.sql
30K Jul 29 12:10 freshdb.sql

11MB for the initial dump
21MB for non-optimised dump from same DB tested as working, redumped
 from other system

Ie. I imported it into another system, fixed a few things like missing
themes, and re-dumped it.

First DB is 2.0.8 DB
Second DB is updated to 2.0.10 DB
update tool finds no errors in DB

Also corrected things in phpbb_config that changed between hosts and
when I was testing etc.

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



Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with no hits/errors logged by apache

2004-07-31 Thread John Nichel
ADFH wrote:
My IHP, Netset, currently went into what I think is Chapter 7.
I was stuck without a host for my messageboard..
Someone steps in and offers me a host.. cool.. I have a SQL dump..
I install phpBB, I import the data, I go to log in...
I get a zero sized response from apache!
Check the error logs.. nothing..
Check the hit logs.. nothing..

How was the dump made, mysqldump? PHPMyAdmin? Something else?
How are you trying to import it?  Command line MySQL? PHPMyAdmin? 
Something else?

How big is the dump file?  Greater than two megs?
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with no hits/errors logged by apache

2004-07-31 Thread ADFH
> Be sure to check common error logs, ie: apache/error_log,
> /var/log/messages ..

I'll forward this onto the person who admin's the server - I don't have
root access, so don't have rights to the log files in question.

Other than usual boot messages, dmesg says:

sending pkt_too_big (len[1500] pmtu[1460]) to self
...
sending pkt_too_big (len[1500] pmtu[1460]) to self
hda: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hda: drive_cmd: error=0x04 { DriveStatusError }
sending pkt_too_big (len[1492] pmtu[1460]) to self
...
sending pkt_too_big (len[1500] pmtu[1492]) to self

System is a RH9 (Shrike) box, apache appears custom compiled, as does php.
I get access to my VWS config through cPanel X.

> The most common issue with this is the differences between php.ini
> settings.  Do a comparison on the ini files that work vs. the one
> that doesnt.  Be sure also that there aren't any special apache
> directives that override php.ini, like php_admin_flag 
> off

Taking the two php.ini files, stripping the white space, stripping all
comments and sorting them alphabetically (destroys sections but shows
differences in directives), I get the following... any suggestions?:
( < In working only
  > In non-working only )


< allow_url_fopen = On

< [com]
< [Crack]
< [dbx]
< dbx.colnames_case = "unchanged"

> [Debugger]
> debugger.enabled = False
> debugger.host = localhost
> debugger.port = 7869

< default_socket_timeout = 60

< disable_classes =

> error_log = error_log
> error_log = error_log

< [exif]

< extension=mysql.so

> extension_dir = ./

< [FrontBase]

> highlight.bg = #FF
> highlight.comment = #FF8000
> highlight.default = #BB
> highlight.html = #00
> highlight.keyword = #007700
> highlight.string = #DD

< ignore_repeated_errors = Off
< ignore_repeated_source = Off

> include_path = ".:/usr/lib/php:/usr/local/lib/php"

< log_errors_max_len = 1024
< log_errors = Off

> log_errors = On
> [Logging]

< max_input_time = 60
< [mbstring]

< mssql.secure_connection = Off

< mysql.connect_timeout = 60

< mysql.trace_mode = Off

< odbc.allow_persistent = On
< odbc.check_persistent = On
< odbc.defaultbinmode = 1 
< odbc.defaultlrl = 4096 
< odbc.max_links = -1 
< odbc.max_persistent = -1

< pfpro.defaulthost = "test-payflow.verisign.com"

> pfpro.defaulthost = "test.signio.com"

< pgsql.auto_reset_persistent = Off 
< pgsql.ignore_notice = 0
< pgsql.log_notice = 0

< post_max_size = 8M
< precision = 12
< [Printer]

> post_max_size = 55M
> precision = 14

< register_globals = Off
< report_memleaks = On

> register_globals = On

< safe_mode_gid = Off
< safe_mode_include_dir = 

< serialize_precision = 100

> sendmail_path = /usr/sbin/sendmail -t -i

< session.bug_compat_42 = 1
< session.bug_compat_warn = 1

< session.gc_divisor = 100

< session.save_path = /var/lib/php4

> session.save_path = /tmp

< session.use_trans_sid = 0

> session.use_trans_sid = 1

< SMTP = localhost
< smtp_port = 25
< [Sockets]
< sockets.use_system_read = On

< unserialize_callback_func=

> uodbc.allow_persistent = On
> uodbc.check_persistent = On
> uodbc.defaultbinmode = 1
> uodbc.defaultlrl = 4096
> uodbc.max_links = -1
> uodbc.max_persistent = -1

< url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

< y2k_compliance = On
< zlib.output_compression = Off

> warn_plus_overloading = Off
> y2k_compliance = Off
> [Zend]
> zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.5.0
> zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.0
> zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
> zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
> zend_optimizer.optimization_level=15

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



Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with no hits/errors logged by apache

2004-07-31 Thread Curt Zirzow
* Thus wrote ADFH:
> > So everything else works fine except phpBB?
> 
> Would seem so - but even if it is phpBB, it shouldn't be able to cause a
> fault that would cause apache to completely ignore the hit, no?

Be sure to check common error logs, ie: apache/error_log,
/var/log/messages ..

> 
> Ie. some barf report should be generated somewhere..
> 
> ... I'm trying to figure out:
> 
> A. Why the same data with same php code works fine on one system
>... and doesn't on another.
> 
> B. Where I'd find out what exactly is barfing.

The most common issue with this is the differences between php.ini
settings.  Do a comparison on the ini files that work vs. the one
that doesnt.  Be sure also that there aren't any special apache
directives that override php.ini, like php_admin_flag 
off



Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

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



Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with no hits/errors logged by apache

2004-07-31 Thread ADFH
> So everything else works fine except phpBB?

Would seem so - but even if it is phpBB, it shouldn't be able to cause a
fault that would cause apache to completely ignore the hit, no?

Ie. some barf report should be generated somewhere..

... I'm trying to figure out:

A. Why the same data with same php code works fine on one system
   ... and doesn't on another.

B. Where I'd find out what exactly is barfing.

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



Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with no hits/errors logged by apache

2004-07-31 Thread Jason Wong
On Saturday 31 July 2004 17:41, ADFH wrote:
> My IHP, Netset, currently went into what I think is Chapter 7.
> I was stuck without a host for my messageboard..
> Someone steps in and offers me a host.. cool.. I have a SQL dump..
>
> I install phpBB, I import the data, I go to log in...
> I get a zero sized response from apache!
> Check the error logs.. nothing..
> Check the hit logs.. nothing..

So everything else works fine except phpBB?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
"I'd love to go out with you, but the man on television told me to say tuned."
*/

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



[PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with no hits/errors logged by apache

2004-07-31 Thread ADFH
My IHP, Netset, currently went into what I think is Chapter 7.
I was stuck without a host for my messageboard..
Someone steps in and offers me a host.. cool.. I have a SQL dump..

I install phpBB, I import the data, I go to log in...
I get a zero sized response from apache!
Check the error logs.. nothing..
Check the hit logs.. nothing..

Now the person who runs this host tells me that he runs several other
sites with phpBB and has no problems, which would make me think it's the
data in my SQL dump. The problem with this idea is I can run the same
dump on local test systems and it works just fine.

Regardless, if there were some error, then I assume PHP/Apache should
log something in the standard error log, and the hit should still
register in access logs..

Would seem to me, if hit is not being logged, that apache php module is
crashing?

Does this sound familiar to anyone?
Is it a known bug?
Do I need to get host to update some stuff?

httpd -V output:

Server version: Apache/1.3.31 (Unix)
Server built:   Jul  8 2004 11:56:38
Server's Module Magic Number: 19990320:16
Server compiled with
 -D EAPI
 -D HAVE_MMAP
 -D HAVE_SHMGET
 -D USE_SHMGET_SCOREBOARD
 -D USE_MMAP_FILES
 -D HAVE_FCNTL_SERIALIZED_ACCEPT
 -D HAVE_SYSVSEM_SERIALIZED_ACCEPT
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D DYNAMIC_MODULE_LIMIT=64
 -D HARD_SERVER_LIMIT=2048
 -D HTTPD_ROOT="/usr/local/apache"
 -D SUEXEC_BIN="/usr/local/apache/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/httpd.scoreboard"
 -D DEFAULT_LOCKFILE="logs/httpd.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
 -D ACCESS_CONFIG_FILE="conf/access.conf"
 -D RESOURCE_CONFIG_FILE="conf/srm.conf"

phpInfo() output (less a few identifying items):

PHP Version 4.3.7
Configure Command'./configure' '--with-apxs=/usr/local/apache/bin/apxs' 
'--with-xml' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--with-gd' 
'--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' 
'--enable-magic-quotes' '--with-mysql=/usr' '--enable-discard-path' '--with-pear' 
'--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib'
Server API  Apache
Virtual Directory Support   disabled
Configuration File (php.ini) Path   /usr/local/Zend/etc/php.ini
PHP API 20020918
PHP Extension   20020429
Zend Extension  20021010
Debug Build no
Thread Safety   disabled
Registered PHP Streams  php, http, ftp, compress.zlib
Directive   Local Value Master Value
allow_call_time_pass_reference  On  On
allow_url_fopen On  On
always_populate_raw_post_data   Off Off
arg_separator.input &   &
arg_separator.output&   &
asp_tagsOff Off
auto_append_fileno valueno value
auto_prepend_file   no valueno value
browscapno valueno value
default_charset no valueno value
default_mimetypetext/html   text/html
define_syslog_variables Off Off
disable_classes no valueno value
disable_functions   no valueno value
display_errors  On  On
display_startup_errors  Off Off
doc_rootno valueno value
docref_ext  no valueno value
docref_root no valueno value
enable_dl   On  On
error_append_string no valueno value
error_log   error_log   error_log
error_prepend_stringno valueno value
error_reporting 20392039
expose_php  On  On
extension_dir   ./  ./
file_uploadsOn  On
gpc_order   GPC GPC
highlight.bg#FF #FF
highlight.comment   #FF8000 #FF8000
highlight.default   #BB #BB
highlight.html  #00 #00
highlight.keyword   #007700 #007700
highlight.string#DD #DD
html_errors On  On
ignore_repeated_errors  Off Off
ignore_repeated_source  Off Off
ignore_user_abort   Off Off
implicit_flush  Off Off
include_path.:/usr/lib/php:/usr/local/lib/php   
.:/usr/lib/php:/usr/local/lib/php
log_errors  On  On
log_errors_max_len  10241024
magic_quotes_gpcOn  On
magic_quotes_runtimeOff Off
magic_quotes_sybase Off Off
max_execution_time  30  30
max_input_time  -1  -1
open_basedirno valueno value
output_bufferingno valueno value
output_handler  no valueno value
post_max_size   55M 55M
precision   14  14
register_argc_argv  On  On
register_globalsOn  On
report_memleaks On  On
safe_mode   Off Off
safe_mode_exec_dir  no valueno value
safe_mode_gid   Off Off
safe_mode_include_dir   no valueno value
sendmail_from   no valueno value
sendmail_path   /usr/sbin/sendmail -t -i/usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag  On  On
SMTPlocalhost   localhost
smtp