hi rooties,
ich lasse php als cgi laufen und hab für jeden vhost eine eigene php.ini.
Da ich für jeden vhost die php.ini expliziet anpasse (open_basedir,upload_tmp_dir,include_path...) wäre meine Frage ob ich dieses nich in eine extra datei im conf ordner meines vhost speichern kann und dann mittels _includes_ in meine php.ini einfügen kann?! Dann müsste ich nicht immer erst die sachen in der php.ini suchen.
Ist sowas möglich, wenn ja wie?
teile aus der php.ini auslagern
-
lord_pinhead
- Posts: 774
- Joined: 2004-04-26 15:57
Re: teile aus der php.ini auslagern
Schonmal überlegt ob du nicht lieber jeden VHost in deiner HTTP Config diese Werte zuweißen kannst?
So kommt das in die Vhost Config rein, das solltest du dir mal doch überlegen ob das nicht der einfachere Weg wäre ;)
Code: Select all
php_admin_value open_basedir /path/to/website/
php_admin_flag safe_mode On
php_admin_value upload_tmp_dir /path/to/website/phptmp
php_admin_value session.save_path /path/to/website/session
ErrorLog /path/to/errorlog/
CustomLog /path/to/access.log/ combined
-
Roger Wilco
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: teile aus der php.ini auslagern
Kann er nicht, weil PHP als CGI läuft. :roll:Lord_Pinhead wrote:Schonmal überlegt ob du nicht lieber jeden VHost in deiner HTTP Config diese Werte zuweißen kannst?
Re: teile aus der php.ini auslagern
man sed
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
