Skip to content
View in the app

A better way to browse. Learn more.

Gear Crushers

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to add files to /var/www

Featured Replies

You ever run into that issue where you can't copy or FTP files up to your directory under /var/www/ for your new website?


 


If you make /var/www writeable by its group and add the user to the group, that user will not have to use sudo. Try this:



sudo usermod -a -G www-data [username]
sudo chown -R root:www-data /var/www
sudo chmod -R g+rw /var/www¨

The user should then be able to edit /var/www/ files without hassle.

The first line adds the user to the www-data group, the second line clears up any files with messed up ownership, and the third makes it so that all users who are members of the www-data group can read and write all files in /var/www.


 


This usually corrects issues of Apache DNS errors is giving the appropriate rights.


  • 3 months later...

I'm having issues when updating my site with new files and its obvious its a permissions issue. When I try and run the above command I get the following error message.





username is not in the sudoers file. This incident will be reported.





Any idea's?



Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.