Posts

Laravel docker

Image
  A re you familiar with Docker? If so, you may already know that today, most of the web applications out there are being dockerized. That’s means, using Docker, it’ll be much easier for the applications to run on different devices, no matter what operating systems or environments we’re working on. Because Docker ensures the consistencies of your dependencies in one place. It starts with the development from your local machine, then maybe some integration tests in the middle of it, and finally publish your app into the production environment. Imagine you’re developing your app in the Mac Operation System right now, then you need the Swoole or other extensions for your PHP extension, which means you need to install those extensions manually in your local. Then, you may deploy your app to the Ubuntu server. What do you do? Of course, you need to install those extensions on the server, right? With different types of installation commands, you could encounter some errors, bugs, and so ...

MySQL Remote access

 It could be that you have not configured the Amazon Security Group assigned to your EC2 Instance to accept incoming requests on port 3306 (default port for MySQL). If this is the case then you can easily open up the port for the security group in a few button clicks: 1) Log into you AWS Console and go to 'EC2' 2) On the left hand menu under 'Network & Security' go to 'Security Groups' 3) Check the Security Group in question 4) Click on 'Inbound tab' 5) Choose 'MYSQL' from drop down list and click 'Add Rule' Might not be the reason but worth a go... unable to connect to localhost mysql workbench-   # open mysql conf file sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf # replace bind-address from 127.0.0.1 to 0.0.0.0 """ bind-address = 0.0.0.0 """ # login to mysql sudo mysql # create a Database CREATE DATABASE db_name; # allow a full access to a specific user for a specific db GRANT ALL ON db_name....

how to uninstall apache 2 server in ubuntu

  77 A very simple and straightforward way that worked for me is as follows: Stop  apache2 . sudo service apache2 stop Uninstall Apache2 and its dependent packages. sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common Use  autoremove  option to get rid of other dependencies. sudo apt-get autoremove Check whether there are any configuration files that have not been removed. whereis apache2 If you get a response as follows  apache2: /etc/apache2  remove the directory and existing configuration files. sudo rm -rf /etc/apache2
Image
How To Set Up a Continuous Deployment Pipeline with GitLab CI/CD on Ubuntu 18.04 Published on October 26, 2020 · Updated on November 29, 2020 Ubuntu 18.04 CI/CD Git By  Mike Nöthiger Software Engineer The author selected the  Free and Open Source Fund  to receive a donation as part of the  Write for DOnations  program. Introduction GitLab  is an open source collaboration platform that provides powerful features beyond hosting a code repository. You can track issues, host packages and registries, maintain Wikis, set up continuous integration (CI) and continuous deployment (CD) pipelines, and more. In this tutorial you’ll build a continuous deployment pipeline with GitLab. You will configure the pipeline to build a Docker image, push it to the GitLab container registry, and deploy it to your server using SSH. The pipeline will run for each commit pushed to the repository. You will deploy a small, static web page, but the focus of this tutorial is configuring ...