How to change PHP version

Just tried to change to PHP7.3, didn’t immediately work, had to alternate between modify website and/or changing PHP on the website page.

Now trying to change back to 7.2, but doesn’t seem to work

Paste your vHost conf, please.

docRoot                   $VH_ROOT/public_html
vhDomain                  $VH_NAME
vhAliases                 www.$VH_NAME
adminEmails               [email protected]
enableGzip                1
enableIpGeo               1

index  {
  useServer               0
  indexFiles              index.php, index.html
}

errorlog $VH_ROOT/logs/$VH_NAME.error_log {
  useServer               0
  logLevel                ERROR
  rollingSize             10M
}

accesslog $VH_ROOT/logs/$VH_NAME.access_log {
  useServer               0
  logFormat               "%v %h %l %u %t "%r" %>s %b"
  logHeaders              5
  rollingSize             10M
  keepDays                10  compressArchive         1
}

scripthandler  {
  add                     lsapi:xxxxx php
}

extprocessor xxxxxxx {
  type                    lsapi
  address                 UDS://tmp/lshttpd/xxxxxx.sock
  maxConns                10
  env                     LSAPI_CHILDREN=10
  initTimeout             600
  retryTimeout            0
  persistConn             1
  pcKeepAliveTimeout      1
  respBuffer              0
  autoStart               1
  path                    /usr/local/lsws/lsphp72/bin/lsphp
  extUser                 xxxxxxx
  extGroup                 xxxxxxx
  memSoftLimit            2047M
  memHardLimit            2047M
  procSoftLimit           400
  procHardLimit           500
}
context /.filemanager {
  location                /usr/local/lsws/Example/html/FileManager
  allowBrowse             1
  autoIndex               1

  accessControl  {
    allow                 127.0.0.1, localhost
    deny                  0.0.0.0/0
  }
  rewrite  {
        enable               0
    
      }
      phpIniOverride  {
php_value display_errors "Off"
php_value upload_max_filesize "200M"
php_value post_max_size "250M"
}
  addDefaultCharset       off
}
phpIniOverride  {
}

    rewrite  {
      enable                  1
      autoLoadHtaccess        1
    }
    
vhssl  {
  keyFile                 /etc/letsencrypt/live/xxxxx.domain/privkey.pem
  certFile                /etc/letsencrypt/live/xxxxx.domain/fullchain.pem
  certChain               1
  sslProtocol             30
}

The path seems fine, what’s in the web server error logs?

2018-12-26 22:48:41.734057 [NOTICE] [XXX.XX.XXX.XXXX:11534] No request delivery notification has been received from LSAPI application, possible dead lock.

Here same, still this is not fixed, we are a year later

@haydrionrayel

Which error do you have? The right above you or the original topic.

Same Notice here: 2019-07-22 14:04:59.454004 [NOTICE] [XXX.XXX.XX.XXX:21706] No request delivery notification has been received from LSAPI application, possible dead lock.

@co2net

This is from OpenLiteSpeed. You need to check your application as LSAPI did not received response in timely manner.

help me

i wanna change my php version via cli

i’m check with comman (php -v)

still v7.1
i want upgrade via terminal to v7.4
please help

To upgrade your LiteSpeed php, add this code

$: cp /usr/local/lsws/lsphp72/bin/php /usr/bin

Type your comment> @hilmiafifi said:

i’m check with comman (php -v)

still v7.1
i want upgrade via terminal to v7.4
please help