Welcome Guest, Not a member yet? Register   Sign In
creating a registration system with CI4, and why is CI "better"?
#9

(10-26-2020, 06:38 AM)zoldos Wrote: I get this with php -v in console:

Code:
PHP 7.0.33-0ubuntu0.16.04.7 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with the ionCube PHP Loader + ionCube24 v10.4.0, Copyright (c) 2002-2020, by ionCube Ltd.
    with Zend OPcache v7.0.33-0ubuntu0.16.04.7, Copyright (c) 1999-2017, by Zend Technologies

I tried the apt-get install and got:

Code:
condor1310:/usr/bin# sudo apt-get install php7.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.3
E: Couldn't find any package by glob 'php7.3'
E: Couldn't find any package by regex 'php7.3'
condor1310:/usr/bin# sudo apt-get install php7.3.22-intl
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.3.22-intl
E: Couldn't find any package by glob 'php7.3.22-intl'
E: Couldn't find any package by regex 'php7.3.22-intl'
condor1310:/usr/bin# apt-get install php7.3-intl
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.3-intl
E: Couldn't find any package by glob 'php7.3-intl'
E: Couldn't find any package by regex 'php7.3-intl'

Sad

(10-26-2020, 06:32 AM)InsiteFX Wrote: Upgrade your php version to 7.2+ or higher.

Also you need to edit your php.ini file and remove the ; from the intl extension.

Having problems with the upgrade.  Can you assist on which command to use?  I'll also try the php.ini suggestion. Thanks!

Ok that's no problem, here what you have to do.

I would remove the current PHP to prevent any possible conflicts.
then Install the php7 using the ondrej/php ppa repo.

Code:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.3
if you are still getting random errors try googling it.

this link will have all you need to install php on ubuntu machines.
https://computingforgeeks.com/how-to-ins...on-ubuntu/ (php7.4)

that'd install PHP7.3, but you need more than just php, you will have to install extensions.

Code:
sudo apt-get install php7.3-{bcmath,bz2,intl,gd,mbstring,mysql,zip,fpm} -y

these exts are usually required but you can choose depending on your needs.
Reply


Messages In This Thread
RE: creating a registration system with CI4, and why is CI "better"? - by Awlikhaleghi - 10-26-2020, 04:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB