[root@lcoalhost public]# curl -sS https://getcomposer.org/installer | php Cannot load Zend OPcache - it was already loaded All settings correct for using Composer Downloading...
Composer (version 2.2.7) successfully installed to: /var/www/public/composer.phar Use it: php composer.phar
[root@localhost public]# php composer.phar install Cannot load Zend OPcache - it was already loaded Do not run Composer as root/super user! See https://getcomposer.org/root for details Continue as root/super user [yes]? yes Composer could not find a composer.json file in /var/www/public To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage
[root@localhost public]# curl -sS https://getcomposer.org/installer | php Cannot load Zend OPcache - it was already loaded All settings correct for using Composer Downloading...
Composer (version 2.2.7) successfully installed to: /var/www/public/composer.phar Use it: php composer.phar
[root@localhost public]# php composer.phar install Cannot load Zend OPcache - it was already loaded Do not run Composer as root/super user! See https://getcomposer.org/root for details Continue as root/super user [yes]? yes Composer could not find a composer.json file in /var/www/public To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage
Composer could not find a composer.json file in /var/www/publicとあるので、インストールしているディレクトリでcomposer.jsonが見つからなくて先に進まないのだと思うのですが、どうしたらいいでしょうか