1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

How do I setup PHP Enviroment variables correcly

Discussion in 'Plesk for Windows - 8.x and Older' started by Kalyse, Sep 4, 2006.

  1. Kalyse

    Kalyse Guest

    0
     
    Hello,

    I am trying to set up PHP so that the enviroment variables actually work.

    I have been changign quite a lot of the default settings in the PHP.ini because quite frankly they were awful as default.

    Anyway, I am trying to setup DOCUMENT_ROOT for each of my virtual hosts automatically although as a first time server admin using Plesk I am unsure.

    I would know easily of how to make the changes manually although automatically I am unsure.

    I could do it with http.conf but that wouldnt be automatic would it for each virtual host that Plesk sets up.

    Can anyone provide any information.

    Are there lots of other settings that need updating in the PHP.ini on a new install using Plesk.

    Thanks
     
  2. Skeeter

    Skeeter Guest

    0
     
    Hello, Kalyse

    If you use the php in cgi mode, you can use an individual php.ini for each domain.
    You would just need to put the php.ini in the folder where the scripts are located.

    Or, else, you can change any parameters in the scripts directly.

    Please, note that Plesk manages Miscrosoft IIS. The httpd.conf you found in the Plesk folder is used for the Plesk Control Panel. You shouldn`t edit it, this can break the Panel.

    As for the specific parameters that need to be changed, this will depend on what functionality you need. To make these decisions you need to know what your scripts (contact developers) need and which parameters to use (see php.net).
     
Loading...