#remove below line add this to nf (to reduce code on every block) Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y Made so far will take effect immediately. Reloading the privilege tables will ensure that all changes Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y This is also intended only for testing,Īnd should be removed before moving into a production This ensures that someone cannot guess atĭisallow root login remotely? (Press y|Y for Yes, any other key for No) : yīy default, MySQL comes with a database named ‘test’ thatĪnyone can access. Normally, root should only be allowed to connect from Remove anonymous users? (Press y|Y for Yes, any other key for No) : y You should remove them before moving into a production Testing, and to make the installation go a bit smoother. Press y|Y for Yes, any other key for No: nĬhange the password for root ? ((Press y|Y for Yes, any other key for No) : nīy default, a MySQL installation has an anonymous user,Īllowing anyone to log into MySQL without having to haveĪ user account created for them. Would you like to setup VALIDATE PASSWORD component? It checks the strength of passwordĪnd allows the users to set only those passwords which are VALIDATE PASSWORD COMPONENT can be used to test passwordsĪnd improve security. Part 2: securing sudo mysql_secure_installation Sudo apt-get update & sudo apt-get install mysql-server Sudo dpkg -i mysql-apt-config _w.x.y-z_all.debĮx: dpkg -i mysql-apt-config_0.8.12-1_all.deb Sudo apt install php8.0-mysql php8.0-curl php8.0-mbstring php8.0-opcache php8.0-zip php8.0-xml php8.0-gdįrom source (Precompiled) Install mysql 8 from mysql Install required php extensions for wordpress 8 Sudo apt-get install software-properties-common sudo add-apt-repository ppa:ondrej/php Or from launchpad repo for specific version To install nginx, sudo apt update & sudo apt install nginx The output should contain the full fingerprint 573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62 as follows: pub rsa2048 ĥ73B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62 Verify that you now have the proper key: sudo apt-key fingerprint ABF5BD827BD9BF62 Next, import an official nginx signing key so apt could verify the packages authenticity: curl -fsSL | sudo apt-key add. If you would like to use mainline nginx packages, run the following command instead: echo "deb `lsb_release -cs` nginx" \ To set up the apt repository for stable nginx packages, run the following command: echo "deb `lsb_release -cs` nginx" \ Visit scroll down to below prebuilt packages. Semi Advanced LEMP Installation (not recommended) Installing Nginx From Source for latest Or php fpm configuration with nginx and performance tuning please php installation page. Sudo apt-get install php7.3-mysql php7.3- curl php7.3- json php7.3- cgi php7.3- xsl That’s all you done with mysql (performance tuning you need to visit this page) If your migrating from old version to new ort if mysql log asks explicitly) Set: Root password, remove anonymous users etc(security hardening must for mysql installation. Sudo apt install nginx mysql-server php-fpmĪlso follow migrate linux server Installing MySQL Php ini configuration and php fpm pool configuration Sudo apt install php8.1-curl php8.1-zip mcrypt php8.1-gd php8.1-mbstring php8.1-xmlrpc php8.1-xml php8.1-intl php8.1-soap php8.1-imagickĭetailed guide on installing php fpm on ubuntu (C) Installing Php fm 8 or 7.4 from ubuntu repositoryĪnd install required php extensions for WordPress etc If no password login as sudo mysql and set password Sudo mysql_secure_installation and setpassword if not while installation (b) Installing Mysql 8 from ubuntu repositoryĬheck installation status sudo service mysql status Most cases Port 80,443,22 will not block by ufw firewall or iptables. Optional: systemctl status nginx (my case it worked always) Installing Lemp Stack easy method from linux repository
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |