• DiscussionGeneral
  • How to install php extensions which are not listed in the aapanel dashboard?

@aaPanel_Jose @aaPanel_Fan

In ubuntu server, ,
php will usually be installed in deafult location /etc/php
but, aapanel installed php in a custom location /www/server/php

I need to install and enable additional php extensions inorder to run magento website and other full stack php applications.
can anyone explain how it can be done?
Since there is a confusion in the php installed path, I'm not sure whether I can simply run the apt-get install commands to install that extensions and enable them using phpenmod command

PS
Im aware that I can install php extensions in AApanel dashboard itself by navigating to
"App Store / php 7.1 manage poup window / install extensions"
But, whole entire list of php extensions are not available there. There are only few number of extensions listed there.

For example, most of the extensions listed below are not available in the php manage popup
php-bcmath curl php-gd php-imagick php-intl php-xml php-soap php-xsl php-zip php-mbstring openssl

4 months later

For me, all I did was modify the PHP "Configuration File" at line 310 and temporarily removed "putenv" and "popen" as disabled functions.

I then ran "sudo pecl install zip"

And everything appears to be functioning properly for me.

Hope that helps!

    6 months later
    a month later

    aaPanel_Jose

    Tried to complie the zip from src but got error at at ./configure

    configure: error: Cannot find php-config. Please use --with-php-config=PATH

    Where is the php-config with aapanel?

    Thanks,

      2 years later

      Can you please compile the following php extensions?
      ● BCMath PHP Extension
      ● Ctype PHP Extension
      ● JSON PHP Extension
      ● Mbstring PHP Extension
      ● OpenSSL PHP Extension
      ● PDO PHP Extension
      ● Tokenizer PHP Extension
      ● XML PHP Extension
      ● ZipArchive Extension
      ● Fileinfo Extension
      ● GD Extension

      They are mostly used

        texthamad
        Hello, you can check whether your php has installed related extensions in the app store. If you don't have it, you can go to the "Install extensions" interface to install it. If you don't have it, you need to install it yourself.

        9 months later

        i desperatly need to install these on my panel.

        can anyone give me any easy way of doing this without breaking my whole install pls 🙂

        BCMath PHP Extension
        Ctype PHP Extension
        Fileinfo PHP extension
        JSON PHP Extension
        Mbstring PHP Extension
        OpenSSL PHP Extension
        PDO PHP Extension
        Tokenizer PHP Extension
        XML PHP Extension

        any help appreciated

        can anyone help me install these pls

        BCMath PHP Extension
        Ctype PHP Extension
        Fileinfo PHP extension
        JSON PHP Extension
        Mbstring PHP Extension
        OpenSSL PHP Extension
        PDO PHP Extension
        Tokenizer PHP Extension
        XML PHP Extension

        i need them but i dont want to risk breaking the whole panel 🙂they dont show up in php extensions.so i guess they have to be done manualy?my concern is how to make ure that i am install them for the correct version of php running on the panel,i have multiple versions of php on panel.any help appreciated.

        thank you.

          aaP_rupertm2013
          Hello, you can install the extension in the corresponding php version, if the panel is not provided, you can install it manually
          At the same time, you can use view phpinfo() in phpinfo to check whether related extensions are built in

          Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com