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…

8 years ago

Remove all files from a directory?

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

8 years ago

Zip/unzip all files in a directory

[crayon-693224b115aad878086387/] [crayon-693224b115ab2585428403/] Unix zip directory but excluded specific subdirectories (and everything within them) [crayon-693224b115ab4423429854/] or [crayon-693224b115ab5045145568/]  

8 years ago

How to make Apache run as current user

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

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

8 years ago

Permissions

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

8 years ago

List all folder with permission details

[crayon-693224b116142982443464/]  

8 years ago

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

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

8 years ago

Correct file permissions for WordPress

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

8 years ago