nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

mod php innerhalb von VirtualHost mit FCGI?

Von: Kay-Michael Voit (usenet3@voits.net) [Profil]
Datum: 27.06.2008 01:06
Message-ID: <486420ef$0$27444$9b4e6d93@newsspool4.arcor-online.net>
Followup-to: de.comp.lang.php.installation
Newsgroup: de.comp.lang.php.installation de.comm.software.webserver
Hallo,
ich möchte als Unterverzsichnisalias eines Hosts mit PHP als FCGI PhpMyAdmin
laufen lassen. Leider kriege das so nciht hin. Wie muss ich das konfigurieren? Unten mal
der Weg, den ich erwartet hätte. Der klappt aber nicht, damit kriege ich
das PHP-File zum Download:

<VirtualHost *:80>
ServerAlias example.org

Include /etc/phpmyadmin/apache.conf   <---- s. unten.

SuexecUserGroup user10286 user10286
AddHandler fcgid-script .php

DocumentRoot "/var/www/example.org/web"
<Directory "/var/www/example.org">
FCGIWrapper /var/www/example.org/.config/php5-fcgi .php
Options -Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride AuthConfig Limit Indexes FileInfo Options

php_admin_value engine off
</Directory>

<Directory "/usr/share/phpmyadmin">
AddHandler application/x-httpd-php .php
Options -Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride AuthConfig Limit Indexes FileInfo Options

php_admin_value engine on
</Directory>
</VirtualHost>


Include:
Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin>
Options Indexes FollowSymLinks
DirectoryIndex index.php

# Authorize for setup
<Files setup.php>
# For Apache 1.3 and 2.0
<IfModule mod_auth.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
# For Apache 2.2
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Files>
<IfModule mod_php4.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
<IfModule mod_php5.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
</Directory>


[ Auf dieses Posting antworten ]