インストールで困ってます。
2022年3月9日 19時25分 [jsuzuki]お世話になっています。
ちょっとサーバにトラブルがあり、ConnectーCMSを再インストールしています。
ところが、エラーがあり先に進みません。
ご指導お願いできませんでしょうか。
環境は自宅サーバでCentOS7+PHP7+Mysql8です。
以前インストールしたときに成功している、さくらのインターネットにインストールする方法でやっています。
[root@localhost public]# git clone https://github.com/opensource-workshop/connect-cms.git
Cloning into 'connect-cms'...
remote: Enumerating objects: 45102, done.
remote: Counting objects: 100% (5854/5854), done.
remote: Compressing objects: 100% (2127/2127), done.
remote: Total 45102 (delta 4140), reused 5055 (delta 3507), pack-reused 39248
Receiving objects: 100% (45102/45102), 86.65 MiB | 3.48 MiB/s, done.
Resolving deltas: 100% (33800/33800), done.
[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が見つからなくて先に進まないのだと思うのですが、どうしたらいいでしょうか