I have a requirement for running Zend Framework 2 project on server IP address for temporary. I have to run two Zend Framework 2 projects as http:// IP-ADDRESS/project1 AND http:// IP-ADDRESS/project2. I searched out but getting examples with virtual host. Did anybody know how to do that OR some tutorial url for doing that.
I tried without virtual on direct running the path http:// localhost/project1/public but It gave me error like ‘Uncaught exception ‘RuntimeException’ with message ‘Unable to load ZF2. Run php composer.phar install or define a ZF2_PATH environment variable.’. While same structure working fine with virtal host.
Setting Env variable using putenv solve the problem, So question must be answered.