hi
i've got problems getting php4 scripts which use curl to work on RHEL4
(Nahant Update 4) and CentOS 4.4. when the script is accessed the
browser "hangs", after a couple of minutes i'm prompted to save the
php-file, obviously nothing is executed.
what i've checked:
..) curl in php works with a selfcompiled php5 binary executed via cgi on
the same server
..) curl script (actually the example from
http://www.php.net/manual/de/ref.curl.php) works on other servers (not
rhel/centos)
..) selinux is disabled
..) disabling iptables rules makes no difference
..) apache errorlog doesn't give any hint, regardless of apache and php
log levels
..) php rpms are up2date
..) php core config see below
thanks for help
matthias
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time _pass_reference Off Off
allow_url_fopen On On
always_populate _raw_post_data Off Off
arg_separator.i nput & &
arg_separator.o utput & &
asp_tags Off Off
auto_append_fil e no value no value
auto_prepend_fi le no value no value
browscap no value no value
default_charset no value no value
default_mimetyp e text/html text/html
define_syslog_v ariables Off Off
disable_classes no value no value
disable_functio ns no value no value
display_errors Off Off
display_startup _errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_st ring no value no value
error_log no value no value
error_prepend_s tring no value no value
error_reporting 2039 2039
expose_php On On
extension_dir /usr/lib/php4 /usr/lib/php4
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comme nt #FF8000 #FF8000
highlight.defau lt #0000BB #0000BB
highlight.html #000000 #000000
highlight.keywo rd #007700 #007700
highlight.strin g #DD0000 #DD0000
html_errors On On
ignore_repeated _errors Off Off
ignore_repeated _source Off Off
ignore_user_abo rt Off Off
implicit_flush Off Off
include_path .:/usr/share/pear .:/usr/share/pear
log_errors On On
log_errors_max_ len 1024 1024
magic_quotes_gp c Off Off
magic_quotes_ru ntime Off Off
magic_quotes_sy base Off Off
max_execution_t ime 30 30
max_input_time 60 60
memory_limit 30M 30M
open_basedir
/home/ldapcustomers/24102-24102/www/htdocs:/usr/local/lib/php:/tmp no value
output_bufferin g no value no value
output_handler no value no value
post_max_size 8M 8M
precision 14 14
register_argc_a rgv On On
register_global s On On
report_memleaks On On
safe_mode Off Off
safe_mode_exec_ dir no value no value
safe_mode_gid Off Off
safe_mode_inclu de_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i -f xxx@xxx /usr/sbin/sendmail -t
-i -f xxx@xxx
serialize_preci sion 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_cal lback_func no value no value
upload_max_file size 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_nu mber 0 0
xmlrpc_errors Off Off
y2k_compliance On On
i've got problems getting php4 scripts which use curl to work on RHEL4
(Nahant Update 4) and CentOS 4.4. when the script is accessed the
browser "hangs", after a couple of minutes i'm prompted to save the
php-file, obviously nothing is executed.
what i've checked:
..) curl in php works with a selfcompiled php5 binary executed via cgi on
the same server
..) curl script (actually the example from
http://www.php.net/manual/de/ref.curl.php) works on other servers (not
rhel/centos)
..) selinux is disabled
..) disabling iptables rules makes no difference
..) apache errorlog doesn't give any hint, regardless of apache and php
log levels
..) php rpms are up2date
..) php core config see below
thanks for help
matthias
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time _pass_reference Off Off
allow_url_fopen On On
always_populate _raw_post_data Off Off
arg_separator.i nput & &
arg_separator.o utput & &
asp_tags Off Off
auto_append_fil e no value no value
auto_prepend_fi le no value no value
browscap no value no value
default_charset no value no value
default_mimetyp e text/html text/html
define_syslog_v ariables Off Off
disable_classes no value no value
disable_functio ns no value no value
display_errors Off Off
display_startup _errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_st ring no value no value
error_log no value no value
error_prepend_s tring no value no value
error_reporting 2039 2039
expose_php On On
extension_dir /usr/lib/php4 /usr/lib/php4
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comme nt #FF8000 #FF8000
highlight.defau lt #0000BB #0000BB
highlight.html #000000 #000000
highlight.keywo rd #007700 #007700
highlight.strin g #DD0000 #DD0000
html_errors On On
ignore_repeated _errors Off Off
ignore_repeated _source Off Off
ignore_user_abo rt Off Off
implicit_flush Off Off
include_path .:/usr/share/pear .:/usr/share/pear
log_errors On On
log_errors_max_ len 1024 1024
magic_quotes_gp c Off Off
magic_quotes_ru ntime Off Off
magic_quotes_sy base Off Off
max_execution_t ime 30 30
max_input_time 60 60
memory_limit 30M 30M
open_basedir
/home/ldapcustomers/24102-24102/www/htdocs:/usr/local/lib/php:/tmp no value
output_bufferin g no value no value
output_handler no value no value
post_max_size 8M 8M
precision 14 14
register_argc_a rgv On On
register_global s On On
report_memleaks On On
safe_mode Off Off
safe_mode_exec_ dir no value no value
safe_mode_gid Off Off
safe_mode_inclu de_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i -f xxx@xxx /usr/sbin/sendmail -t
-i -f xxx@xxx
serialize_preci sion 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_cal lback_func no value no value
upload_max_file size 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_nu mber 0 0
xmlrpc_errors Off Off
y2k_compliance On On
Comment