Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I have Apache server with VirtualHosts. I was requested to make custom php.ini configuration files for each virtul host. I was searching a little bit on the Internet. I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2012
    Posts
    6

    Wink Custom php.ini for each virtual host


    Hi,
    I have Apache server with VirtualHosts. I was requested to make custom php.ini configuration files for each virtul host.

    I was searching a little bit on the Internet. I found just PHPINIDir.

    I do not want to use it, because it is not officially documented in Apache and neither PHP documentation.

    Any suggestions?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,391
    I would suggest to have a generic php.ini and make virtualhost specific php configs via "php_value" or "php_admin_value" in the apache configuration file.
    Have a look here:
    PHP: How to change configuration settings - Manual
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Jul 2012
    Posts
    6
    Thank you for your post.

    I have suPHP on my server. Is it possible to make custom php.ini files via suPHP? Maybe via suPHP_ConfigPath configuration option?

  4. #4
    Just Joined!
    Join Date
    Jul 2012
    Posts
    6
    I just want to run my own webhosting company. And I need to offer users their own php.ini
    Does somebody how to do this?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •