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…

7 years ago

Remove all files from a directory?

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

7 years ago

Zip/unzip all files in a directory

[crayon-67a5b74beedbb842834265/] [crayon-67a5b74beedc0685886083/] Unix zip directory but excluded specific subdirectories (and everything within them) [crayon-67a5b74beedc2892530360/] or [crayon-67a5b74beedc4070841970/]  

7 years ago

How to make Apache run as current user

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

7 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…

7 years ago

Permissions

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

7 years ago

List all folder with permission details

[crayon-67a5b74bef4f3398254314/]  

7 years ago

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

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

7 years ago

Correct file permissions for WordPress

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

7 years ago