auto_prepend_file

  • Hi


    Könnte mir bitte jemand kurz erklären wie ich mittels php_value auto_prepend_file dauerhaft bei 1 Domain eine Datei "vorladen" kann?
    Versuche ich das mitels .htaccess erhalte ich einen Server 500 Error
    versuche ich das unter: /etc/php5/fpm&/pool.d/domain.conf ist das bei der nächsten Änderung im Control Panel wieder weg.
    Ich vermute mal das ich da irgendwo etwas übersehe, die Frage ist nur wo und was.
    Die verwendete Version ist:
    i-MSCP 1.2.17
    Build: 20160312
    Codename: Andromeda


    Danke
    Marc

  • Also, wenn ich das richtig hab läuft PHP bei mit als fpm (Fast-CGI) wodurch die Verwendung von php_value, php_admin_value, etc. in der .htaccess also weg fällt ;-(


    Ansonsten sieht meine .htacces nur so aus:


    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^domain.de$ [NC]
    RewriteRule ^(.*)$ http://www.domain.de/$1 [R=301,L]


    einer der Versuche war:
    php_value auto_prepend_file /var/www/virtual/..../ datei.php Der Pfad und die Datei war in jedem Fall richtig angegeben

  • @marcaust


    You cannot use any php directive into .htaccess files when using either Fcgid or FPM... Those directives are only usable when using PHP as apache module (In the case of i-MSCP you would have to choice the ITK server implementation).

    If you want to set the auto_prepend_file directive for one of many domains automatically and make it persistent, you could use that listener file:

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206