godaddy webhosting root directory [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
im using go-daddy to learn web hosting ...
so i had problem and i reset my account because i thought something change some settings in the server..
after i reset the account i still have the same problem that my web root DIR is in (ht-docs owned by root) which i cant edit ...
this is the effective root directory .. i dont know why its not (public_html)
i ve allready asked in godaddy before about this and figured out my self the root directory by searching html code in all files in my server
(grep -isr "html code" /*)
https://uk.godaddy.com/community/Managing-Web-Hosting/public-html/td-p/51705
note: im newbie in linux .. i've just purchased godaddy account to learn web hosting ..

Why do you want to edit stuf in the default htdocs dir while the document root is set to /public_html/www in your user dir, according to the control panel screenshot you provided?
Look for public_html/www in your user dir, it should be ~/public_html/www, which is a shortcut to /home/YOUR_USER/public_html/www
PS: be careful asyour last screenshot shows /home/YOUR_USER/public_html as the document root, while the control panel one as www on top of it (but it might just be to handle subdomains)

Related

If there a way to make vsftpd allow one user to access root directory, while other users get redirected to their home directory? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I'm running Raspbian Lite on a Raspberry Pi 2. I'm trying to have vsftpd set up with one user called admin to have root access for FTP, while all other users (such as filetransfer) get redirected to their home directory. Any help would be greatly appreciated :)
I gather you're using vsftpd's chroot_local_user setting to keep users within their home directories. If that's enabled, you can use the chroot_list_file setting to pass a file containing the users you don't want to be locked in their home directories.
You can find out more on the vsftpd manual page.

Restrict user access on linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have a Ubuntu 12.04 machine that I can only access using SSH. On this machine I have two users and I want to limit the access to certain files to one of these users.
Basically I want that user to be able to access only its home directory and nothing more. I know that by removing the rx permissions to other home directories for others is one option but I wanted to know if there is another way, a configuration file where I can tell that my user can only have access to that folder.
Thanks.
chrooted jail is the answer.
Like: https://www.howtoforge.com/chrooted-ssh-sftp-tutorial-debian-lenny

Is www a subdomain? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I recently purchased something.com.
When I visit something.com from my browser, I get the index page I uploaded on server.
However, if I visit www.something.com, it shows Error 404.
So I create a sub-domain named 'www' and upload another index file there.
Now, www.something.com and something.com shows two different websites.
My question is, is 'www' a normal sub-domain? Or some special kind of sub-domain? If yes, how is it different from other sub-domains?
is 'www' a normal sub-domain? Yes, it is. From the point of view of DNSs it is a totally normal subdomain.
is some special kind of sub-domain? Yes, it is, indeed. It is so commonly used that most Registrars and Hosting providers do automatically create it for you and permanently redirect it to the web server hosted with them.
in your case, it seems that this is not what happens. So, create it and permanently redirect it, instead of creating a new index page for it.

Apache2 webserver not displaying pages [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have this strange problem that happens whenever I go to visit any of my websites hosted on my Apache2 server. When I visit a site, chrome just downloads this file named 'download' and just displays a blank page. I opened the the file named 'download' in notepad++ and it displays the html source code to the website. Anyone know what is going on here?
You misconfigured your server: it's returning the wrong mime-type. Go find the config which came with your Apache installation and compare it with the current state to find the stuff which is broken.

Linux /opt/* folder and permissions [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I'm using the folder /opt/ to install common software that would otherwise not be available as part of the package installer of the system and that should be available to many (developer) users in Linux (using Ubuntu at the moment):
/opt/dev/eigen/3.1.3
/opt/dev/boost/1.54
/opt/git/myproject1.git
/opt/git/myproject2.git
Putting the common software there would be the common practice right? how about permissions? I tend to chmod -R 777 /opt/dev but this is a very bad practice I guess. Suggestions on best practices in this area? probably something along the lines of adding a developers group and giving them all permissions or?
Note git is a special case but still all developers need access to it because pushing changes implies creating directory and files under that path with the developer credentials.
According to these sites:
https://bbs.archlinux.org/viewtopic.php?id=35867
https://askubuntu.com/questions/169314/default-permissions-for-opt-directory
plus my experience, a correct permission to use is 755 for subdirectories in /opt. If your useris part of the root group, you could also set permissions to 775. You should be fine with this as long as there's nothing considerably sensitive in your /opt folder. If there is, then you might consider storing those in a separate subdirectory from /opt with even more limited permissions.

Resources