Skip to main content

Posts

Showing posts from January, 2023

Install MariaDB 10.6 on Oracle Linux 8|Rocky Linux 8

  Install MariaDB 10.6 on Oracle Linux 8|Rocky Linux 8 How can I quickly install MariaDB 10.6 on Oracle Linux 8 / Rocky Linux 8?. MariaDB is a free and open-source relational database management system forked from MySQL and community-developed. The database software is released under the GNU General Public License. Our short tutorial will teach you how to install and configure MariaDB 10.6 on Oracle Linux 8 | Rocky Linux 8 Linux system. Install MariaDB 10.6 on Oracle Linux 8|Rocky Linux 8 You should have a running Oracle / Rocky Linux server before you start the installation. This can be a physical server, virtual machine running on VMware, KVM, OpenStack or cloud provider such as AWS. A user that has sudo privileges is also required for the installation. Step 1: Update System Run the command below to pull the latest packages of the applications installed in your system. $ sudo dnf update Transaction Summary =========================================================================...

Change public url to domain url in production mode for laravel project

 Reference links 1. https://stackoverflow.com/questions/28364496/laravel-5-remove-public-from-url/54275198#54275198 2. https://devops.ionos.com/tutorials/how-to-set-up-ip-and-port-based-virtual-hosting-vhosts-with-apache-web-server-on-centos-7.html 3. help full video  https://www.youtube.com/watch?v=XZAF5yR-WYQ step 1 Go to  cd /etc/httpd/conf vim httpd add  ip entry your-ip:80 :wq save n close step 2 Go to cd /etc/httpd/conf.d vim bsms.conf wrote host entry as shown in video Step 3 add host entru with domain ip in hosts file vim /etc/hosts your-ip <space> domain.com Step 4 Restart the httpd systemctl restart httpd  

Store all rasposes in json format in DB

Create table with name test_logs with column name as id, logs. set id to auto-increment and logs with longtext. // add DB class at top of the class. use DB;  $d = json_encode($this->data);         DB::connection('logs')->table('test_logs')->insert([             'logs'=>$d  ]);