sudo adduser {username} www-data
or
Edit the following file as root: /etc/apache2/envvars
using the command:
sudo nano /etc/apache2/envvars
change the user and group to yourself if there is only one user and you will never have permissions problems again.
I.E., if you are only logging in and running the server as user ‘big_dog’:
export APACHE_RUN_USER=big_dog export APACHE_RUN_GROUP=big_dog
Heck, for that matter you could change that user to the current user I’m sure somehow. Then, install user_dir you all have webs only you can have full control of (unless you modify this).
Restart the server (if unsure, just reboot or goole) and you are good to go.
MySQL manages connections to the database server through the use of a socket file, a special…
To remove the .html extension from your urls, you can use the following code in…
Use free/paid SSL certificates https://www.sslforfree.com Enable SSL Module Replace 'default-ssl' with the real site name…
Create archive of all files under public_html directory ignoring all files and folders including text…
To install some file *.tar.gz, you basically would do: Open a console, and go to…
The chown command has the following syntax: [crayon-67a5aeaad5043979206679/] So in your example command it is your primary…