installing PHP on Xubuntu after apache installation

dotKer

Member
Credits
0
I am new in linux and installed xubuntu a week ago and installed apache on the xubuntu some days ago.
Now I like to install PHP

(Q) Where should I download the PHP installation file which can install PHP on the xubuntu after apache installation?
 


alkion

Member
Credits
27
Ubuntu 18.04 PHP7.2
apt package manager or programs, apt or apt-get
What are repositories?
Read about the basic linux commands: installing, removing, copying, moving ...

Code:
apt-cache policy php
Code:
apt-cache pkgnames | grep php
Code:
apt install php -y
apt install php-{bcmath,bz2,intl,gd,mbstring,mysql,zip,fpm} -y
Code:
systemctl restart apache2.service
Code:
systemctl restart nginx.service
Code:
php -v
Code:
PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
The main config file of PHP 7.2 will be saved as /etc/php/7.2/fpm/php.ini. You can use the vi text editor to modify relevant settings in that file:
Code:
vi /etc/php/7.2/fpm/php.ini
 
Last edited:


Members online


Top