본문 바로가기
IT

Nextcloud 몇 가지 에러 문제...

by Oh.mogilalia 2021. 7. 26.

보안 및 설치 경고
당신의 인스턴스의 보안과 성능을 위해서는 모든 것이 정확하게 설정되어야 합니다. 그러기 위해서 자동적으로 몇 가지를 확인하겠습니다. 더 자세한 정보를 위해서 링크된 문서를 참고하세요.

설정을 살펴본 결과 몇 가지 경고할 것이 있습니다.
PHP에서 시스템 환경 변수를 올바르게 조회할 수 없는 것 같습니다. getenv("PATH") 시험 결과 빈 값이 반환되었습니다. Please check the installation documentation ↗ for PHP configuration notes and the PHP configuration of your server, especially when using php-fpm.
----------------------------------- 아래 문제는...
Your web server is not properly set up to resolve "/.well-known/webfinger". Further information can be found in the documentation ↗.
Your web server is not properly set up to resolve "/.well-known/nodeinfo". Further information can be found in the documentation ↗.
---------------------------------

To be more precise, I have added the following lines to my nginx config file:
------------------------------------------------------
    location = /.well-known/webfinger {
            rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
    }

    location = /.well-known/nodeinfo {
            rewrite ^/.well-known/nodeinfo /public.php?service=nodeinfo last;
    }
-------------------------------------------
위의 내용을 /etc/nginx/conf.d/nextcloud.conf 에 삽입해도 sudo nginx -t 테스트 통과했지만 에러 메시지는 동일

------------------------------------------------- 요거는 전화번호 관련 머시기 같아 무시
Your installation has no default phone region set. This is required to validate phone numbers in the profile settings without a country code. To allow numbers without a country code, please add "default_phone_region" with the respective ISO 3166-1 code ↗ of the region to your config file.

---------------------아래 캐쉬메모리 관련 에러는 Configure Redis Cache for NextCloud 해결

No memory cache has been configured. To enhance performance, please configure a memcache, if available. Further information can be found in the documentation ↗.
설치 가이드 ↗를 다시 한 번 확인한 다음 로그의 경고나 에러를 확인하세요.
sudo apt install redis-server

You can check the version with:

redis-server -v

Sample output:

Redis server v=5.0.7 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=636cde3b5c7a3923

Now we can check if redis server is running.

systemctl status redis

Hint: If the above command didn’t quit immediately, you can press the Q key to gain back control of the terminal.

From the above screenshot, we can see that it’s running and auto-start is enabled. If for any reason it’s not running, execute the following command:

sudo systemctl start redis-server

And if auto-start at boot time is not enabled, you can use the following command to enable it:

sudo systemctl enable redis-server

In order to configure Redis as a cache for nextCloud, we need to install the PHP extension for interfacing with Redis.

sudo apt install php-redis

Check if the extension is enabled.

php --ri redis

We can see that Redis extension is enabled. If it’s not enabled, run the following command:

sudo phpenmod redis

Next, edit nextCloud configuration file.

sudo nano /usr/share/nginx/nextcloud/config/config.php

Add the following lines above the ending ); line.

'memcache.distributed' => '\OC\Memcache\Redis', 'memcache.local' => '\OC\Memcache\Redis', 'memcache.locking' => '\OC\Memcache\Redis', 'redis' => array( 'host' => 'localhost', 'port' => 6379, ),

Save and close the file. Then restart Nginx and PHP-FPM.

sudo systemctl restart nginx php7.4-fpm

우리의 보안 검사 ↗에서 당신의 Nextcloud의 보안을 점검하세요.

'IT' 카테고리의 다른 글

Zip  (0) 2021.07.26
wordpress ssl  (0) 2021.07.26
Phpmyadmin 설치  (0) 2021.07.26
Ubuntu Server 20.04 Nginx+MariaDB+Php 설치 완료  (0) 2021.07.25
ubuntu hdd mount  (0) 2021.07.25