Different php for aliasdomains pointing one main domain - where are changes

Discussion in 'Installation/Configuration' started by Poliman, Jun 15, 2018.

  1. Poliman

    Poliman Member

    I have two aliasdomains vhost (both are aliases of klub-biosfera.pl):
    - soc.club-biosfera.pl, which uses Fast-CGI php-5.6.30 (additional php version from one of tutorials from this forum) and in "Options" tab in "Custom php.ini settings" input has two lines:
    Code:
    display_errors = off
    error_reporting = off
    - biodermagame.pl, which uses default php 7.0 installed with Ubuntu 16.04. When I put to "Custom php.ini settings" these two lines:
    Code:
    post_max_size = 124M
    upload_max_filesize = 124M
    It didn't work. In custom php.ini file /var/www/conf/web28_web I still saw old values - respectively 8MB and 2MB. Moreover two lines from first aliasdomain are in custom php.ini but with wrong values (default?):
    Code:
    display_errors = Off
    error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
    And finally I should change php version of second aliasdomain and after this, two lines added in "Custom php.ini settings" input worked.
    Where are custom php settings saved when aliasdomain uses default php imported with OS?

    PS
    Main domain uses php 7.0.
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I never tried that but I think it is not possible for a main domain and aliasdomain (vhost) sharing the same folder for their websites to have different custom php.ini, if that what you are trying to do.

    Manually custom php.ini is created under the root of the web folder but I am not sure where is its location if created under ISPConfig.

    Running a separate php version for each domain - e.g. main domain and aliasdomain (vhost) - should work fine though.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Try to use php-fpm mode. Custom php.ini settings for PHP FPM mode are not stored in a php.ini file, they are stored in the fpm starter file.
     
    ahrasis likes this.
  4. Poliman

    Poliman Member

    Thank you for answers. Some websites like soc.club-biosfera.pl on my server unfortunatelly don't want to work with php-fpm (with, i.e. php5.6) but work with fast-cgi (with php5.6).
     

Share This Page