Snippets

How to fix “W: Duplicate sources.list entry”?

Use the Ubuntu Sources List Generator. Run sudo -H nautilus in terminal Find /etc/apt/sources.list Right click and open the file with a text editor…

6 years ago

Remove all files from a directory?

To remove the folder with all its contents(including all interior folders): [crayon-66320899613c2012685050/] To remove all the contents of the folder(including all interior folders)…

6 years ago

Zip/unzip all files in a directory

[crayon-6632089961910667125986/] [crayon-6632089961916413953851/] Unix zip directory but excluded specific subdirectories (and everything within them) [crayon-6632089961919346865269/] or [crayon-663208996191a805439456/]  

6 years ago

How to make Apache run as current user

[crayon-6632089961a9a649602363/] or Edit the following file as root: /etc/apache2/envvars using the command: [crayon-6632089961a9f388100081/] change the user and group to yourself…

6 years ago

How To Set Up mod_rewrite for Apache on Ubuntu 18.04

Prerequisites:- Make user Apache 2 installed on your server - How To Install Linux, Apache, MySQL, PHP (LAMP) stack on…

6 years ago

Permissions

The /var/www folder needs to be readable by the www-data system account. Try this : [crayon-6632089961e7d467086589/] (1) Allow Apache access…

6 years ago

List all folder with permission details

[crayon-6632089962041100425593/]  

6 years ago

INSTALL Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 18.04

[crayon-663208996216e452813854/] sudo apache2ctl configtest sudo ufw app list sudo nano /etc/apache2/apache2.conf Inside, at the bottom of the file, add a…

6 years ago

Correct file permissions for WordPress

For Development [crayon-6632089962319200838157/] In production, I wouldn't give access to users to modify the filesystem, I'll only allow them to…

6 years ago