カテゴリー: ubuntu

  • No memory cache has been configured.

    No memory cache has been configured. To enhance performance, please configure a memcache, if available. For more details see the documentation.

    メモリキャッシュが利用できていないとのお達し

    メモリキャッシュが設定できていないと言うので

    config/config.phpに下記を追加
    ‘memcache.local’ => ‘\OC\Memcache\APCu’,

    $ sudo systemctl restart php8.2-fpm
  • The PHP OPcache module is not properly configured.

    nextcloudエラーつぶし2

    The PHP OPcache module is not properly configured. The OPcache buffer is nearly full. To assure that all scripts can be hold in cache, it is recommended to apply “opcache.memory_consumption” to your PHP configuration with a value higher than “128”.. For more details see the documentation.

    opcache.memory_consumptionを128以上にしろというので、php.iniの中のopcache.memory_consumptionを256にする。php8.2-fpmを再起動

    $ sudo systemctl restart php8.2-fpm
  • Server has no maintenance window start time configured.

    nextcloudをインストール後、エラーが出るので一つずつ潰していく

    Server has no maintenance window start time configured. This means resource intensive daily background jobs will also be executed during your main usage time. We recommend to set it to a time of low usage, so users are less impacted by the load caused from these heavy tasks. For more details see the documentation.

    サーバーにメンテナンスウィンドウの開始時間が設定されていないと言っています。公式ドキュメント該当箇所をみると・・・

    nextcloud内のconfig.php内の値に’maintenance_window_start’ => 1,を追加するか、occモードでセットするように言っているので、言われるがままやる

    $ sudo -u www-data php occ config:system:set maintenance_window_start --type=integer --value=1
  • ubuntuサーバ

    ずっと、さくらVPSでnextcloudを仲間と使ってきたけれど、CentOS7のサポートも切れるしubuntuで再構築することにした。

    最初はnginxを使いたかったんだけど、さくらVPSで無料で使えるWAF(siteguard-server-edition)をインストールしようとしたら、nginxをソースビルドしろと書いてあり、何だかゴチャゴチャやったけどあまり思うように行かなかったため、apacheにしてnextcloudを入れた。

    1. さくらvps、ubuntuインストール
    2. apache2をインストール
    3. mariaDBをインストール
    4. php8.2をインストール
    5. php8.2-fpmをインストール
    6. nextcloudをインストール
    7. redisをインストール