![]() |
VOOZH | about |
The author selected Open Sourcing Mental Illness Ltd to receive a donation as part of the Write for DOnations program.
PHP is a popular server scripting language known for creating dynamic and interactive web pages. Getting up and running with your language of choice is the first step in learning to program.
This tutorial will guide you through installing PHP 7.4 on Ubuntu and setting up a local programming environment via the command line. You will also install a dependency manager, Composer, and test your installation by running a script.
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
PHP is a popular server scripting language known for creating dynamic and interactive web pages.
Committed to helping software developers to be successful by solving challenges in both their careers and their parenting.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I followed all the instructions but my apache seems to still be pointing/using php 7.2 (That is what my wordpress dashboard says) even though php -v on the command line gives me 7.4 as a result. What can I do to make apache use the latest php version?
This recepie no longer works. Apparetnly, ondrej has deleted the required files. Following this tutorial now returns the following error:
root@MySites:~# sudo apt -y install php7.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.4
E: Couldn't find any package by glob 'php7.4'
E: Couldn't find any package by regex 'php7.4'
I have also run into issues with this being out of date, ondrej/php does not now support ubuntu 18.04 - also I am unable to update ubuntu due to security clashes with php7.2.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.