Results 1 to 7 of 7

Thread: Problem in PHP version selector

  1. #1
    Join Date
    Feb 2013
    Posts
    15

    Problem in PHP version selector

    Hi ,
    I want to use php7.1 and php5.6 .
    but when I compile it , at start of php5.6 this error appear :

    Starting php-fpm56: [06-Nov-2017 15:42:46] WARNING: Nothing matches the include pattern '/usr/local/directadmin/data/users/*/php/php-fpm56.conf' from /usr/local/php56/etc/php-fpm.conf at line 68.
    done

    May I guide me , what should I do ?
    thanks,

    my options.conf is this :

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

    #MySQL Settings
    mysql=5.6
    mariadb=10.0
    mysql_inst=mysql
    mysql_backup=no
    mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
    mysql_force_compile=no

    #WEB Server Settings
    webserver=apache
    litespeed_serialno=trial
    modsecurity=no
    modsecurity_ruleset=comodo
    apache_ver=2.4
    apache_mpm=auto
    mod_ruid2=no
    harden_symlinks_patch=yes
    use_hostname_for_alias=auto
    redirect_host_https=no

    #WEB Applications Settings
    phpmyadmin=yes
    phpmyadmin_ver=4
    squirrelmail=yes
    roundcube=yes
    webapps_inbox_prefix=no

  2. #2
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,407
    Hello,

    Actually it's a warning only, and it can be ignored.

    What issues do you have? Do you see php-fpm processes running?

    Code:
    ps aux | grep fpm
    ?
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  3. #3
    Join Date
    Feb 2013
    Posts
    15
    Hi,
    Problem is when I change to PHP5.6 in directadmin : this error appear on php pages:

    Service Unavailable

    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

    Additionally, a 503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request.

    and no one of site doesn't work with php5.6 , but with php7.1 everything is ok !
    and also I change this , but nothing happen :
    php1_release=7.1
    php1_mode=mod_php

    Can you guide me what should I do ?

    thanks

  4. #4
    Join Date
    Feb 2013
    Posts
    15
    Hi,
    I revers PHP versions ,

    php1_release=5.6
    php1_mode=mod_php
    php2_release=7.1
    php2_mode=php-fpm

    Now websites work with PHP5.6 , but again with Php2 not !
    and same error appear for me .

    should I do anything else to work with second PHP ?

    thanks

  5. #5
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,407
    Please answer my second question from my previous post. I guess you have no PHP-FPM installed and/or running.
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

  6. #6
    Join Date
    Feb 2013
    Posts
    15
    Quote Originally Posted by zEitEr View Post
    Please answer my second question from my previous post. I guess you have no PHP-FPM installed and/or running.
    Hi,

    This is the result :

    [root@server ~]# ps aux | grep fpm
    root 1918 0.0 0.0 232824 864 ? Ss 15:14 0:00 php-fpm: master process (/usr/local/php71/etc/php-fpm.conf)
    root 13740 0.0 0.0 103588 880 pts/0 S+ 21:57 0:00 grep fpm

  7. #7
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    11,407
    Is selinux disabled?
    With regards, Alex.

    Professional Server Management for web hosting companies and individuals
    Hourly Support, Disaster Recovery, Server Hardening, Monthly Subscription
    Directadmin installation and optimization

    Click here if you need a Linux Admin

Posting Permissions

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