Results 1 to 10 of 10

Thread: php 5.6 mod-php and php 7.0 ?

  1. #1
    Join Date
    Feb 2013
    Posts
    46

    Exclamation php 5.6 mod-php and php 7.0 ?

    #PHP Settings
    php1_release=5.6
    php1_mode=mod_php
    php2_release=no
    php2_mode=php-fpm
    opcache=no
    htscanner=no
    php_ini=no
    php_timezone=Asia/Tehran
    php_ini_type=production
    ioncube=yes
    zend=yes
    suhosin=no
    x_mail_header=yes


    I need to use php 7.x for some accounts
    what is best config for me?

    php1_release=5.6
    php1_mode=mod_php

    what confing for second php (7.x) is suitable?
    and how to build it correctly?

  2. #2
    Join Date
    Aug 2015
    Posts
    236
    First decide what you exactly want.
    Then run for example:

    Code:
    ./build set php1_mode mod_php
    ./build set php2_mode php-fpm
    ./build set php1_release 5.6
    ./build set php2_release 7.0
    You could check options.conf to see if set everything right
    Code:
    cd /usr/local/directadmin/custombuild
    vi options.conf
    then recompile PHP
    Code:
    ./build php n
    ./build rewrite_confs
    Kind regards, Fred

    Alentejo Webdesign
    Webdesign with Passion is what we do
    Web development, Hosting, Speed Optimizing & More......

  3. #3
    Join Date
    Feb 2013
    Posts
    46
    Is it necessary to recompile Apache?

  4. #4
    Join Date
    Aug 2015
    Posts
    236
    No, You just have to restart Apache, but that is already done with the ./build rewrite_confs command
    Kind regards, Fred

    Alentejo Webdesign
    Webdesign with Passion is what we do
    Web development, Hosting, Speed Optimizing & More......

  5. #5
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,878
    I'd suggest using PHP-FPM for both modes whenever it's possible,


    Code:
    php1_release=7.0
    php1_mode=php-fpm
    php2_release=5.6
    php2_mode=php-fpm

    Yes, I suggest setting PHP 7.0 as the default, so you will need to update existing domains settings to PHP 5.6.




    Even if you decide to use PHP 5.6 I would not suggest using mod_php and PHP-FPM at the same time.

  6. #6
    Join Date
    Sep 2012
    Posts
    42
    Hi,

    Is there an option to show a list which hosting package uses what version of php?
    Ofcourse without going in to each hosting account seperatly.

    Found the answer here:
    http://forum.directadmin.com/showthr...nd+php+version
    Last edited by cDGo; 03-05-2018 at 05:37 AM.

  7. #7
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,878
    You can do it only in shell console. There is no directadmin interface for it.

  8. #8
    Join Date
    Feb 2013
    Posts
    46

    Change php 5.6 to 7.2

    Quote Originally Posted by zEitEr View Post
    I'd suggest using PHP-FPM for both modes whenever it's possible,


    Code:
    php1_release=7.0
    php1_mode=php-fpm
    php2_release=5.6
    php2_mode=php-fpm

    Yes, I suggest setting PHP 7.0 as the default, so you will need to update existing domains settings to PHP 5.6.




    Even if you decide to use PHP 5.6 I would not suggest using mod_php and PHP-FPM at the same time.

    Thank You, But NOW my php settings is :
    Code:
    PHP Settings
    php1_release=5.6
    php1_mode=mod_php
    php2_release=7.2
    php2_mode=php-fpm
    opcache=no
    htscanner=no
    php_ini=no
    php_timezone=Asia/Tehran
    php_ini_type=production
    ioncube=yes
    zend=yes
    suhosin=no
    x_mail_header=yes
    Can i change it to the following?

    php1_release=7.2
    php1_mode=php-fpm
    php2_release=5.6
    php2_mode=php-fpm
    Last edited by alipour66m; 03-10-2018 at 01:54 AM.

  9. #9
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,878
    It looks fine. Feel free to set the HP options as desired.

  10. #10
    Join Date
    May 2008
    Posts
    586
    Quote Originally Posted by alipour66m View Post
    Can i change it to the following?

    php1_release=7.2
    php1_mode=php-fpm
    php2_release=5.6
    php2_mode=php-fpm
    Yes, highly recommended!

Tags for this Thread

Posting Permissions

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