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

Add libapache2-mod-php in Ubuntu 22.04 image #7077

Closed
3 of 11 tasks
arvindpdmn opened this issue Feb 9, 2023 · 2 comments
Closed
3 of 11 tasks

Add libapache2-mod-php in Ubuntu 22.04 image #7077

arvindpdmn opened this issue Feb 9, 2023 · 2 comments

Comments

@arvindpdmn
Copy link

Tool name

libapache2-mod-php

Tool license

Apache

Add or update?

  • Add
  • Update

Desired version

Compatible with default PHP installed in the image

Approximate size

No response

Brief description of tool

Ubuntu 22.04 image has Apache 2.4.52 installed and PHP 8.1.2 installed. However, Apache is unable to execute PHP scripts because libapache2-mod-php module is not installed. When I attempt to install this, lots of other packages are installed including PHP. This doesn't make sense since PHP is already installed. This installation takes about 2 minutes.

The following commands were used:

  sudo add-apt-repository ppa:ondrej/php
  sudo apt-get update
  sudo apt install php libapache2-mod-php8.1

This leads to:

The following additional packages will be installed:
  libapache2-mod-php8.2 php8.1-bcmath php8.1-bz2 php8.1-cgi php8.1-cli
  php8.1-common php8.1-curl php8.1-dba php8.1-dev php8.1-enchant php8.1-fpm
  php8.1-gd php8.1-gmp php8.1-imap php8.1-interbase php8.1-intl php8.1-ldap
  php8.1-mbstring php8.1-mysql php8.1-odbc php8.1-opcache php8.1-pgsql
  php8.1-phpdbg php8.1-pspell php8.1-readline php8.1-snmp php8.1-soap
  php8.1-sqlite3 php8.1-sybase php8.1-tidy php8.1-xml php8.1-zip php8.2
  php8.2-cli php8.2-common php8.2-opcache php8.2-readline
Suggested packages:
  dh-php
Recommended packages:
  pkg-php-tools
The following NEW packages will be installed:
  libapache2-mod-php8.1 libapache2-mod-php8.2 php php8.2 php8.2-cli
  php8.2-common php8.2-opcache php8.2-readline
The following packages will be upgraded:
  php8.1-bcmath php8.1-bz2 php8.1-cgi php8.1-cli php8.1-common php8.1-curl
  php8.1-dba php8.1-dev php8.1-enchant php8.1-fpm php8.1-gd php8.1-gmp
  php8.1-imap php8.1-interbase php8.1-intl php8.1-ldap php8.1-mbstring
  php8.1-mysql php8.1-odbc php8.1-opcache php8.1-pgsql php8.1-phpdbg
  php8.1-pspell php8.1-readline php8.1-snmp php8.1-soap php8.1-sqlite3
  php8.1-sybase php8.1-tidy php8.1-xml php8.1-zip
31 upgraded, 8 newly installed, 0 to remove and 50 not upgraded.
Need to get 17.0 MB of archives.
After this operation, 26.3 MB of additional disk space will be used.

URL for tool's homepage

https://packages.ubuntu.com/hu/jammy/ppc64el/libapache2-mod-php8.1

Provide a basic test case to validate the tool's functionality.

No response

Platforms where you need the tool

  • Azure DevOps
  • GitHub Actions

Runner images where you need the tool

  • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • Windows Server 2019
  • Windows Server 2022

Can this tool be installed during the build?

No response

Tool installation time in runtime

No response

Are you willing to submit a PR?

No response

@arvindpdmn arvindpdmn changed the title Update/Add libapache2-mod-php in Ubuntu 22.04 image Add libapache2-mod-php in Ubuntu 22.04 image Feb 9, 2023
@ddobranic
Copy link
Contributor

hello, @arvindpdmn! we have removed third party repo for PHP on Ubuntu 22.04, and recommend using setup-php action for any customers who want to use any other (non-installed) versions of PHP or want to get latest PHP faster.

@arvindpdmn
Copy link
Author

@ddobranic Thanks. I also found that using sudo add-apt-repository ppa:ondrej/apache2 is better than sudo add-apt-repository ppa:ondrej/php if I just want to install the php apache module.

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

No branches or pull requests

2 participants