Bonjour,
Je cherche une solution pour que mes scripts PHP soient lancés sous l’utilisateur propriétaire du script et non pas www-data.
Après pas mal d’essais, je suis arrivé à suphp qui devrait fonctionner avec lighttpd : markgrenham.com/articles/how … _and_suphp
Malheureusement j’obtiens un fichier vide que mon navigateur me propose te télécharger.
Voici le fichier de configuration de suphp :
[code][global]
;Path to logfile
logfile=/var/log/suphp/suphp.log
;Loglevel
loglevel=info
;User Apache is running as
webserver_user=www-data
;Path all scripts have to be in
docroot=/var/www:${HOME}/public_html
;Path to chroot() to before executing script
;chroot=/mychroot
; Security options
allow_file_group_writeable=false
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=false
;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=0077
; 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]
Sinon il semblerai que php-fpm, inclue dans PHP > 5.3.3, propose cette fonctionnalité. Est ce que j’ai bien lu ?