Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

centos 7.x 환경 설치 오류 #107

Open
ghost opened this issue Nov 14, 2024 · 2 comments
Open

centos 7.x 환경 설치 오류 #107

ghost opened this issue Nov 14, 2024 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 14, 2024

아래와 같이 오류가 발생합니다.

대응 방법을 안내 부탁드립니다.

centos 7.x EOL 상태이지만, 현 회사 서버에 패키지 시스템이 centos 7.x 구성으로 되어 있어서요,,

REMI 저장소를 설치합니다.

Loaded plugins: fastestmirror, langpacks
Cannot open: http://rpms.remirepo.net/enterprise/remi-release-7.rpm. Skipping.
Error: Nothing to do
Loaded plugins: fastestmirror, langpacks

Error getting repository data for remi, repository not found
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 5.1 kB 00:00

  • epel: d2lzkl7pfhq30w.cloudfront.net
    base | 3.6 kB 00:00
    extras | 2.9 kB 00:00
    nginx | 2.9 kB 00:00
    update | 2.9 kB 00:00
    (1/5): epel/x86_64/filelists_db | 15 MB 00:02
    (2/5): epel/x86_64/prestodelta | 592 B 00:00
    (3/5): epel/x86_64/other_db | 4.1 MB 00:00
    (4/5): nginx/x86_64/other_db | 59 kB 00:01
    (5/5): nginx/x86_64/filelists_db | 121 kB 00:01
    Metadata Cache Created

PHP [82] 버전을 설치합니다.

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile

  • epel: repo.jing.rocks
    No package php82-php-cli available.
    No package php82-php-fpm available.
    No package php82-php-common available.
    No package php82-php-pdo available.
    No package php82-php-mysqlnd available.
    No package php82-php-mbstring available.
    No package php82-php-mcrypt available.
    No package php82-php-opcache available.
    No package php82-php-xml available.
    No package php82-php-pecl-imagick available.
    No package php82-php-gd available.
    No package php82-php-fileinfo available.
    No package php82-php-pecl-zip available.
    No package php82-php-bcmath available.
    Error: Nothing to do

Notice) PHP 권장 설정이 추가되었습니다.
설정 파일 경로) /etc/opt/remi/php82/php.d/z-php79.ini

/root/stack/php/80/z-php79.ini' -> /etc/opt/remi/php82/php.d/'
cp: cannot create regular file /etc/opt/remi/php82/php.d/': 그런 파일이나 디렉터리가 없습니다 sed: /etc/opt/remi/php82/php.d/z-php79.ini (을)를 읽을 수 없음: 그런 파일이나 디렉터리가 없습니다 sed: /etc/opt/remi/php82/php-fpm.d/www.conf (을)를 읽을 수 없음: 그런 파일이나 디렉터리가 없습니다 sed: /etc/opt/remi/php82/php-fpm.d/www.conf (을)를 읽을 수 없음: 그런 파일이나 디렉터리가 없습니다 sed: /etc/opt/remi/php82/php-fpm.d/www.conf (을)를 읽을 수 없음: 그런 파일이나 디렉터리가 없습니다 sed: /etc/opt/remi/php82/php-fpm.d/www.conf (을)를 읽을 수 없음: 그런 파일이나 디렉터리가 없습니다 chgrp: cannot access /var/opt/remi/php82/lib/php/*': 그런 파일이나 디렉터리가 없습니다
/var/opt/remi/php82/lib/php/*'의 그룹을 nobody로 바꾸는데 실패했습니다 chown: cannot access /var/opt/remi/php82/log/php-fpm': 그런 파일이나 디렉터리가 없습니다
failed to change ownership of /var/opt/remi/php82/log/php-fpm' to nobody Failed to execute operation: No such file or directory Failed to start php82-php-fpm.service: Unit not found. /root/stack/nginx/1-fastcgi-php82.conf' -> `/etc/nginx/conf.d/1-fastcgi-php82.conf'

PHP CLI (/usr/bin/php) 를 PHP 82 버전으로 설정합니다.

설정할 PHP 버전이 설치되지 않았습니다. /usr/bin/php82

Exiting installer. (설치를 중단합니다.)
다음 명령이 실패하여, 설치가 중단되었습니다. (exit code: 1)

scripts/php-cli-version-set.sh 82

@ibin79
Copy link
Contributor

ibin79 commented Nov 15, 2024

에러 원인은 서버에서 다음 URL 에 네트워크 이슈로 접근하지 못 하기 때문입니다.

Cannot open: http://rpms.remirepo.net/enterprise/remi-release-7.rpm

참고) 저희 서버에서 위 URL 정상 다운로드 됩니다.

wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm

--2024-11-15 13:55:11--  http://rpms.remirepo.net/enterprise/remi-release-7.rpm
Resolving rpms.remirepo.net (rpms.remirepo.net)... 109.238.14.107, 2a00:c70:1:109:238:14:107:1
Connecting to rpms.remirepo.net (rpms.remirepo.net)|109.238.14.107|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 28360 (28K) [application/x-rpm]
Saving to: ‘remi-release-7.rpm’

100%[===================================================================================================================================>] 28,360       113KB/s   in 0.2s   

2024-11-15 13:55:12 (113 KB/s) - ‘remi-release-7.rpm’ saved [28360/28360]

@dasfef
Copy link

dasfef commented Jan 5, 2025

특정 네트워크가 차단되는 것으로 판단됩니다
자사에서도 10년 된 서비스를 centos7.9 php5.6 으로 활용중에 있어 remirepo를 이용하려 했지만 회사 내 네트워크에선 접속 후 이용이 가능하고 자택에서는 이용 불가입니다
ISP는 자사와 자택 모두 KT 이용중에 있습니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants