dacker

نصب PHP روی Ubuntu 22.04 (jammy)

PHP نسخهٔ 8.4.26 را روی Ubuntu 22.04 از مخزن داخلی dacker نصب کنید؛ بدون خطای ۴۰۳ و با سرعت داخلی. دستور زیر کامل است: کلید امضا، مخزن، نصب، راه‌اندازی و بررسی.

  • نسخه: 8.4.26
  • حجم مخزن: 35.3 MB
  • مدیر بسته: apt
  • آخرین تغییر:
  • مجوز: PHP-3.01

دستور نصب PHP روی Ubuntu 22.04

نسخه

مرورگر شما انتخاب بدون JavaScript را پشتیبانی نمی‌کند؛ دستورهای همهٔ نسخه‌ها زیر هم آمده‌اند.

PHP 8.58.5.11

  • Ubuntu 22.04
  • 35.3 MB
  • امضا و بررسی‌شده
bash · Ubuntu 22.04
  1. ۱کلید امضای dacker
    # 1) Add the dacker signing keysudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpg
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-php.list -o /etc/apt/sources.list.d/dacker-php.list
  3. ۳نصب
    # 3) Installsudo apt updatesudo apt install php8.5-fpm php8.5-cli
  4. ۴راه‌اندازی سرویس
    # 4) Enable and start the servicesudo systemctl enable --now php8.5-fpm
  5. ۵بررسی نصب
    # 5) Check the installationphp8.5 --version

PHP 8.48.4.26

  • Ubuntu 22.04
  • 35.3 MB
  • امضا و بررسی‌شده
bash · Ubuntu 22.04
  1. ۱کلید امضای dacker
    # 1) Add the dacker signing keysudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpg
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-php.list -o /etc/apt/sources.list.d/dacker-php.list
  3. ۳نصب
    # 3) Installsudo apt updatesudo apt install php8.4-fpm php8.4-cli
  4. ۴راه‌اندازی سرویس
    # 4) Enable and start the servicesudo systemctl enable --now php8.4-fpm
  5. ۵بررسی نصب
    # 5) Check the installationphp8.4 --version

PHP 8.38.3.35

  • Ubuntu 22.04
  • 35.3 MB
  • امضا و بررسی‌شده
bash · Ubuntu 22.04
  1. ۱کلید امضای dacker
    # 1) Add the dacker signing keysudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpg
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-php.list -o /etc/apt/sources.list.d/dacker-php.list
  3. ۳نصب
    # 3) Installsudo apt updatesudo apt install php8.3-fpm php8.3-cli
  4. ۴راه‌اندازی سرویس
    # 4) Enable and start the servicesudo systemctl enable --now php8.3-fpm
  5. ۵بررسی نصب
    # 5) Check the installationphp8.3 --version

PHP 8.28.2.34

  • Ubuntu 22.04
  • 35.3 MB
  • امضا و بررسی‌شده
bash · Ubuntu 22.04
  1. ۱کلید امضای dacker
    # 1) Add the dacker signing keysudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpg
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-php.list -o /etc/apt/sources.list.d/dacker-php.list
  3. ۳نصب
    # 3) Installsudo apt updatesudo apt install php8.2-fpm php8.2-cli
  4. ۴راه‌اندازی سرویس
    # 4) Enable and start the servicesudo systemctl enable --now php8.2-fpm
  5. ۵بررسی نصب
    # 5) Check the installationphp8.2 --version

PHP 8.18.1.34

  • Ubuntu 22.04
  • 35.3 MB
  • امضا و بررسی‌شده
bash · Ubuntu 22.04
  1. ۱کلید امضای dacker
    # 1) Add the dacker signing keysudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpg
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-php.list -o /etc/apt/sources.list.d/dacker-php.list
  3. ۳نصب
    # 3) Installsudo apt updatesudo apt install php8.1-fpm php8.1-cli
  4. ۴راه‌اندازی سرویس
    # 4) Enable and start the servicesudo systemctl enable --now php8.1-fpm
  5. ۵بررسی نصب
    # 5) Check the installationphp8.1 --version

نسخهٔ بسته‌های PHP روی Ubuntu 22.04

همهٔ بسته‌های مخزن php برای این توزیع، مستقیم از manifest مخزن. نام بسته‌ها را برای apt install می‌توانید استفاده کنید.

بستهنسخه
php8.1-fpm8.1.34-8+ubuntu22.04.1+deb.sury.org+1
php8.1-cli8.1.34-8+ubuntu22.04.1+deb.sury.org+1
php8.1-mysql8.1.34-8+ubuntu22.04.1+deb.sury.org+1
php8.1-pgsql8.1.34-8+ubuntu22.04.1+deb.sury.org+1
php8.1-curl8.1.34-8+ubuntu22.04.1+deb.sury.org+1
php8.1-mbstring8.1.34-8+ubuntu22.04.1+deb.sury.org+1
php8.1-xml8.1.34-8+ubuntu22.04.1+deb.sury.org+1
php8.1-zip8.1.34-8+ubuntu22.04.1+deb.sury.org+1
php8.1-gd8.1.34-8+ubuntu22.04.1+deb.sury.org+1
php8.1-intl8.1.34-8+ubuntu22.04.1+deb.sury.org+1
php8.1-bcmath8.1.34-8+ubuntu22.04.1+deb.sury.org+1
php8.1-soap8.1.34-8+ubuntu22.04.1+deb.sury.org+1
php8.1-redis6.3.0-2+ubuntu22.04.1+deb.sury.org+1
php8.1-opcache8.1.34-8+ubuntu22.04.1+deb.sury.org+1
php8.2-fpm8.2.34-1+ubuntu22.04.1+deb.sury.org+1
php8.2-cli8.2.34-1+ubuntu22.04.1+deb.sury.org+1
php8.2-mysql8.2.34-1+ubuntu22.04.1+deb.sury.org+1
php8.2-pgsql8.2.34-1+ubuntu22.04.1+deb.sury.org+1
php8.2-curl8.2.34-1+ubuntu22.04.1+deb.sury.org+1
php8.2-mbstring8.2.34-1+ubuntu22.04.1+deb.sury.org+1
php8.2-xml8.2.34-1+ubuntu22.04.1+deb.sury.org+1
php8.2-zip8.2.34-1+ubuntu22.04.1+deb.sury.org+1
php8.2-gd8.2.34-1+ubuntu22.04.1+deb.sury.org+1
php8.2-intl8.2.34-1+ubuntu22.04.1+deb.sury.org+1
php8.2-bcmath8.2.34-1+ubuntu22.04.1+deb.sury.org+1
php8.2-soap8.2.34-1+ubuntu22.04.1+deb.sury.org+1
php8.2-redis6.3.0-2+ubuntu22.04.1+deb.sury.org+1
php8.2-opcache8.2.34-1+ubuntu22.04.1+deb.sury.org+1
php8.3-fpm8.3.35-1+ubuntu22.04.1+deb.sury.org+1
php8.3-cli8.3.35-1+ubuntu22.04.1+deb.sury.org+1
php8.3-mysql8.3.35-1+ubuntu22.04.1+deb.sury.org+1
php8.3-pgsql8.3.35-1+ubuntu22.04.1+deb.sury.org+1
php8.3-curl8.3.35-1+ubuntu22.04.1+deb.sury.org+1
php8.3-mbstring8.3.35-1+ubuntu22.04.1+deb.sury.org+1
php8.3-xml8.3.35-1+ubuntu22.04.1+deb.sury.org+1
php8.3-zip8.3.35-1+ubuntu22.04.1+deb.sury.org+1
php8.3-gd8.3.35-1+ubuntu22.04.1+deb.sury.org+1
php8.3-intl8.3.35-1+ubuntu22.04.1+deb.sury.org+1
php8.3-bcmath8.3.35-1+ubuntu22.04.1+deb.sury.org+1
php8.3-soap8.3.35-1+ubuntu22.04.1+deb.sury.org+1
php8.3-redis6.3.0-2+ubuntu22.04.1+deb.sury.org+1
php8.3-opcache8.3.35-1+ubuntu22.04.1+deb.sury.org+1
php8.4-fpm8.4.26-1+ubuntu22.04.1+deb.sury.org+1
php8.4-cli8.4.26-1+ubuntu22.04.1+deb.sury.org+1
php8.4-mysql8.4.26-1+ubuntu22.04.1+deb.sury.org+1
php8.4-pgsql8.4.26-1+ubuntu22.04.1+deb.sury.org+1
php8.4-curl8.4.26-1+ubuntu22.04.1+deb.sury.org+1
php8.4-mbstring8.4.26-1+ubuntu22.04.1+deb.sury.org+1
php8.4-xml8.4.26-1+ubuntu22.04.1+deb.sury.org+1
php8.4-zip8.4.26-1+ubuntu22.04.1+deb.sury.org+1
php8.4-gd8.4.26-1+ubuntu22.04.1+deb.sury.org+1
php8.4-intl8.4.26-1+ubuntu22.04.1+deb.sury.org+1
php8.4-bcmath8.4.26-1+ubuntu22.04.1+deb.sury.org+1
php8.4-soap8.4.26-1+ubuntu22.04.1+deb.sury.org+1
php8.4-redis6.3.0-2+ubuntu22.04.1+deb.sury.org+1
php8.4-opcache8.4.26-1+ubuntu22.04.1+deb.sury.org+1
php8.5-fpm8.5.11-1+ubuntu22.04.1+deb.sury.org+1
php8.5-cli8.5.11-1+ubuntu22.04.1+deb.sury.org+1
php8.5-mysql8.5.11-1+ubuntu22.04.1+deb.sury.org+1
php8.5-pgsql8.5.11-1+ubuntu22.04.1+deb.sury.org+1
php8.5-curl8.5.11-1+ubuntu22.04.1+deb.sury.org+1
php8.5-mbstring8.5.11-1+ubuntu22.04.1+deb.sury.org+1
php8.5-xml8.5.11-1+ubuntu22.04.1+deb.sury.org+1
php8.5-zip8.5.11-1+ubuntu22.04.1+deb.sury.org+1
php8.5-gd8.5.11-1+ubuntu22.04.1+deb.sury.org+1
php8.5-intl8.5.11-1+ubuntu22.04.1+deb.sury.org+1
php8.5-bcmath8.5.11-1+ubuntu22.04.1+deb.sury.org+1
php8.5-soap8.5.11-1+ubuntu22.04.1+deb.sury.org+1
php8.5-redis6.3.0-2+ubuntu22.04.1+deb.sury.org+1

وابستگی‌هایی که همراهشان از همین مخزن نصب می‌شوند: libgd3، libpcre2-8-0، libxml2، php-common، php8.1-common، php8.1-igbinary، php8.1-readline، php8.2-common، php8.2-igbinary، php8.2-readline، php8.3-common، php8.3-igbinary، php8.3-readline، php8.4-common، php8.4-igbinary، php8.4-readline، php8.5-common، php8.5-igbinary، php8.5-readline

خطاهای رایج نصب PHP روی Ubuntu 22.04

خطای NO_PUBKEY یا «is not signed» در apt update

output
W: GPG error: https://repo.dacker.ir/apt/php jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1363921AA23CD7DBE: The repository 'https://repo.dacker.ir/apt/php jammy InRelease' is not signed.

کلید امضای dacker روی سرور نیست یا فایل آن خراب است. مرحلهٔ ۱ بلوک بالا را دوباره اجرا کنید و بعد apt update را تکرار کنید.

bash · Ubuntu 22.04
sudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpgsudo apt update

بررسی اثر انگشت کلید ←

«Unable to locate package php8.4-fpm»

output
E: Unable to locate package php8.4-fpm

یا فایل مخزن (مرحلهٔ ۲) اضافه نشده، یا بعد از آن apt update اجرا نشده. با دستور زیر ببینید apt بسته را از repo.dacker.ir می‌شناسد یا نه؛ اگر خروجی خالی بود، مرحله‌های ۲ و ۳ را تکرار کنید.

bash · Ubuntu 22.04
apt-cache policy php8.4-fpm

مرتبط

روی توزیع دیگری هستید؟

معمولاً کنار PHP روی Ubuntu 22.04 نصب می‌شوند:

همهٔ نسخه‌ها و توزیع‌های PHP ← · همهٔ محصولات برای Ubuntu 22.04 ←