The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Easy Apache 4 with FPM --> 'Primary script unknown' error

Discussion in 'EasyApache' started by kawasakai, Oct 21, 2015.

  1. kawasakai

    kawasakai Member

    Joined:
    Sep 17, 2015
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Germany
    cPanel Access Level:
    DataCenter Provider
    Hi there,

    I am trying to use PHP FPM with the "All PHP Options + ZendGuard" profilein EA4. I followed the guide at Configure PHP-FPM with User Pools for EasyApache 4 - cPanel Knowledge Base - cPanel Documentation

    But as soon as I do, I get a "File not found." error in my browser and a 'Primary script unknown\n' error in /var/log/apache2/error_log

    Here is some output which might be helpful:

    yum list installed | grep ea-
    Code:
    ea-apache24.x86_64                                2.4.16-6.1           @EA4    
    ea-apache24-config.x86_64                         1.0-43.1             @EA4    
    ea-apache24-config-runtime.noarch                 1.0-43.1             @EA4    
    ea-apache24-mod_cgid.x86_64                       2.4.16-6.1           @EA4    
    ea-apache24-mod_deflate.x86_64                    2.4.16-6.1           @EA4    
    ea-apache24-mod_expires.x86_64                    2.4.16-6.1           @EA4    
    ea-apache24-mod_headers.x86_64                    2.4.16-6.1           @EA4    
    ea-apache24-mod_mpm_worker.x86_64                 2.4.16-6.1           @EA4    
    ea-apache24-mod_proxy.x86_64                      2.4.16-6.1           @EA4    
    ea-apache24-mod_proxy_fcgi.x86_64                 2.4.16-6.1           @EA4    
    ea-apache24-mod_proxy_http.x86_64                 2.4.16-6.1           @EA4    
    ea-apache24-mod_security2.x86_64                  2.9.0-5.7            @EA4    
    ea-apache24-mod_ssl.x86_64                        2.4.16-6.1           @EA4    
    ea-apache24-mod_suexec.x86_64                     2.4.16-6.1           @EA4    
    ea-apache24-mod_unique_id.x86_64                  2.4.16-6.1           @EA4    
    ea-apache24-tools.x86_64                          2.4.16-6.1           @EA4    
    ea-apr.x86_64                                     1.5.1-9.1            @EA4    
    ea-apr-util.x86_64                                1.5.2-10.7           @EA4    
    ea-cpanel-tools.x86_64                            1.0-3.1              @EA4    
    ea-documentroot.noarch                            1.0-2.2              @EA4    
    ea-libmcrypt.x86_64                               2.5.8-2.3            @EA4    
    ea-php-cli.x86_64                                 0.0.3-1.6            @EA4    
    ea-php54.x86_64                                   1.1-10.7             @EA4    
    ea-php54-build.x86_64                             1.1-10.7             @EA4    
    ea-php54-php.x86_64                               5.4.45-1.10          @EA4    
    ea-php54-php-bcmath.x86_64                        5.4.45-1.10          @EA4    
    ea-php54-php-bz2.x86_64                           5.4.45-1.10          @EA4    
    ea-php54-php-calendar.x86_64                      5.4.45-1.10          @EA4    
    ea-php54-php-cli.x86_64                           5.4.45-1.10          @EA4    
    ea-php54-php-common.x86_64                        5.4.45-1.10          @EA4    
    ea-php54-php-curl.x86_64                          5.4.45-1.10          @EA4    
    ea-php54-php-dba.x86_64                           5.4.45-1.10          @EA4    
    ea-php54-php-debuginfo.x86_64                     5.4.45-1.10          @EA4    
    ea-php54-php-devel.x86_64                         5.4.45-1.10          @EA4    
    ea-php54-php-enchant.x86_64                       5.4.45-1.10          @EA4    
    ea-php54-php-exif.x86_64                          5.4.45-1.10          @EA4    
    ea-php54-php-fileinfo.x86_64                      5.4.45-1.10          @EA4    
    ea-php54-php-fpm.x86_64                           5.4.45-1.10          @EA4    
    ea-php54-php-ftp.x86_64                           5.4.45-1.10          @EA4    
    ea-php54-php-gd.x86_64                            5.4.45-1.10          @EA4    
    ea-php54-php-gettext.x86_64                       5.4.45-1.10          @EA4    
    ea-php54-php-gmp.x86_64                           5.4.45-1.10          @EA4    
    ea-php54-php-iconv.x86_64                         5.4.45-1.10          @EA4    
    ea-php54-php-intl.x86_64                          5.4.45-1.10          @EA4    
    ea-php54-php-ioncube.x86_64                       4.7.5-2.42           @EA4    
    ea-php54-php-ldap.x86_64                          5.4.45-1.10          @EA4    
    ea-php54-php-mbstring.x86_64                      5.4.45-1.10          @EA4    
    ea-php54-php-mcrypt.x86_64                        5.4.45-1.10          @EA4    
    ea-php54-php-mysqlnd.x86_64                       5.4.45-1.10          @EA4    
    ea-php54-php-odbc.x86_64                          5.4.45-1.10          @EA4    
    ea-php54-php-pdo.x86_64                           5.4.45-1.10          @EA4    
    ea-php54-php-pgsql.x86_64                         5.4.45-1.10          @EA4    
    ea-php54-php-posix.x86_64                         5.4.45-1.10          @EA4    
    ea-php54-php-process.x86_64                       5.4.45-1.10          @EA4    
    ea-php54-php-pspell.x86_64                        5.4.45-1.10          @EA4    
    ea-php54-php-snmp.x86_64                          5.4.45-1.10          @EA4    
    ea-php54-php-soap.x86_64                          5.4.45-1.10          @EA4    
    ea-php54-php-sockets.x86_64                       5.4.45-1.10          @EA4    
    ea-php54-php-sourceguardian.x86_64                10.1.5-2.40          @EA4    
    ea-php54-php-xml.x86_64                           5.4.45-1.10          @EA4    
    ea-php54-php-xmlrpc.x86_64                        5.4.45-1.10          @EA4    
    ea-php54-php-zendguard.x86_64                     3.3-2.40             @EA4    
    ea-php54-php-zip.x86_64                           5.4.45-1.10          @EA4    
    ea-php54-runtime.x86_64                           1.1-10.7             @EA4    
    ea-php55.x86_64                                   1.1-10.7             @EA4    
    ea-php55-build.x86_64                             1.1-10.7             @EA4    
    ea-php55-php.x86_64                               5.5.30-1.6           @EA4    
    ea-php55-php-bcmath.x86_64                        5.5.30-1.6           @EA4    
    ea-php55-php-bz2.x86_64                           5.5.30-1.6           @EA4    
    ea-php55-php-calendar.x86_64                      5.5.30-1.6           @EA4    
    ea-php55-php-cli.x86_64                           5.5.30-1.6           @EA4    
    ea-php55-php-common.x86_64                        5.5.30-1.6           @EA4    
    ea-php55-php-curl.x86_64                          5.5.30-1.6           @EA4    
    ea-php55-php-dba.x86_64                           5.5.30-1.6           @EA4    
    ea-php55-php-debuginfo.x86_64                     5.5.30-1.6           @EA4    
    ea-php55-php-devel.x86_64                         5.5.30-1.6           @EA4    
    ea-php55-php-enchant.x86_64                       5.5.30-1.6           @EA4    
    ea-php55-php-exif.x86_64                          5.5.30-1.6           @EA4    
    ea-php55-php-fileinfo.x86_64                      5.5.30-1.6           @EA4    
    ea-php55-php-fpm.x86_64                           5.5.30-1.6           @EA4    
    ea-php55-php-ftp.x86_64                           5.5.30-1.6           @EA4    
    ea-php55-php-gd.x86_64                            5.5.30-1.6           @EA4    
    ea-php55-php-gettext.x86_64                       5.5.30-1.6           @EA4    
    ea-php55-php-gmp.x86_64                           5.5.30-1.6           @EA4    
    ea-php55-php-iconv.x86_64                         5.5.30-1.6           @EA4    
    ea-php55-php-intl.x86_64                          5.5.30-1.6           @EA4    
    ea-php55-php-ioncube.x86_64                       4.7.5-2.40           @EA4    
    ea-php55-php-ldap.x86_64                          5.5.30-1.6           @EA4    
    ea-php55-php-mbstring.x86_64                      5.5.30-1.6           @EA4    
    ea-php55-php-mcrypt.x86_64                        5.5.30-1.6           @EA4    
    ea-php55-php-mysqlnd.x86_64                       5.5.30-1.6           @EA4    
    ea-php55-php-odbc.x86_64                          5.5.30-1.6           @EA4    
    ea-php55-php-pdo.x86_64                           5.5.30-1.6           @EA4    
    ea-php55-php-pgsql.x86_64                         5.5.30-1.6           @EA4    
    ea-php55-php-posix.x86_64                         5.5.30-1.6           @EA4    
    ea-php55-php-process.x86_64                       5.5.30-1.6           @EA4    
    ea-php55-php-pspell.x86_64                        5.5.30-1.6           @EA4    
    ea-php55-php-snmp.x86_64                          5.5.30-1.6           @EA4    
    ea-php55-php-soap.x86_64                          5.5.30-1.6           @EA4    
    ea-php55-php-sockets.x86_64                       5.5.30-1.6           @EA4    
    ea-php55-php-sourceguardian.x86_64                10.1.5-2.39          @EA4    
    ea-php55-php-xml.x86_64                           5.5.30-1.6           @EA4    
    ea-php55-php-xmlrpc.x86_64                        5.5.30-1.6           @EA4    
    ea-php55-php-zendguard.x86_64                     3.3-2.39             @EA4    
    ea-php55-php-zip.x86_64                           5.5.30-1.6           @EA4    
    ea-php55-runtime.x86_64                           1.1-10.7             @EA4    
    ea-php56.x86_64                                   1.1-10.7             @EA4    
    ea-php56-build.x86_64                             1.1-10.7             @EA4    
    ea-php56-php.x86_64                               5.6.14-1.4           @EA4    
    ea-php56-php-bcmath.x86_64                        5.6.14-1.4           @EA4    
    ea-php56-php-bz2.x86_64                           5.6.14-1.4           @EA4    
    ea-php56-php-calendar.x86_64                      5.6.14-1.4           @EA4    
    ea-php56-php-cli.x86_64                           5.6.14-1.4           @EA4    
    ea-php56-php-common.x86_64                        5.6.14-1.4           @EA4    
    ea-php56-php-curl.x86_64                          5.6.14-1.4           @EA4    
    ea-php56-php-dba.x86_64                           5.6.14-1.4           @EA4    
    ea-php56-php-debuginfo.x86_64                     5.6.14-1.4           @EA4    
    ea-php56-php-devel.x86_64                         5.6.14-1.4           @EA4    
    ea-php56-php-enchant.x86_64                       5.6.14-1.4           @EA4    
    ea-php56-php-exif.x86_64                          5.6.14-1.4           @EA4    
    ea-php56-php-fileinfo.x86_64                      5.6.14-1.4           @EA4    
    ea-php56-php-fpm.x86_64                           5.6.14-1.4           @EA4    
    ea-php56-php-ftp.x86_64                           5.6.14-1.4           @EA4    
    ea-php56-php-gd.x86_64                            5.6.14-1.4           @EA4    
    ea-php56-php-gettext.x86_64                       5.6.14-1.4           @EA4    
    ea-php56-php-gmp.x86_64                           5.6.14-1.4           @EA4    
    ea-php56-php-iconv.x86_64                         5.6.14-1.4           @EA4    
    ea-php56-php-intl.x86_64                          5.6.14-1.4           @EA4    
    ea-php56-php-ioncube.x86_64                       4.7.5-6.41           @EA4    
    ea-php56-php-ldap.x86_64                          5.6.14-1.4           @EA4    
    ea-php56-php-mbstring.x86_64                      5.6.14-1.4           @EA4    
    ea-php56-php-mcrypt.x86_64                        5.6.14-1.4           @EA4    
    ea-php56-php-mysqlnd.x86_64                       5.6.14-1.4           @EA4    
    ea-php56-php-odbc.x86_64                          5.6.14-1.4           @EA4    
    ea-php56-php-pdo.x86_64                           5.6.14-1.4           @EA4    
    ea-php56-php-pgsql.x86_64                         5.6.14-1.4           @EA4    
    ea-php56-php-posix.x86_64                         5.6.14-1.4           @EA4    
    ea-php56-php-process.x86_64                       5.6.14-1.4           @EA4    
    ea-php56-php-pspell.x86_64                        5.6.14-1.4           @EA4    
    ea-php56-php-snmp.x86_64                          5.6.14-1.4           @EA4    
    ea-php56-php-soap.x86_64                          5.6.14-1.4           @EA4    
    ea-php56-php-sockets.x86_64                       5.6.14-1.4           @EA4    
    ea-php56-php-sourceguardian.x86_64                10.1.5-2.40          @EA4    
    ea-php56-php-xml.x86_64                           5.6.14-1.4           @EA4    
    ea-php56-php-xmlrpc.x86_64                        5.6.14-1.4           @EA4    
    ea-php56-php-zendguard.x86_64                     3.3-2.40             @EA4    
    ea-php56-php-zip.x86_64                           5.6.14-1.4           @EA4    
    ea-php56-runtime.x86_64                           1.1-10.7             @EA4    
    ea-profiles-cpanel.x86_64                         1.0-18.1             @EA4
    grep -IR 'LoadModule' /etc/apache2/ 2>/dev/null | grep proxy
    Code:
    /etc/apache2/conf.modules.d/335_mod_proxy_http.conf:LoadModule proxy_http_module modules/mod_proxy_http.so
    /etc/apache2/conf.modules.d/275_mod_proxy.conf:LoadModule proxy_module modules/mod_proxy.so
    /etc/apache2/conf.modules.d/320_mod_proxy_fcgi.conf:LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
    cat /etc/apache2/conf.d/userdata/std/2_4/example/test.example.domains/fpm.conf
    Code:
    <IfModule proxy_fcgi_module>
        ProxyPassMatch "^/(.*\.php(/.*)?)$" "unix:/home/example/run/php56-fpm.sock|fcgi://localhost/home/example/public_html/"
        DirectoryIndex index.php
    </IfModule>
    grep -v '^;' /opt/cpanel/ea-php56/root/etc/php-fpm.d/example.conf | grep .
    Code:
    [example]
    listen = /home/example/run/php56-fpm.sock
     
    listen.allowed_clients = 127.0.0.1
    listen.owner = example
    listen.group = nobody
    user = example
    group = example
    pm = dynamic
    pm.max_children = 50
    pm.start_servers = 5
    pm.min_spare_servers = 5
    pm.max_spare_servers = 35
     
    pm.status_path = /statusfpm
    
    slowlog = /opt/cpanel/ea-php56/root/usr/var/log/php-fpm/www-slow.log
    
    catch_workers_output = yes
     
    php_flag[display_errors] = on
    php_admin_value[error_log] = /home/example/logs/ea-php56-php-fpm.log
    php_admin_flag[log_errors] = on
    php_value[session.save_handler] = files
    php_value[session.save_path]    = /opt/cpanel/ea-php56/root/usr/var/lib/php/session
    php_value[soap.wsdl_cache_dir]  = /opt/cpanel/ea-php56/root/usr/var/lib/php/wsdlcache
    systemctl status ea-php56-php-fpm
    Code:
    ea-php56-php-fpm.service - The PHP FastCGI Process Manager
       Loaded: loaded (/usr/lib/systemd/system/ea-php56-php-fpm.service; enabled)
       Active: active (running) since Wed 2015-10-21 13:49:12 CEST; 22min ago
     Main PID: 32205 (php-fpm)
       Status: "Processes active: 0, idle: 10, Requests: 21, slow: 0, Traffic: 0req/sec"
       CGroup: /system.slice/ea-php56-php-fpm.service
               ├─32205 php-fpm: master process (/opt/cpanel/ea-php56/root/etc/php-fpm.conf)
               ├─32206 php-fpm: pool example
               ├─32207 php-fpm: pool example
               ├─32208 php-fpm: pool example
               ├─32209 php-fpm: pool example
               ├─32210 php-fpm: pool example
               ├─32211 php-fpm: pool www
               ├─32212 php-fpm: pool www
               ├─32213 php-fpm: pool www
               ├─32214 php-fpm: pool www
               └─32215 php-fpm: pool www
    
    Oct 21 13:49:12 example.example.com systemd[1]: Started The PHP FastCGI Process Manager.
    la /home/example/run/
    Code:
    total 4.0K
    drwxr-xr-x  2 example root         27 Oct 21 13:49 ./
    drwx--x--x 14 example example 4.0K Oct 20 14:27 ../
    srw-rw----  1 example nobody        0 Oct 21 13:49 php56-fpm.sock=
    apachectl -t -D DUMP_MODULES
    Code:
    Loaded Modules:
     core_module (static)
     so_module (static)
     http_module (static)
     mpm_worker_module (shared)
     cgid_module (shared)
     access_compat_module (shared)
     actions_module (shared)
     alias_module (shared)
     auth_basic_module (shared)
     authn_core_module (shared)
     authn_file_module (shared)
     authz_core_module (shared)
     authz_groupfile_module (shared)
     authz_host_module (shared)
     authz_user_module (shared)
     autoindex_module (shared)
     deflate_module (shared)
     dir_module (shared)
     expires_module (shared)
     filter_module (shared)
     headers_module (shared)
     include_module (shared)
     info_module (shared)
     log_config_module (shared)
     logio_module (shared)
     mime_module (shared)
     negotiation_module (shared)
     proxy_module (shared)
     proxy_fcgi_module (shared)
     proxy_http_module (shared)
     rewrite_module (shared)
     setenvif_module (shared)
     slotmem_shm_module (shared)
     socache_dbm_module (shared)
     socache_shmcb_module (shared)
     status_module (shared)
     suexec_module (shared)
     unique_id_module (shared)
     unixd_module (shared)
     userdir_module (shared)
     ssl_module (shared)
     security2_module (shared)
    
     
  2. kawasakai

    kawasakai Member

    Joined:
    Sep 17, 2015
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Germany
    cPanel Access Level:
    DataCenter Provider
    I enabled debug logging for
    LogLevel debug proxy_fcgi_module:debug
    LogLevel debug proxy_module:debug
    Code:
    [Thu Oct 22 15:59:20.791877 2015] [authz_core:debug] [pid 16065:tid 139750571280128] mod_authz_core.c(835): [client 212.218.65.185:49935] AH01628: authorization result: granted (no directives)
    [Thu Oct 22 15:59:20.791997 2015] [proxy_fcgi:debug] [pid 16065:tid 139750571280128] mod_proxy_fcgi.c(84): [client 212.218.65.185:49935] AH01060: set r->filename to proxy:fcgi://127.0.0.1:9000/info.php
    [Thu Oct 22 15:59:20.792052 2015] [proxy:debug] [pid 16065:tid 139750571280128] mod_proxy.c(1159): [client 212.218.65.185:49935] AH01143: Running scheme fcgi handler (attempt 0)
    [Thu Oct 22 15:59:20.792060 2015] [proxy_fcgi:debug] [pid 16065:tid 139750571280128] mod_proxy_fcgi.c(879): [client 212.218.65.185:49935] AH01076: url: fcgi://127.0.0.1:9000/info.php proxyname: (null) proxyport: 0
    [Thu Oct 22 15:59:20.792064 2015] [proxy_fcgi:debug] [pid 16065:tid 139750571280128] mod_proxy_fcgi.c(886): [client 212.218.65.185:49935] AH01078: serving URL fcgi://127.0.0.1:9000/info.php
    [Thu Oct 22 15:59:20.792074 2015] [proxy:debug] [pid 16065:tid 139750571280128] proxy_util.c(2147): AH00942: FCGI: has acquired connection for (*)
    [Thu Oct 22 15:59:20.792081 2015] [proxy:debug] [pid 16065:tid 139750571280128] proxy_util.c(2200): [client 212.218.65.185:49935] AH00944: connecting fcgi://127.0.0.1:9000/info.php to 127.0.0.1:9000
    [Thu Oct 22 15:59:20.792108 2015] [proxy:debug] [pid 16065:tid 139750571280128] proxy_util.c(2409): [client 212.218.65.185:49935] AH00947: connected /info.php to 127.0.0.1:9000
    [Thu Oct 22 15:59:20.792240 2015] [proxy:debug] [pid 16065:tid 139750571280128] proxy_util.c(2786): AH02824: FCGI: connection established with 127.0.0.1:9000 (*)
    [Thu Oct 22 15:59:20.793142 2015] [proxy_fcgi:error] [pid 16065:tid 139750571280128] [client 212.218.65.185:49935] AH01071: Got error 'Primary script unknown\n'
    [Thu Oct 22 15:59:20.793224 2015] [proxy:debug] [pid 16065:tid 139750571280128] proxy_util.c(2162): AH00943: FCGI: has released connection for (*)
    Nevertheless the output doesn't help me any further. I suspected the error at the ProxyPassMatch directive but it seems to be correct.
     
  3. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Interesting, I hadn't came across these issues. Any chance you'd be available to put in a ticket and allow us access to the server to check this out? You can use the links in my signature to open a ticket, and then you can put in the subject or ticket 'Escalate to Jacob Perkins', and I'll be able to assist. Thanks!
     
  4. kawasakai

    kawasakai Member

    Joined:
    Sep 17, 2015
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Germany
    cPanel Access Level:
    DataCenter Provider
    Thx, I just submitted a ticket.
     
  5. kawasakai

    kawasakai Member

    Joined:
    Sep 17, 2015
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Germany
    cPanel Access Level:
    DataCenter Provider
    The error was found by the support team. I switched with /usr/local/cpanel/bin/rebuild_phpconf to fpm from cgi. But actually cgi is the right setting there.

    (Since the fpm profile seems to add its own ProxyPassMatch directive which gets matched before the virtualhost specific ProxyPassMatch directive.)
     
  6. kawasakai

    kawasakai Member

    Joined:
    Sep 17, 2015
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Germany
    cPanel Access Level:
    DataCenter Provider
  7. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    HI Kawasakai,

    We're looking at expanding FPM support w/EA4 in the next release or two. We're still working on stabilization of EA4, but once we're complete with that and all the refactors, we'll be working on expanding support.
     
  8. kawasakai

    kawasakai Member

    Joined:
    Sep 17, 2015
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Germany
    cPanel Access Level:
    DataCenter Provider
    Okay, great :)
     
  9. captainpajamas

    Joined:
    Feb 6, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Any fix to this yet? I'm having the same "file not found" error when using FPM and easyapache4 and can't use DSO since it's buggy.
     
  10. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Switching to cgi handler solved this for me. Using the properly configured ProxyPassMatch directive in the VirtualHost will forward php requests through the FPM.
     
  11. ribo

    ribo Active Member

    Joined:
    Oct 15, 2015
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Is there any guide for this please?
     
  12. captainpajamas

    Joined:
    Feb 6, 2015
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator

    How is that done using the cgi handler?
     
  13. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Code:
    /usr/local/cpanel/bin/rebuild_phpconf --default=ea-php56 --ea-php56=cgi
     
  14. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
  15. ribo

    ribo Active Member

    Joined:
    Oct 15, 2015
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Yes i saw that but i am confused in
    Code:
    cp www.conf $<user>.conf
    i put my user and is says that no such file or directory
     
  16. ribo

    ribo Active Member

    Joined:
    Oct 15, 2015
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    i am a little confused.
    for example
    $<user> must write $user ?
     
  17. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    508
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    $<user> is meant to be a 'variable', meaning you replace the full '$<user>' with the actual username of the account you're creating the pool for.

    This is done in multiple places, so be ware. Also, this is more of an advanced configuration. If you're not comfortable troubleshooting with the command line and troubleshooting Apache / FPM, I'd recommend holding off until we provide expanded support for FPM.

    Thanks for testing out EA4!
     
  18. ribo

    ribo Active Member

    Joined:
    Oct 15, 2015
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    i tryed and unfortunately it stays in cgi/fcgi
     
  19. ribo

    ribo Active Member

    Joined:
    Oct 15, 2015
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    I have a question please. Suphp must be removed to work php fpm?
     
  20. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you elaborate on if you mean uninstalled through EasyApache or configured as a PHP handler?

    Thank you.
     
Loading...

Share This Page