12/27/2023 0 Comments Ubuntu phpmyadmin alternative![]() Apache: sudo a2dismod php* sudo a2enmod php7.4 sudo systemctl restart apache2.The following set of commands will change the default PHP to 7.4 for the Apache web server and command line interface. Similarly, if you need to configure PHP 7.4 as the default version in your system. ![]() If you want a different version (eg: PHP 8.1 or PHP 8.0) to be configured as default, just replace 8.2 with the required version. This is more useful for compiling PHP modules using pecl. Note: The phpize8.2 and php-config8.2 command is available in php8.2-dev package. Command line interface: sudo update-alternatives -set php /usr/bin/php8.2 sudo update-alternatives -set phar /usr/bin/phar8.2 sudo update-alternatives -set phar.phar /usr/bin/phar.phar8.2 sudo update-alternatives -set phpize /usr/bin/phpize8.2 sudo update-alternatives -set php-config /usr/bin/php-config8.2.Apache: sudo a2dismod php* sudo a2enmod php8.2 sudo systemctl restart apache2.Then the next commands will set PHP 8.2 as the default version for the command line interface (CLI). The following commands will deactivate the already activated Apache module and then activate PHP 8.2 Apache module. You may like: How To Install PHP (8.1, 7.4) on Ubuntu 22.04īefore switching to PHP 8.2, you have to deactivate the previously activated Apache module.This can be achieved with a few sets of commands. This tutorial will help you to change the default PHP version for CLI and Apache webserver. Only one PHP version can be set as default at any time. Maybe you have any other PHP versions installed on your system. Currently, PHP 7.4 is the default version set for Apache and the command line interface (CLI). So, open your web browser and visit, and in case you are installing phpMyAdmin on a local machine, then visit your system, if you have installed multiple versions of PHP like PHP 8.2, PHP 7.4 and PHP 5.6. But I am also rectifying all the possible errors, during installation or after the installation. However, you could face some possible errors. Processing triggers for php7.4-cli (7.4.3-4ubuntu2.4) Login to phpMyAdminĪfter installing phpMyAdmin successfully, you have to log in phpMyAdmin dashboard. Processing triggers for libapache2-mod-php7.4 (7.4.3-4ubuntu2.4). Processing triggers for libc-bin (2.31-0ubuntu9.2). Processing triggers for man-db (2.9.1-1). Verifying database phpmyadmin exists: success.ĭbconfig-common: flushing administrative password Granting access to database phpmyadmin for success. Success phpMyAdmin installation: Creating config file /etc/phpmyadmin/config-db.php with new versionĬhecking privileges on database phpmyadmin for user creation needed. If you have not installed these packages in the system, you can follow the LAMP stack installation method or execute the following command to install this pre-requisite software. Steps of Installing phpMyAdmin on UbuntuĪs I have already mentioned, you must install an Apache web server, MySQL or MariaDB database, and PHP. Although, if you are thinking to create a web project based on PHP language, then you should also install the latest version of PHP, which is PHP 8.0. PHP 7.4.x or above (for best performance)Īpache2 web server is required to make HTTP protocol, so we can access phpMyAdmin using a web browser, and you also need pre-installed MySQL or MariaDB database to manage other databases or create a new one.However, you can download the package without the required elements, but you cannot configure it without them. Pre-requisites for Installing phpMyAdmin on Ubuntuīefore installing phpMyAdmin on Ubuntu or Debian system, you must make sure that some required components are installed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |