Help configuring permissions for served httpd files/folders on CentOS.


Recommended Posts

ZeroFearX

Guys, I have questions about permissions of files & folders for web servers (httpd/php).

I have a VPS that I want to use for development purpose that will run php56w / httpd without any cpanel, webmin, etc..

 

If I create a virtual domain under /var/www/vhosts/mynewdomain/ what permissions/owner the folder must have.

What permissions the SFTP users that will be used to uploads files on that folder must have,

If I want apache/php to store files on specific folders, who the folder owner must be and what permission must it be granted ?

 

If anyone is gentle enough to explain this to me :)

 

Thank you

 

 

 

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By eRajesh
      Android 11: The new privacy and security features to know about
      by Rajesh Pandey



      Google has primarily focused on conversations and privacy with Android 11. The OS comes with a number of small but important features and changes that focus on improving privacy and protecting user data from malicious apps and games. Android has never really been known for focusing on privacy but starting with Android 10 last year and now with Android 11, Google is really focusing on this aspect of the OS.

      While Android 11 is yet to make its way to almost all major Android smartphones out there, you can still check out the top privacy-oriented features of the OS below which you will get to utilize once the update finally lands for your device. Also, make sure to check out some of the top Android 11 features here.

      One-time permissions

      There's no need to grant an app permanent access to your location, microphone, or camera. Instead, you can now only grant temporary one-time access to apps for these permissions. So, the next time you open an app that you use sparingly, there's no need to grant it permanent access to your location or camera, a one-time access will work just fine.



      Auto-reset permissions

      If you don't use an app for a long time, Android 11 will automatically reset the sensitive permissions given to it. This means if you grant an app access to your location or microphone but then don't use it for the next few weeks, Google will revoke the permissions from the app. This way, you can rest assured knowing that any app you have on your device will not be silently tracking your location or recording your voice in the background.



      Background location access

      The new location permission prompt in Android 11 will no longer display an option to grant an app with permanent location access. Instead, users will be limited to three options: While using the app, Only this time, and Deny. While users still have the option of granting apps with permanent location access, the option is now buried in the Settings menu. Google has made this change so as to deter users from granting background location access to apps easily. And even when you grant an app background location access, Google will notify you about this with a notification from time to time, though this is a feature that debuted in Android 10 first.



      Scoped Storage

      The name might not sound that interesting, but scoped storage is important privacy and security-related change in Android 11. Up until Android 10, if you gave an application storage access, it would end up having access to the entire internal storage of your device meaning it could store all files and documents stored on it. With Scoped storage, Google is limiting an app to its own data folder. Apps can still request access to other folders on your device if it is important for their functionality but it is a change that's going to put an end to many shady apps.

      Project Mainline

      Google has further built on Project Mainline in Android 11 which now allows it to push important security updates through the Play Store itself. Right now, it is up to Android OEMs to push security patches for their devices. Many times these companies can be slow or end up not updating their older devices. With improvements in Project Mainline in Android 11, Google will have the option of pushing important security updates to devices directly via the Play Store.

      What do you think about these privacy and security changes that Google has introduced in Android 11? Do you think they are a step in the right direction from Google is making Android a more privacy-friendly OS?

    • By News Staff
      Save 94% off the cost of this Essential PHP Coding Bundle
      by Steven Parker

      Today's highlighted deal comes via our Online Courses section of the Neowin Deals store, where for only a limited time, you can save 94% off this Essential PHP Coding Bundle. Get started in web development by learning the fundamentals of PHP coding and practicing object-oriented programming.



      This bundle consists of the following courses:

      Fundamentals of PHP Training Course
      Learn the Basic Programming Concepts in the Most Popularly Used Server-Side Programming Language PHP Development with the Laravel Framework Training Course
      Develop Homepages, Create Accounts & Activate Emails Using the Open-Source Laravel PHP Framework PHP Object Oriented Programming: Build a Login System Training Course
      Create an R/L System Using PHP & OOP Together Python Object Oriented Programming Fundamentals Training Course
      Create Advanced & Easily Maintainable Python Applications with Object-Oriented Programming Good to know
      Length of time users can access this course: 1 Year Certification of completion included Redemption deadline: redeem your code within 30 days of purchase For specifications and instructor info please click here.

      Here's the deal:
      This Essential PHP Coding Bundle normally costs* $516, but it can be yours for just $29.99 for a limited time, that's a saving of $486.01 (94%).

      >> Get this deal, or learn more about it here <<
      See all Online Courses on offer. This is a time-limited offer that ends soon.
      Get $1 credit for every $25 spent · Give $10, Get $10 · 10% off for first-time buyers.

      Not for you?
      If this offer doesn't interest you, why not check out the following offers:

      The Win Your Dream 2020 Tesla Model 3 Giveaway
      20% off Ivacy VPN subscription with coupon code IVACY20 NordVPN subscription at up to 68% off for a 2 year plan Private Internet Access VPN subscription at up to 71% off Unlocator VPN or SmartDNS unblock Geoblock with 7-day free trial Disable Sponsored posts · Other recent deals · Preferred partner software

      Disclosure: This is a StackCommerce deal or giveaway in partnership with Neowin; an account at StackCommerce is required to participate in any deals or giveaways. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through our branded deals site, and it all goes toward the running costs.

    • By News Staff
      Get this Interactive Learn to Code Bundle at 73% off for just $29.99
      by Steven Parker

      Today's highlighted deal comes via our Online Courses section of the Neowin Deals store, where you can save 73% off the Interactive Learn to Code Bundle. Start writing codes and programs from scratch with 9 interactive courses on SQL, JavaScript, PHP, jQuery, BootStrap, and more.



      This deal consists of the following courses:

      An Interactive SQL Tutorial for Beginners: Introduction to SQL
      Getting Started with SQL Doesn't Have to Be Hard An Interactive JavaScript Course for Beginners
      Learn JavaScript Interactively with a One-of-a-Kind JS Online Course Interactive jQuery Tutorial: Learn jQuery Step-by-Step
      Take an Interactive jQuery Training Course for Beginners to Quickly Master jQuery Events, Effects & More Learn PHP Online: PHP Basics Explained in an Interactive & Fun Manner
      An Interactive Tutorial for Beginners Who Want to Master PHP Basics in a Non-Boring Way The Complete Solidity Smart Contract Guide
      Master Solidity Programming Through Hands-On Experience Master Python Fundamentals the Fun Way: An Interactive Python Tutorial
      A Python Training Course for Absolute Beginners Who Wants to Master the Language Without Getting Bored A Responsive Web Design Course: Find Out How to Create a Responsive Website
      Make a Website Mobile-Friendly with a Step by Step, Responsive Web Design Tutorial Bootstrap Tutorial: Learn to Create Dynamic Websites in a Pinch
      Find Out How to Use Bootstrap the Fun Way by Using an Interactive Course An Interactive Java Tutorial: Learn by Practice!
      Learn Java From Scratch by Combining Theory with Hands-On Coding Experience Good to know
      Length of time users can access this course: lifetime Certification of completion included Redemption deadline: redeem your code within 30 days of purchase For a full description, specs, and instructor info, click here.

      Here's the deal:
      This Interactive Learn to Code Bundle normally costs* $112, but you can pick it up for just $29.99 for a limited time - that represents a saving of $82.01 (73%) off.

      >> Get this deal, or learn more about it <<
      See all discounted Online Courses. This is a time-limited offer.


      Get $1 credit for every $25 spent · Give $10, Get $10 · 10% off for first-time buyers.

      Not for you?
      If this offer doesn't interest you, why not check out the following offers:

      The Win Your Dream 2020 Tesla Model 3 Giveaway
      The Nintendo Gaming Bundle Giveaway 20% off Ivacy VPN subscription with coupon code IVACY20 NordVPN subscription at up to 68% off for a 2 year plan Private Internet Access VPN subscription at up to 71% off Unlocator VPN or SmartDNS unblock Geoblock with 7-day free trial Disable Sponsored posts · Other recent deals · Preferred partner software

      Disclosure: This is a StackCommerce deal or giveaway in partnership with Neowin; an account at StackCommerce is required to participate in any deals or giveaways. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through our branded deals site, and it all goes toward the running costs.

      running costs.

    • By News Staff
      Save 73% off the Interactive Learn to Code Bundle - now just $29.99
      by Steven Parker

      Today's highlighted deal comes via our Online Courses section of the Neowin Deals store, where you can save 73% off the Interactive Learn to Code Bundle. Start writing codes and programs from scratch with 9 interactive courses on SQL, JavaScript, PHP, jQuery, BootStrap, and more.



      This deal consists of the following courses:

      An Interactive SQL Tutorial for Beginners: Introduction to SQL
      Getting Started with SQL Doesn't Have to Be Hard An Interactive JavaScript Course for Beginners
      Learn JavaScript Interactively with a One-of-a-Kind JS Online Course Interactive jQuery Tutorial: Learn jQuery Step-by-Step
      Take an Interactive jQuery Training Course for Beginners to Quickly Master jQuery Events, Effects & More Learn PHP Online: PHP Basics Explained in an Interactive & Fun Manner
      An Interactive Tutorial for Beginners Who Want to Master PHP Basics in a Non-Boring Way The Complete Solidity Smart Contract Guide
      Master Solidity Programming Through Hands-On Experience Master Python Fundamentals the Fun Way: An Interactive Python Tutorial
      A Python Training Course for Absolute Beginners Who Wants to Master the Language Without Getting Bored A Responsive Web Design Course: Find Out How to Create a Responsive Website
      Make a Website Mobile-Friendly with a Step by Step, Responsive Web Design Tutorial Bootstrap Tutorial: Learn to Create Dynamic Websites in a Pinch
      Find Out How to Use Bootstrap the Fun Way by Using an Interactive Course An Interactive Java Tutorial: Learn by Practice!
      Learn Java From Scratch by Combining Theory with Hands-On Coding Experience Good to know
      Length of time users can access this course: lifetime Certification of completion included Redemption deadline: redeem your code within 30 days of purchase For a full description, specs, and instructor info, click here.

      Here's the deal:
      This Interactive Learn to Code Bundle normally costs* $112, but you can pick it up for just $29.99 for a limited time - that represents a saving of $82.01 (73%) off.

      >> Get this deal, or learn more about it <<
      See all discounted Online Courses. This is a time-limited offer.
      Get $1 credit for every $25 spent · Give $10, Get $10 · 10% off for first-time buyers.

      Not for you?
      If this offer doesn't interest you, why not check out the following offers:

      The Nintendo Gaming Bundle Giveaway 20% off Ivacy VPN subscription with coupon code IVACY20 NordVPN subscription at up to 68% off for a 2 year plan Private Internet Access VPN subscription at up to 71% off Unlocator VPN or SmartDNS unblock Geoblock with 7-day free trial Disable Sponsored posts · Other recent deals · Preferred partner software

      Disclosure: This is a StackCommerce deal or giveaway in partnership with Neowin; an account at StackCommerce is required to participate in any deals or giveaways. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through our branded deals site, and it all goes toward the running costs.

    • By eRajesh
      Android 11 will automatically revoke permissions from unused apps
      by Rajesh Pandey



      Google yesterday released the third Developer Preview of Android 11 with plenty of changes. Among other changes, Google has also introduced the ability to automatically revoke permissions from apps if they are not used for a long time.

      The feature is named "Auto revoke permissions" and it is disabled by default. It is buried deep inside the App permissions menu in the Settings app at the bottom of every app listing. The feature needs to be enabled manually for apps that you have installed on your Android device and there's no global toggle for it. Seemingly, the feature does not revoke all permissions from an app when it is not used in months. It is also unclear as to how long it takes for the feature to revoke permissions from an unused app.

      Source: @MishaalRahman Google has introduced a number of small changes and improvements in Android 11 Developer Preview 3. Apart from the new Auto Revoke permission, the company has also introduced the ability to dismiss persistent notifications, a revamped Recent Apps menu, and more.

      The third Developer Preview of Android 11 is the last developer-oriented release from Google. The company is now working on launching the beta program for Android 11 which should make it easier for users to sideload the upcoming version of Android on their Pixel.

      Source: MishaalRahman