Install MariaDB 10.3 on CentOS Rumi, October 23, 2022 Step 1: Add MariaDB Yum Repository Create a new repo file /etc/yum.repos.d/mariadb.repo and add the below code changing the base url according to the operating system version and architecture. # vi /etc/yum.repos.d/mariadb.repo [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.3/centos73-amd64/ gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 Step 2 – Install MariaDB Server Let’s use the following command to install MariaDB 10.3 # yum install MariaDB-server MariaDB-client Once the installation is complete, we’ll enable and start the daemon with the following commands: # systemctl enable mysql.service # systemctl start mysql.service Step 3 – Secure MariaDB Install MariaDB includes a security script “mysql_secure_installation”, to change some of the less secure default options. For things like removing remote root logins and sample and Anonymous users. To do this you can read our previous article Securing MySQL server / Mariadb with mysql_secure_installation from command line guide. #mysql_secure_installation Step 4 – Working with MariaDB Once the configuration is complete, connect to MariaDB server using the following command. # mysql -u root -p Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 16 Server version: 10.3.2-MariaDB MariaDB Server Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> Ref: https://yallalabs.com/linux/how-to-install-mariadb-10-3-on-centosrhel-7/ Related Administrations Collected Articles Configurations (Linux) MySQL
Apache Web Server .htaccess File functional February 8, 2013 .htaccess is Apache's directory-level configuration file. It allows end user to configure authentication and other options without editing main httpd.conf file. Make sure AccessFileName set to .htaccess Search httpd.conf for AccessFileName directive. It defines name of the distributed configuration file: # grep -i AccessFileName httpd.conf Make sure users are allowed… Read More
Redirect all request to public/ folder in laravel 5 August 19, 2022 There are two solutions: 1. Using .htaccess with mod_rewrite RewriteEngine on RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L] 2. You can add a index.php file containing the following code and put it under your root Laravel folder (public_html folder). <?php header(‘Location: public/’); Src: https://stackoverflow.com/questions/38040502/how-do-you-redirect-all-request-to-public-folder-in-laravel-5 Related Read More