phpbar.de logo

Mailinglisten-Archive

[php] suPHP

[php] suPHP

Florian Kieling florian at familie-kieling.de
Don Sep 25 21:22:45 CEST 2008


Hallo,

>> Anbei die Infos:
>>
>> Config im Apache:
>>
>> <IfModule mod_suphp.c>
>>      suPHP_Engine on
>>
>>      AddType application/x-httpd-php .php
>>      AddType application/x-httpd-php .php3
>>      AddType application/x-httpd-php .php4
>>      AddType application/x-httpd-php .php5
>>      AddHandler application/x-httpd-php .php
>>
>>      DirectoryIndex index.php index.php3 index.php4 index.php5
>>
>>      <Location />
>>          suPHP_AddHandler application/x-httpd-php
>>      </Location>
>> </IfModule>
>>     
>
> hab ich bei mir so:
>
> <IfModule mod_suphp.c>
>         AddHandler x-httpd-php .php .php3 .php4 .php5 .phtml
>         suPHP_AddHandler x-httpd-php
>         suPHP_Engine on
> </IfModule>
>
> Deine conf unten sieht soweit aber gut aus. Geladen ist das Modul ?
>
>   
>> Im jeweiligen VHost:
>>
>> suPHP_UserGroup <user> <group>
>>
>> suphp.conf
>>
>> [global]
>> ;Path to logfile
>> logfile=/var/log/suphp.log
>>
>> ;Loglevel
>> loglevel=info
>>
>> ;User Apache is running as
>> webserver_user=wwwrun
>>
>> ;Path all scripts have to be in
>> ;docroot=/
>> docroot=/home/fakie/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=true
>>
>> ;Send minor error messages to browser
>> errors_to_browser=true
>>
>> ;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:/srv/www/cgi-bin/php5
>> x-httpd-php=php:/usr/bin/php-cgi5
>>
>> ;Handler for CGI-scripts
>> x-suphp-cgi=execute:!self
>>
>>     

Das war's es war das "application" im suPHP_AddHandler und AddHandler.
Das suPHP_AddHandler mußte allerdings im <Location> stehen bleiben. 
Jetzt läuft mein
PHP mittels suPHP.

Danke!

Florian

php::bar PHP Wiki   -   Listenarchive