Home Hosters Blog suphp 0.6.2 with Apache2 in DSO mode (apxs) on Fedora

suphp 0.6.2 with Apache2 in DSO mode (apxs) on Fedora Drucken

Ab Fedora 6 gibt es ein stabiles rpm Paket, welches via yum installiert werden kann. Wer aber die neueste Version 0.6.2, oder auf einem Fedora Rechner welcher niedriger ist als Version 6, arbeitet, muss selber kompilieren. Zwar gib es Pakete in diversen Repository's jedoch sind diese alle samt instabil. Es gibt bei vielen Versionen ein Compiler Problem (free), selbst beim legendären DAG Repository. Da bei nahezu allen Fedora RPM Installation das Programm unter /usr/bin/ liegt, sollten wir auch mit diesem Directory arbeiten.

Requirements =====================================================

compat-libstdc++
compat-libstdc++-devel
gcc
make
gcc-c++
libstdc++-devel
libstdc++

Das Build Vorbereiten ===============================================

Zum Beheben des Core-Bug in src/apache2/mod_suphp.c im suPHP-Source die Zeile

Code:
AP_INIT_ITERATE("suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, ACCESS_CONF, "Tells mod_suphp to handle these MIME-types"),

in
Code:
AP_INIT_ITERATE("suPHP_AddHandler", suphp_handle_cmd_add_handler, NULL, RSRC_CONF | ACCESS_CONF, "Tells mod_suphp to handle these MIME-types"),

ändern.


Das Build ==========================================================

./configure --with-apache-user=apache --prefix=/usr --sysconfdir=/etc
make clean
make
make check
make install


=== Apache Config for a virtual host =======================================

Place this in your <Virtual Host> Section

suPHP_Engine on
AddHandler x-httpd-php .php
suPHP_AddHandler x-httpd-php
suPHP_UserGroup unix-user unix-group (Change unix-user and unix-group to your needs)





== suphp.conf example ================================================

[global]
;Path to logfile
logfile=/var/log/suphp.log

;Loglevel
loglevel=info

;User Apache is running as
webserver_user=apache

;Path all scripts have to be in
docroot=/

;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=false

;PATH environment variable
env_path=/bin:/usr/bin

;Umask to set, specify in octal notation
umask=0077
; you may also try umask=0022

; Minimum UID
min_uid=100

; Minimum GID
min_gid=100


[handlers]
;Handler for php-scripts
x-httpd-php=php:/usr/bin/php

;Handler for CGI-scripts
x-suphp-cgi=execute:!self

================================================================

Chmod Tricks bei Problemen mit Fedora 6

chmod o+rx /usr/sbin/suphp      (Fedora 6)

chmod 4755 /usr/sbin/suphp      (Fedora 3 o.ä.)


================================================================




suPHP_AddHandler x-httpd-php





........ Weiterer Text folgt ....

 

 

Kontakt
Impressum
AGB
Datenschutz
DomainAutomat 
Joomla-Hosting24 
German-Congress-Group 
Isp4you Software 
Joomla Hosting
Typo3 Hosting
Wordpress Hosting
 © 2010 by Provider4u GmbH
Alle Preise inkl. 19% MwSt.

 

 




 
 


Joomla Best Price Hosting Joomla Webhosting Joomla Hosting Joomla Webhosting Joomla Hosting serving deutschen bundestag fairprice garantie