4/9/2023 0 Comments Phpmyadmin ubuntu setup![]() Then sudo ln -sfn /usr/bin/php5.6 /etc/alternatives/php Type the below command in terminal and press enter key sudo a2dismod php7.0 sudo a2enmod php5.6 sudo service apache2 restart You can switch the PHP version easily with the below code.Įxample: To switch from php7.0 to php5.6: Even you can install multiple PHP versions on a single Ubuntu system. ![]() Note: Replace version 5.6 with the required PHP version to install on Ubuntu. sudo apt-get install php5.6-mysql php-gettext php5.6-mbstring php-xdebug libapache2-mod-php5.6 php5.6-cgi php5.6-cli php5.6-curl php5.6-gd php5.6-intl php-imagick php5.6-imap php5.6-mcrypt php-memcache php5.6-pspell php5.6-recode php5.6-sqlite3 php5.6-tidy php5.6-xmlrpc php5.6-xsl php-xcache php5.6-fpm If you want to install some other php extensions use the below code to install them. Install PHP 5.6 on Ubuntu Linux sudo apt install php5.6 sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php sudo apt update In the terminal add below PPA and install any Php Version. For that you need to add ondrej php PPA in your system. You can also install other versions of PHP on your system. Install php 5.6 and PHP 8 in the same system: If you need any specific version of PHP then follow below step also. Note: Now go to the Step 3 directly if you don’t need any other version of PHP. You can also check the installed PHP version using this command. If you will see the below page, then your PHP works fine. Now open your favorite we browser and go to the below address. Type below code in the phpinfo.php file, save and exit it. sudo gedit /var/It will open the phpinfo.php file in gedit test editor. To test PHP is installed, Type below command and hit the enter key. use the below code to restart sudo systemctl restart apache2 Test PHP installation: ![]() sudo apt install libapache2-mod-php -yĪfter the successful installation restart Apache server using the below command. It will install the latest version of PHP on your system. ![]() Open the terminal app using the ctrl+alt+t keys or via the show application menu and run below command. If you will see ‘It works!’ in the Apache2 Ubuntu Default Page, then your Apache server works fine. It needed type y and hit enter to confirm apache installation during installation sudo apt install apache2Īfter the successful installation of Apache, open your favorite web browser and type the below address and hit the enter key. It will install the latest version of Apache Server on your Ubuntu Linux system. Open the terminal command-line app (ctrl+alt+t) and run below Apache Server installation command. Step 1: Install Apache HTTP Server on Ubuntu Linux Linux mint: How to install and configure Apache, PHP, MySql and phpMyadmin on Linux Mint Windows : How to install and configure Apache,PHP,MySql and phpMyadmin on windows Note: Tested with Ubuntu 22.10 Kinetic Kudu ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |