Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は次の環境を持っています:
プロジェクトごとにカスタム php.ini をロードする方法を教えてください。現在、xamp セットアップのメインの php.ini からのみロードされるためです。
どうもありがとう。
仮想ホストごとに PHPINIDir を設定できます。
Apache 構成に追加します。
<VirtualHost *:80> DocumentRoot c:\www\example1 ServerName www.example.com PHPINIDir c:\www\example1 # Other directives here </VirtualHost>
複数の仮想ホストを処理するには、異なるホスト名 (etc/hosts を使用できます) または異なる IP アドレスが必要です。