Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by catiewong
I use centos 7.4 and it is a web server .
All the web files ( program , application .. ) are located at /webfiles , it is our standard setting , but now there is no /webfiles mount point now.
[output snipped]
I just would like to ask , if I re-install the server , is it good to create such mount point as below ?
[output snipped]
A 'mount point' is simply a folder that is the point at which you access a particular filesystem - hence, it's the point at which that particular filesystem is mounted to the filesystem hierarchy.
A 'mount point' is simply a folder that is the point at which you access a particular filesystem - hence, it's the point at which that particular filesystem is mounted to the filesystem hierarchy.
Why not just re-create the mount point ?
you mean it it better to create the mount point when installation as my second list ?
Based on the scanty information in OP's post, /webfiles looks like a directory, not like a partition, so it would not rate a mount point. It might rate a symlink.
I have never created a mount point for the web DocumentRoot. It lives where it lives. In fact, I've one server whose configuration is so old that the DocumentRoot is at /home/httpd -- is, and has been, working like that for nearly 20 years. Turns out to be handy, since the default CentOS 7 disk configuration doesn't have lots of room at / (where /var/www would be), but lots of room at /home
Based on the scanty information in OP's post, /webfiles looks like a directory, not like a partition, so it would not rate a mount point. It might rate a symlink.
More information might help.
so do not think it is better to create /webfiles when installation ?
As I know , I can not create it after the OS has been installed , right ?
If I did not create it , I have to create /webfiles on / directory , and I will not see /webfiles when use the command "df" , is there any benefit to create /webfiles when installation of OS ?
as it was explained a mount point is just a directory and you can create it any time you wish. There is no need to install anything. But I think you misunderstood something. Creating a directory will not make it work as mount point - and every directory can be used as mount point. I think you want to mount something, but I have no idea what.
as it was explained a mount point is just a directory and you can create it any time you wish. There is no need to install anything. But I think you misunderstood something. Creating a directory will not make it work as mount point - and every directory can be used as mount point. I think you want to mount something, but I have no idea what.
Maybe I rephase my question .
I will re-install OS for some reason , in my case , is it good to create /webfiles when installation ?
I will re-install OS for some reason , in my case , is it good to create /webfiles when installation ?
Both are OK: create it at installation time, or create it later, before you mount the partition and start the web server.
Personally, I would do a standard installation and create the mount point when the server is installed. It’s probably easier. But whatever suits you better.
Last edited by berndbausch; 11-14-2018 at 01:23 AM.
I will re-install OS for some reason , in my case , is it good to create /webfiles when installation ?
yes, it is irrelevant. But if you wish to have a partition "behind" that /webfiles probably better to create it (=the partition, not the mount point) during installation.
Both are OK: create it at installation time, or create it later, before you mount the partition and start the web server.
Personally, I would do a standard installation and create the mount point when the server is installed. It’s probably easier. But whatever suits you better.
you mean if I do not create it , I can do it later ( what I want is run "df" command" , it will show this mount point ) ?
df does not care about mount points. (you would need to read the man page of df to understand how it works).
df will print the free space on partitions. If anything was mounted on any mount point df would handle it. But not the mount point itself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.