Applies to


Zend Server 7 - 8.5

All platforms


Deploying an application to an HTTPS Virtual Host using the CLI tool zs-client.phar installs it in an incorrect directory. For example, deploying an application to the virtual host named will install it in the directory /usr/local/zend/var/apps/https/ instead of the correct one /usr/local/zend/var/apps/https/


To get the HTTPS application installed to the correct document root path, you should explicitly specify the SSL port 443 with the option --baseUri in the zs-client command, for example, --baseUri=''. As an example, see the following sample command which will install the application at the correct document root:

# /usr/local/zend/bin/php zs-client.phar installApp --zpk='/home/testing-1.0.0.zpk' \
--zsurl='' --zskey='test' \
--zssecret='69c46ca4e9265a9366e4cab591d9f1bb338deeb1a8158206c8b897770f274512' \
--baseUri='' --userAppName='demo1' \

Note: In case of re-deploying or updating an application that is already deployed to the incorrect sub-directory, you must remove the application first and then deploy it again, so that the application path is regenerated correctly.

  • No labels