![]() |
VOOZH | about |
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
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!
Followed the guide step by step but Iβm getting an error connecting to the database:
root@c0605c27b55d:/var/www/html# curl localhost/todo_list.php
Error!: SQLSTATE[HY000] [2002] Permission denied<br/>
Could this be because Iβm running Ubuntu in Docker?
I wasnβt able to login to mysql with sudo mysql after running ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
I fixed this by logging it with mysql -p, then running ALTER USER 'root'@'localhost' IDENTIFIED WITH auth_socket;. I did this after running the mysql_secure_installation script.
If you receive a Status: inactive message after the sudo ufw status THEN USE THIS COMMAND sudo ufw enable
PHP 8.3 php.watch/articles/php-8.3-install-upgrade-on-debian-ubuntu#php83-ubuntu-quick
Save existing php package list to packages.txt file
sudo dpkg -l | grep php | tee packages.txt
Add Ondrejβs PPA
sudo add-apt-repository ppa:ondrej/php
Press enter when prompted.
sudo apt update
Install new PHP 8.3 packages
sudo apt install php8.3 php8.3-cli php8.3-{bz2,curl,mbstring,intl,cli,mysql,zip,gd,xml,bcmath,opcache,pgsql,readline,soap}
Install FPM OR Apache module
sudo apt install php8.3-fpm
On Apache: Enable PHP 8.3 FPM
sudo a2enconf php8.3-fpm
When upgrading from an older PHP version:
sudo a2disconf php8.2-fpm
Remove old packages
sudo apt purge php8.2*
This comment has been deleted
Seems to be a LOT of steps missing from the mysql installation - Now I have access denied
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.