생활코딩

Coding Everybody

코스 전체목록

닫기

댓글

댓글 본문
  1. HyunseoLee
    good 20210817
  2. zeronlee
    완료!!
  3. 제이치
    수강 완료!
  4. Kuho Choi
    감사합니다.
  5. Woori
    잘보았습니다
  6. 박헌남
    aws사이트에서 제시 해주던대로 복붙(php composer.phar require aws/aws-sdk-php)했는데 아래 글처럼 표시가되어 설치가 안됩니다. 무엇이 문제인가요?

    Your requirements could not be resolved to an installable set of packages.

    Problem 1
    - aws/aws-sdk-php 3.67.9 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.8 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.7 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.6 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.5 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.4 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.3 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.20 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.2 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.19 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.18 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.17 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.16 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.15 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.14 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.13 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.12 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.11 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.10 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.1 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - aws/aws-sdk-php 3.67.0 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
    - Installation request for aws/aws-sdk-php ^3.67 -> satisfiable by aws/aws-sdk-php[3.67.0, 3.67.1, 3.67.10, 3.67.11, 3.67.12, 3.67.13, 3.67.14, 3.67.15, 3.67.16, 3.67.17, 3.67.18, 3.67.19, 3.67.2, 3.67.20, 3.67.3, 3.67.4, 3.67.5, 3.67.6, 3.67.7, 3.67.8, 3.67.9].

    To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/7.0/cli/php.ini
    - /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
    - /etc/php/7.0/cli/conf.d/10-opcache.ini
    - /etc/php/7.0/cli/conf.d/10-pdo.ini
    - /etc/php/7.0/cli/conf.d/20-calendar.ini
    - /etc/php/7.0/cli/conf.d/20-ctype.ini
    - /etc/php/7.0/cli/conf.d/20-exif.ini
    - /etc/php/7.0/cli/conf.d/20-fileinfo.ini
    - /etc/php/7.0/cli/conf.d/20-ftp.ini
    - /etc/php/7.0/cli/conf.d/20-gettext.ini
    - /etc/php/7.0/cli/conf.d/20-iconv.ini
    - /etc/php/7.0/cli/conf.d/20-json.ini
    - /etc/php/7.0/cli/conf.d/20-mysqli.ini
    - /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
    - /etc/php/7.0/cli/conf.d/20-phar.ini
    - /etc/php/7.0/cli/conf.d/20-posix.ini
    - /etc/php/7.0/cli/conf.d/20-readline.ini
    - /etc/php/7.0/cli/conf.d/20-shmop.ini
    - /etc/php/7.0/cli/conf.d/20-sockets.ini
    - /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
    - /etc/php/7.0/cli/conf.d/20-sysvsem.ini
    - /etc/php/7.0/cli/conf.d/20-sysvshm.ini
    - /etc/php/7.0/cli/conf.d/20-tokenizer.ini
    You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

    Installation failed, deleting ./composer.json.
  7. 김성환
    sudo apt-get install php-xml

    php-xml 설치하시면

    저는 아래 오류가 해결되었습니다.
    대화보기
    • CHAE
      PHP7.0 버전을 설치했습니다.
      php composer.phar require aws/aws-sdk-php
      실행 시키면
      Installation failed, deleting ./composer.json.
      이렇게 오류가 뜹니다 ㅠㅠ
    • 김예슬
      확장자가 html인 경우
      httpd.conf 에서
      AddType application/x-httpd-php 를 찾습니다. 그리고

      AddType application/x-httpd-php .php4 .php .phtml .ph .inc .html .htm 이렇게 추가해서 바꿔주세요.

      근데 php파일 자체가 아예 안읽히는거면 AddType 자체가 지정되어 있지 않을수도..
      그러면 그냥 저거 다 추가해주세면 돼요.

      확장자가 php인데도 php코딩시 그대로 나오는 경우
      php.ini설정 때문인데
      php.ini설정을 보면 short_open_tag = Off 이란 옵션이 있어요
      이 설정을 short_open_tag = On 으로 바꿔주면 돼여

      short_open_tag = On : <? 태그 사용가능
      short_open_tag = Off : <? 태그 사용불가능 <?php ?> 으로 해야 함.

      3개월전 질문인데 해결하셨으려나

      이렇게 설정하시고 아파치 재시작 꼭 해주시구요
      대화보기
      • 이창준
        하나 여쭤봐도 될련지 왜 저는 php 코드를 작성을 하면은
        <?php
        phpinfo();
        ?>

        이런식으로 코드를 해석하지 못하게 되는 데 이유가 무엇일까요?
      • 환음
        Esc -> : -> q -> 엔터하면 그냥 종료되고 밖으로 나갑니다.
        Esc -> : -> wq -> 엔터하면 저장하고 밖으로 나갑니다.
        대화보기
        • tuna3636
          다 쓰셨으면 esc 키 누르시구요
          :q! 저장안하고 종료
          :wq 저장하고 종료
          :wq! 강제저장하고 종료
          쓰시고 엔터 누르시면 됩니다
          대화보기
          • 구녹수수
            <?php
            require 'vendor/autoload.php';

            이것을 작성하고 어떻게 나가나요...? 계속 그 입력하는곳에 머물러있는데...
          • 김연기
            고맙습니다. ~~
          버전 관리
          egoing
          현재 버전
          선택 버전
          graphittie 자세히 보기