How to install PHP IMAP extension on Elastic Beanstalk Using .ebextensions?

0

Hi,

I'm going crazy trying to install PHP IMAP on AMAZON LINUX 2.

I'm using PHP 8.1.25

If you look for it on the Internet, you will find a similar question on stackoverflow and if you check the accepted answer, you will see:

Create two files inside .ebextensions as follow:

installdependencies.config, install php common if it is required

commands:
  01_install_phpcommon:
    command:
      sudo yum -y install php70-common

phpini.config, install php imap and enable imap

commands:
  02_install_phpimap:
    command:
      sudo yum -y install php70-imap

files:
  "/etc/php.d/zzzphp.ini":
    mode: "644"
    content: |
      extension=imap.so

Of course, I changed php70 to php81 in all the cases.

However, if I log into my sv and run:

cat /var/log/eb-engine.log

I can see the following error message:

2023/12/04 10:09:52.484504 [INFO] Executing cleanup logic
2023/12/04 10:09:52.484598 [INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Engine execution has encountered an error.","returncode":1,"events":[{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1701684592484,"severity":"ERROR"}]}]}
carlos
질문됨 5달 전142회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠