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



[PHP] Re: SPAMCEASE ???

2004-08-01 Thread ADFH
 I got the following e-mail from this list. Is this legit? I'm skeptical
 because the URL it tells me to click on leads to what looks like a SPAM site
 to me. Here's the full e-mail I received with headers:
...
 Received: from tgpnexus.com ([66.17.150.83]) by mc3-f36.hotmail.com with
 Microsoft SMTPSVC(5.0.2195.6824); Thu, 22 Jul 2004 04:21:34 -0700
 Received: (from [EMAIL PROTECTED])by tgpnexus.com (8.11.6/8.11.6) id
 i6MB4jg26425; Thu, 22 Jul 2004 07:04:45 -0400

Looks like a spam to me!

-- 
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=username -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

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



[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_port   25  25

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

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] Apache + PHP - when using as module, can one have PHPsrun as

2003-03-21 Thread ADFH
 I suggest if a file then put it outside Apache's document root or use an 
 environment variable.

I'm working in a VWS environment - whilst I am in contact with the
system administrator, I don't have access to any config outside of my
own account.

 My older version of php is quite happy with 700 permissions, unless I've 
 got this wrong.  The owner is the Apache user.

Hrmm.. So if I got the ISP to chown the file me.webserver and then set
chmod 640, making sure that every user's PHP settings meant they
couldn't work with/read files outside their home directories, and all
other scripting systems were equally configured, or set to run SUID user
(Ie. Perl), this should render the file in question inaccessible to
other users excl. the webserver group and root?

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



[PHP] Apache + PHP - when using as module, can one have PHPs run as

2003-03-19 Thread ADFH
 specific user?
Message-Id: [EMAIL PROTECTED]
X-Newsreader: Sylpheed version 0.8.9 (GTK+ 1.2.10; i386-debian-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Tried posting this earlier - it wouldn't take..
Unmunged my email address hoping this might work..

--

Would it be true to say that the current Apache PHP module doesn't
support running PHP scripts as their owners, and that one has to use PHP
in CGI mode for this?

I use a well known PHP based messageboard on a website I run, and I want
to prevent non-root, non-me access to the file containing my database
password.

For a perl script, I'd just chmod it 700 with directory given perms 711
- but in PHP 4.3.2rc1, it seems that to reference a file by way of a
relative path, the script must be at least 644 and the directory it's in
755.

Any suggestions? Good references? Changes since
http://www.php.net/manual/en/security.apache.php ?

ADFH

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