Page 1 of 1
suPHP - Upload problem
Posted: 2006-11-09 19:23
by a-n
Hallo,
ich habe das Problem das sobald größere Datei per php upgeloadet werden die Fehlermeldung (siehe unten) erscheint.
Code: Select all
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Error.log
Code: Select all
[Thu Nov 09 18:47:41 2006] [error] [client 213.xxx.xxx.xxx] Premature end of script headers: upload.php,
Wenn ich suPHP ausschalte, gibt es keine Probleme.
Jemand einen Tipp für mich?
Danke!
Re: suPHP - Upload problem
Posted: 2006-11-09 19:35
by Roger Wilco
Schau in dein suphp.log.
Re: suPHP - Upload problem
Posted: 2006-11-09 19:45
by a-n
Wenn da was stehen würde, hätte ich es gepastet.
Leider kann ich nur in error.log vom apache2 eine Meldung herauslesen.
Habe version 0.6.1
Re: suPHP - Upload problem
Posted: 2006-11-09 20:20
by Roger Wilco
Sicher, dass du nicht in deinem suexec.log nachgesehen hast?
Tu dir doch den Gefallen und poste hier die Konfiguration des VirtualHosts, die suphp.conf und die letzten Zeilen aus dem suphp.log.
Re: suPHP - Upload problem
Posted: 2006-11-09 20:37
by a-n
Code: Select all
################### CONFIXX APACHE VHOSTS FILE ##########################
# created at Tue Nov 7 20:56:46 2006
#
# !!! Do not make any changes in this file !!!
#
# 1. We cannot guarantee that the software will work properly, if
# the contents of this file are modified.
# 2. This file would be rewritten each time the Confixx software requires
# to update Apache configuration to bring user/domain settings in effect.
#
# If you need to have some custom content in this file, you can use
# "httpd special" function in the Confixx Control Panel or create
# an empty webX.lock file and edit webX.conf by the way you want in this
# case Confixx will not touch the configuration file.
#
##########################################################################
<Directory "/var/www/web9/html">
Options -FollowSymLinks -SymLinksIfOwnerMatch
<IfModule mod_access.c>
Allow from all
</IfModule>
suPHP_engine on
# RemoveHandler .php
# php_admin_flag engine on
</Directory>
<VirtualHost xx.xxxx.xx.xx:443>
ServerName meine-url.de
DocumentRoot /var/www/web9/html
SuexecUserGroup web9 web9
ScriptAlias /cgi-bin/ /var/www/web9/html/cgi-bin/
suPHP_ConfigPath /etc/apache2/confixx_phpini/web9/1
<IfDefine SSL>
SSLEngine on
SSLCertificateKeyFile /etc/apache2/ssl.key/mein-cert.key
SSLCertificateFile /etc/apache2/ssl.crt/mein-cert.crt
SetEnvIf User-Agent ".*MSIE.*"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
<Files ~ ".(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/web9/html/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
</IfDefine>
</VirtualHost>
<VirtualHost xx.xxx.xxx.xx:80>
ServerName www.meineurl.de
ServerAlias www.meineurl.de
DocumentRoot /var/www/web9/html
SuexecUserGroup web9 web9
ScriptAlias /cgi-bin/ /var/www/web9/html/cgi-bin/
suPHP_ConfigPath /etc/apache2/confixx_phpini/web9/2
</VirtualHost>
Code: Select all
[global]
;Path to logfile
logfile=/var/log/suphp/suphp.log
;Loglevel
loglevel=error
;User Apache is running as
webserver_user=www-data
;Path all scripts have to be in
docroot=/var/www
; Security options
allow_file_group_writeable=true
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false
;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true
;Send minor error messages to browser
errors_to_browser=false
;PATH environment variable
env_path=/bin:/usr/bin
;Umask to set, specify in octal notation
umask=0022
; Minimum UID
min_uid=100
; Minimum GID
min_gid=100
[handlers]
;Handler for php-scripts
x-httpd-php=php:/usr/bin/php-cgi
;Handler for CGI-scripts
x-suphp-cgi=execute:!self
Code: Select all
# cat /var/log/suphp/suphp.log | grep web9
[Thu Nov 09 19:56:22 2006] [info] Executing "/var/www/web9/html/groups.php" as UID 660, GID 660
[Thu Nov 09 19:59:27 2006] [info] Executing "/var/www/web9/html/upload.php" as UID 660, GID 660
[Thu Nov 09 20:00:15 2006] [info] Executing "/var/www/web9/html/upload.php" as UID 660, GID 660
[Thu Nov 09 20:00:23 2006] [info] Executing "/var/www/web9/html/upload.php" as UID 660, GID 660
Re: suPHP - Upload problem
Posted: 2006-11-11 21:57
by majortermi
Bedeutet "suPHP ausschalten", dass du mod_php oder PHP als CGI verwendest.
Wenn du mod_php verwendest, kann es sein, dass andere Limits gelten (ggf. Ausgabe von phpinfo() vergleichen).
Ansonsten kann ich noch empfehlen, die aktuelle Version von suPHP aus dem SVN-Repository (
https://ssl.marsching.biz/subversion/suphp/trunk) zu verwenden, da in dieser Version einige Bugs behoben sind, die im letzten Release noch existieren.
Pfade?
Posted: 2006-11-20 23:08
by hippisoul
Hi,
wie siehts denn aus mit dem Schreiben ins upload_tmp_dir??? Kann es sein, dass der user, unter dem suphp läuft, das nicht darf?
Re: suPHP - Upload problem
Posted: 2006-11-21 01:18
by metrax
Ist evt. garnicht suphp sondern suexec schuld?
Das Problem hatte ich heufiger, schau mal in dein suexec log ;)