.htaccess und php_admin_value
.htaccess und php_admin_value
Wie muss die die Datei .htaccess lauten,wenn ich
php_admin_value auto_prepend_file /opt/xx/xx/script.php
drinnstehen haben will?
wenns nur alleine Drinne Steht kommt ein Internal Server Error
php_admin_value auto_prepend_file /opt/xx/xx/script.php
drinnstehen haben will?
wenns nur alleine Drinne Steht kommt ein Internal Server Error
Re: .htaccess und php_admin_value
Dann ist es wahrscheinlich nicht erlaubt, php-Werte in der .htaccess zu ändern. Es muss in der httpd.conf bzw. für deinen vhost gelten
AllowOverride Options
AllowOverride Options
Re: .htaccess und php_admin_value
Habs eingetragen
#### CONFIXX APACHE VHOST FILE ####
### created Tue Mar 9 16:24:02 2004 ###
NameVirtualHost 62.146.227.18:80
php_admin_flag safe_mode On
php_admin_value safe_mode_exec_dir /opt/empty
UseCanonicalName Off
LogFormat "%V:#:%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"" confixx
LogFormat "%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"" confixx2
CustomLog |/root/confixx/pipelog.pl confixx
<Directory "/opt">
<Files ~ "^.ht">
deny from all
</Files>
AllowOverride Options
AllowOverride Indexes AuthConfig Limit FileInfo
Options None
Options -FollowSymLinks -SymLinksIfOwnerMatch +Includes
</Directory>
<Directory "/opt/web1/html">
Options +ExecCGI +Indexes
</Directory>
<VirtualHost 62.146.227.18:80>
DocumentRoot /opt//confixx/html/gesperrt
</VirtualHost>
<VirtualHost 62.146.227.18:80>
ServerName rydl.beatmaschine.de
DocumentRoot /opt/web1/html/rydl
User web1
Group ftponly
ScriptAlias /cgi-bin/ /opt/web1/html/cgi-bin/
php_admin_value open_basedir /opt/web1/
php_admin_value upload_tmp_dir /opt/web1/phptmp/
php_admin_value safe_mode off
php_admin_value auto_append_file /opt/web1/html/userincs/rydl.inc.php
#0
</VirtualHost>
<VirtualHost 62.146.227.18:80>
ServerName derheide.beatmaschine.de
DocumentRoot /opt/web1/html/derheide
User web1
Group ftponly
ScriptAlias /cgi-bin/ /opt/web1/html/cgi-bin/
php_admin_value open_basedir /opt/web1/
php_admin_value upload_tmp_dir /opt/web1/phptmp/
php_admin_value safe_mode off
php_admin_value auto_append_file /opt/web1/html/userincs/derheide.inc.php
#0
</VirtualHost>
<VirtualHost 62.146.227.18:80>
ServerName appartement.beatmaschine.de
DocumentRoot /opt/web1/html/appartement
User web1
Group ftponly
ScriptAlias /cgi-bin/ /opt/web1/html/cgi-bin/
php_admin_value open_basedir /opt/web1/
php_admin_value upload_tmp_dir /opt/web1/phptmp/
php_admin_value safe_mode off
php_admin_value auto_append_file /opt/web1/html/userincs/appartement.inc.php
#0
Aber klappt Leider nicht......wenn ichs in <Virtual Host> ........</VirtualHist>
eingebe und Apache restarte kommt ne Fehlermeldung...Not Allowed here
#### CONFIXX APACHE VHOST FILE ####
### created Tue Mar 9 16:24:02 2004 ###
NameVirtualHost 62.146.227.18:80
php_admin_flag safe_mode On
php_admin_value safe_mode_exec_dir /opt/empty
UseCanonicalName Off
LogFormat "%V:#:%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"" confixx
LogFormat "%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"" confixx2
CustomLog |/root/confixx/pipelog.pl confixx
<Directory "/opt">
<Files ~ "^.ht">
deny from all
</Files>
AllowOverride Options
AllowOverride Indexes AuthConfig Limit FileInfo
Options None
Options -FollowSymLinks -SymLinksIfOwnerMatch +Includes
</Directory>
<Directory "/opt/web1/html">
Options +ExecCGI +Indexes
</Directory>
<VirtualHost 62.146.227.18:80>
DocumentRoot /opt//confixx/html/gesperrt
</VirtualHost>
<VirtualHost 62.146.227.18:80>
ServerName rydl.beatmaschine.de
DocumentRoot /opt/web1/html/rydl
User web1
Group ftponly
ScriptAlias /cgi-bin/ /opt/web1/html/cgi-bin/
php_admin_value open_basedir /opt/web1/
php_admin_value upload_tmp_dir /opt/web1/phptmp/
php_admin_value safe_mode off
php_admin_value auto_append_file /opt/web1/html/userincs/rydl.inc.php
#0
</VirtualHost>
<VirtualHost 62.146.227.18:80>
ServerName derheide.beatmaschine.de
DocumentRoot /opt/web1/html/derheide
User web1
Group ftponly
ScriptAlias /cgi-bin/ /opt/web1/html/cgi-bin/
php_admin_value open_basedir /opt/web1/
php_admin_value upload_tmp_dir /opt/web1/phptmp/
php_admin_value safe_mode off
php_admin_value auto_append_file /opt/web1/html/userincs/derheide.inc.php
#0
</VirtualHost>
<VirtualHost 62.146.227.18:80>
ServerName appartement.beatmaschine.de
DocumentRoot /opt/web1/html/appartement
User web1
Group ftponly
ScriptAlias /cgi-bin/ /opt/web1/html/cgi-bin/
php_admin_value open_basedir /opt/web1/
php_admin_value upload_tmp_dir /opt/web1/phptmp/
php_admin_value safe_mode off
php_admin_value auto_append_file /opt/web1/html/userincs/appartement.inc.php
#0
Aber klappt Leider nicht......wenn ichs in <Virtual Host> ........</VirtualHist>
eingebe und Apache restarte kommt ne Fehlermeldung...Not Allowed here
Re: .htaccess und php_admin_value
Lesen bildet:
Zitat von http://httpd.apache.org/docs/mod/core.h ... owoverride
Zitat von http://httpd.apache.org/docs/mod/core.h ... owoverride
Syntax: AllowOverride All|None|directive-type [directive-type] ...
Default: AllowOverride All
Context: directory
Status: core
When the server finds an .htaccess file (as specified by AccessFileName) it needs to know which directives declared in that file can override earlier access information.
Note: AllowOverride is only valid in <Directory> sections, not in <Location> or <Files> sections, as implied by the Context section above.
Re: .htaccess und php_admin_value
sorry..aber so gut kenn ich mich noch nicht aus
so sieht meine .htaccess aus:
<Directory /opt/web1/html/schuetty/board>
php_admin_value auto_prepend_file /opt/web1/html/header.php
</Directory>
####################
so confixx-vhost:
AllowOverride Options
AllowOverride Indexes AuthConfig Limit FileInfo
Options None
Options -FollowSymLinks -SymLinksIfOwnerMatch +Includes
</Directory>
komm net klar
so sieht meine .htaccess aus:
<Directory /opt/web1/html/schuetty/board>
php_admin_value auto_prepend_file /opt/web1/html/header.php
</Directory>
####################
so confixx-vhost:
AllowOverride Options
AllowOverride Indexes AuthConfig Limit FileInfo
Options None
Options -FollowSymLinks -SymLinksIfOwnerMatch +Includes
</Directory>
komm net klar
Re: .htaccess und php_admin_value
was muss ich unter options eintragen?
Re: .htaccess und php_admin_value
Was sagt das error_log?
Re: .htaccess und php_admin_value
[Tue Mar 9 18:02:21 2004] [alert] [client 217.236.111.183] /opt/web1/html/schuetty/phpbb2/.htaccess: php_admin_value not allowed here
[Tue Mar 9 18:04:16 2004] [alert] [client 217.236.111.183] /opt/web1/html/community/img/.htaccess: XBitHack not allowed here
[Tue Mar 9 18:06:28 2004] [error] [client 172.180.49.13] File does not exist: /opt/web1/html/community/freakzz/banner3.jpg
[Tue Mar 9 18:06:34 2004] [notice] caught SIGTERM, shutting down
[Tue Mar 9 18:06:35 2004] [error] Cannot remove module mod_layout.c: not found in module list
[Tue Mar 9 18:06:44 2004] [error] Cannot remove module mod_layout.c: not found in module list
[Tue Mar 9 18:06:45 2004] [warn] NameVirtualHost 62.146.227.18:80 has no VirtualHosts
[Tue Mar 9 18:06:46 2004] [notice] Apache/1.3.23 (Unix) mod_python/2.7.8 Python/2.2 PHP/4.2.2 mod_perl/1.26 configured -- resuming normal operations
[Tue Mar 9 18:06:46 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Mar 9 18:06:46 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Tue Mar 9 18:06:51 2004] [alert] [client 217.236.111.183] /opt/web1/html/schuetty/phpbb2/.htaccess: Invalid command '<Directory>', perhaps mis-spelled or defined by a module not included in the server configuration
[Tue Mar 9 18:06:52 2004] [alert] [client 217.236.111.183] /opt/web1/html/schuetty/phpbb2/.htaccess: Invalid command '<Directory>', perhaps mis-spelled or defined by a module not included in the server configuration
[Tue Mar 9 18:08:24 2004] [alert] [client 217.236.111.183] /opt/web1/html/schuetty/phpbb2/.htaccess: <Directory not allowed here
[Tue Mar 9 18:08:25 2004] [alert] [client 217.236.111.183] /opt/web1/html/schuetty/phpbb2/.htaccess: <Directory not allowed here
[Tue Mar 9 18:12:20 2004] [alert] [client 217.236.111.183] /opt/web1/html/community/img/.htaccess: XBitHack not allowed here
[Tue Mar 9 18:16:24 2004] [error] [client 80.145.42.74] File does not exist: /opt/web1/html/poltorak/favicon.ico
[Tue Mar 9 18:16:40 2004] [alert] [client 217.228.21.163] /opt/web1/html/community/img/.htaccess: XBitHack not allowed here
[Tue Mar 9 18:17:27 2004] [alert] [client 217.234.252.20] /opt/web1/html/community/img/.htaccess: XBitHack not allowed here
[Tue Mar 9 18:04:16 2004] [alert] [client 217.236.111.183] /opt/web1/html/community/img/.htaccess: XBitHack not allowed here
[Tue Mar 9 18:06:28 2004] [error] [client 172.180.49.13] File does not exist: /opt/web1/html/community/freakzz/banner3.jpg
[Tue Mar 9 18:06:34 2004] [notice] caught SIGTERM, shutting down
[Tue Mar 9 18:06:35 2004] [error] Cannot remove module mod_layout.c: not found in module list
[Tue Mar 9 18:06:44 2004] [error] Cannot remove module mod_layout.c: not found in module list
[Tue Mar 9 18:06:45 2004] [warn] NameVirtualHost 62.146.227.18:80 has no VirtualHosts
[Tue Mar 9 18:06:46 2004] [notice] Apache/1.3.23 (Unix) mod_python/2.7.8 Python/2.2 PHP/4.2.2 mod_perl/1.26 configured -- resuming normal operations
[Tue Mar 9 18:06:46 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Mar 9 18:06:46 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Tue Mar 9 18:06:51 2004] [alert] [client 217.236.111.183] /opt/web1/html/schuetty/phpbb2/.htaccess: Invalid command '<Directory>', perhaps mis-spelled or defined by a module not included in the server configuration
[Tue Mar 9 18:06:52 2004] [alert] [client 217.236.111.183] /opt/web1/html/schuetty/phpbb2/.htaccess: Invalid command '<Directory>', perhaps mis-spelled or defined by a module not included in the server configuration
[Tue Mar 9 18:08:24 2004] [alert] [client 217.236.111.183] /opt/web1/html/schuetty/phpbb2/.htaccess: <Directory not allowed here
[Tue Mar 9 18:08:25 2004] [alert] [client 217.236.111.183] /opt/web1/html/schuetty/phpbb2/.htaccess: <Directory not allowed here
[Tue Mar 9 18:12:20 2004] [alert] [client 217.236.111.183] /opt/web1/html/community/img/.htaccess: XBitHack not allowed here
[Tue Mar 9 18:16:24 2004] [error] [client 80.145.42.74] File does not exist: /opt/web1/html/poltorak/favicon.ico
[Tue Mar 9 18:16:40 2004] [alert] [client 217.228.21.163] /opt/web1/html/community/img/.htaccess: XBitHack not allowed here
[Tue Mar 9 18:17:27 2004] [alert] [client 217.234.252.20] /opt/web1/html/community/img/.htaccess: XBitHack not allowed here
Re: .htaccess und php_admin_value
Hi,
und, was passiert, wenn du den XBitHack aus der .htaccess rausnimmst?
und, was passiert, wenn du den XBitHack aus der .htaccess rausnimmst?
Re: .htaccess und php_admin_value
wo/wie find ich denn?
bzw was is das?
bzw was is das?
Re: .htaccess und php_admin_value
eigentlich gehts nur darum:
Tue Mar 9 18:02:21 2004] [alert] [client 217.236.111.183] /opt/web1/html/schuetty/phpbb2/.htaccess: php_admin_value not allowed here
das is auch das verzeichnis wo die .htaccess drinne sein soll
Tue Mar 9 18:02:21 2004] [alert] [client 217.236.111.183] /opt/web1/html/schuetty/phpbb2/.htaccess: php_admin_value not allowed here
das is auch das verzeichnis wo die .htaccess drinne sein soll