Posts in Category: snippets

apt-get update

In a nutshell, apt-get update doesn’t actually install new versions of software. Instead, it updates the package lists for upgrades for packages that need upgrading, as well as new packages that have just come to the repositories.

  1. apt-get update downloads the package lists from the repositories and “updates” them to get information on the

    Read More

Install cURL in your PHP installation

  1. First Install CURL by typing sudo apt-get install curl
  2. Then Restart Apache by typing sudo service apache2 restart
  3. Then Install PHP5 CURL by typing sudo apt-get install php5-curl
  4. will prompt to install… type y or yes!
  5. Then Restart Apache by typing sudo service apache2 restart Done!

Read More

How To Install LAMP on Ubuntu 14.04 [Quickstart]

Step 1: Update apt-get package lists

Step 2: Install Apache, MySQL, and PHP packages

When prompted, set and confirm a new password for the MySQL “root” user:

Step 3: Create MySQL database directory structure

Step 4: Run basic MySQL security script


At the prompt, enter the password you set

Read More

Reset MySQL root password

You can’t view the hashed password; the only thing you can do is reset it!

Stop MySQL:

or

Start it in safe mode:

(above line is the whole command)

This will be an ongoing command until the process is finished so open another shell/terminal window, log in without a

Read More

How to Fix Ubuntu/Debian apt-get 404 Not Found Repository Errors

Distribution Upgrade

The most simple solution is to upgrade your Ubuntu instance to the newest release:

if the distribution upgrade is not an option right now, you can update the sources url for the Ubuntu repositories to find the old packages.

Update Packages Url

You can use the sed command to update

Read More

Setup the right permission for the directories & files

Setup the right permission for the directories:

Setup the right permission for the files:

 

Read More

Remove Apache, MySQL and PHP 7 on Ubuntu Xenial #php #ubuntu #lamp

 

Read More

How To Install and Secure phpMyAdmin

Step One — Install phpMyAdmin

This will ask you a few questions in order to configure your installation correctly.

Warning: When the first prompt appears, apache2 is highlighted, but not selected. If you do not hit Space to select Apache, the installer will not move the necessary files during

Read More

Uninstall or Completely remove mysql from ubuntu

 

Read More

Edit a file using comand line

press Alt+F2 and type gnome-terminal if you’re using GUI

Then type

(To understand better: in the directory /etc you can find (nearly) all configuration files of your computer and in the apt directory you find the souces.list file that contains all the repositories that APT uses to update or install and upgrade software)

Edit the file removing or commenting

Read More