sudo apt install nginx sudo usermod -a -G www-data nginx sudo chown -R www-data /usr/share/nginx/html sudo apt install php7.2-mbstring php7.2-dom php7.2-pdo php7.2-xml php7.2-common php7.2-bcmath php7.2-json php7.2-cli php7.2-fpm php7.2-mysql sudo apt […]
Subnetting a network/subnetting a subnet
A subnetwork or subnet is a logical subdivision of an IP network. The practice of dividing a network into two or more networks is called subnetting. Subnet table for class […]
Find php.ini
To find which php.ini the CLI is using you can run: php -i | grep ‘php.ini’ Example output: $ php -i | grep ‘php.ini’ Configuration File (php.ini) Path => /etc/php/7.0/cli Loaded Configuration […]
How to allow remote connection to mysql MySQL Community Edition 5.5
If you want to enable that, run this SQL command locally: GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY ‘password’ WITH GRANT OPTION; FLUSH PRIVILEGES; And then find the […]
“Connect failed: Access denied for user ‘root’@’localhost’ (using password: YES)” mysql 5.7
mysql -u root -p -h localhost I created a new user with CREATE USER ‘francesco’@’localhost’ IDENTIFIED BY ‘some_pass’; then I created the database CREATE DATABASE test; I granted privileges for […]