Posts

php version change

 https://ostechnix.com/how-to-switch-between-multiple-php-versions-in-ubuntu/

how to run django project in vs code

Image
Django Tutorial in Visual Studio Code Django is a high-level Python framework designed for rapid, secure, and scalable web development. Django includes rich support for URL routing, page templates, and working with data. In this Django tutorial, you create a simple Django app with three pages that use a common base template. You create this app in the context of Visual Studio Code in order to understand how to work with Django in the VS Code terminal, editor, and debugger. This tutorial does not explore various details about Django itself, such as working with data models and creating an administrative interface. For guidance on those aspects, refer to the Django documentation links at the end of this tutorial. The completed code project from this Django tutorial can be found on GitHub:  python-sample-vscode-django-tutorial . If you have any problems, you can search for answers or ask a question on the  Python extension Discussions Q&A . Prerequisites To successfully compl...

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