Document Root And File Permission

Jul 21, 2008

I am running a LAMP server, working to get everything configured and as secure as I can make it. I have been trying to decide weather to change the document root to a different directory, or if it would be better/worse or more/less secure to chown and chmod the current directory.

Any input would be helpful, I just don't want to overlook some small detail as this is my first time handling a server on my own.

View 2 Replies


ADVERTISEMENT

Plesk 12.x / Linux :: Place File Into Document Root Directory?

Jul 11, 2014

I need to place a file in the root of my server. How should I do?

I tried:
SSH connection
wget ......
but the file is not in the right place

Where should I place it?

View 2 Replies View Related

My Sites Are Not Pointing To The Right Document Root

May 21, 2009

I installed a centos4.7 with ISPCONFIG2 control panel, but any account I create it points to the documentroot of apache.

I am running my server behind a router.

On the /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf the document roots are :
Document Root /var/www/web11/web for xxx1.com
Document Root /var/www/web10/web for xxx2.net

but when i type ant site, it goes to : Document Root /var/www/

View 3 Replies View Related

Document Root Default In Plesk

Dec 18, 2008

Document root default in Plesk

I bought a new plesk and created new domains. For some odd reason, all the domains are looking at the default document root.

/var/www/vhosts/default/htdocs/
Rather than going to the domains document root
/var/www/vhosts/domain.com/conf

I checked the /var/www/vhosts/domain.com/conf/httpd.include, the document root and all are fine.

I also tried creating vhost.conf and assigning the document root there.
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain.com -v

It is also not working...

View 9 Replies View Related

Apache Document Root On Linux

Sep 5, 2007

Basic question: does it matter where I set the document root for apache on a Linux system? I've googled this but haven't found a good answer.

This is for a VPS server running the Ubuntu (Debian) server os that I'm configuring. I'd prefer to simply create a new directory off the root and set that as the document root in the apache config file. Would this present any kind of security issue?

If that's no good, what's the best choice -- stick to the default?

View 3 Replies View Related

Apache :: Cannot Change Document Root

Oct 26, 2013

I just made a fresh install of the following :

Apache 2.4 (x64)
PHP 5.5.5 Thread Safe (x64)
OS: Windows 8.1 (x64)

And I think everything is working. When openingen 127.0.0.1 I see the apache message that the server is running and when executing phpinfo() it displays the PHP info.

My problem is that I'm trying to change the document root.

I have change the following in the httpd.conf:

DocumentRoot "C:/Apache24/htdocs"
<Directory "C:/Apache24/htdocs">

The lines abowe have been change to:

DocumentRoot "D:/www"
<Directory "D:/www">

After this I did a reboot of the apache server using the CMD httpd -k restart. I even tried restarting using the apachemonitor and rebooted the whole server. But apache still loads the files from c:/Apache24/htdocs

I can't find any more entries with htdocs to change. What am I missing?

View 2 Replies View Related

Apache :: Document Root Must Be Directory

Jun 2, 2014

In httpd.conf I have

DocumentRoot "C:/Programme/Apache_Group/Tomcat-8.0.5/webapps/ROOT/"

2.4.9 is complaining about this having to be a directory. It is definiteley. I can browse it with explorer.

When I change this to "C:/Program Files/..." it works.

Why is that? In the stock Win32 server I downloaded from the apache site I did not have to make this change.

View 4 Replies View Related

Where Domain Document Root Settings Are In CPanel?

Feb 11, 2008

I've done some manual change of document root in httpd.conf for a user. I know that now, I don't need to to manual change since user can set there own folder!

Now, If I rebuild Apache, he will re-do all the configuration to the original one. Where can I find the settings for domain document root so I can change it and EasyApache will rebuild the httpd.conf correctly?

I don't want to remove the domain since I'll lost all email account!

View 8 Replies View Related

Document Root Change (e.g. /home/newfilehere/

Aug 2, 2008

On my VPS I currently have:

/home/admin/public_html/ as my website root.

However, I plan on running multiple website (not linked whatsoever) on the server. I have LXAdmin and HyperVM. Is it possible to get additional files, such as:

/home/site2/public_html/

then etc..

/home/site3/public_html/

Is this possible? Because, would each need its own IP for the DNS?

View 4 Replies View Related

Plesk 12.x / Linux :: Default Document Root

Sep 5, 2014

I think it is possible, but just to be sure...

Default document root is:

var/www/vhosts/www.mysite.com/httpdocs/

Can I change it to:

var/www/vhosts/www.mysite.com/web/

A simple "yes" or "no" will do...

View 3 Replies View Related

Plesk 12.x / Linux :: Nginx Does Not Recognize Changes (Document Root)

Nov 12, 2014

There is a bug in the current Plesk version 12, which was encountered on many of our Plesk 12 server until now. I do have Plesk 12.0.18 Update #23 with CentOS 6.

When a customer changes for example the document root of a domain nginx does not recognize it and the administrator of the server do have to restart nginx manually.

This issue is serious because CSS, JS and images are not working on such a page where a customer changed the document root. Nginx is throwing 404 error until nginx is restarted manually.

Other customers do have the same issue: [URL] .....

View 2 Replies View Related

Plesk 12.x / Linux :: How To Change Document Root With Web Applications Installed

Feb 8, 2015

i am relatively new to Plesk, i ordered a vserver with Plesk a couple of months ago and spend a lot of time setting everything up and developing several new websites. I am used to developping new websites on a hidden adress (sth like domain.com/dev/ instead of the top level) and then switch the document root to point to the hidden directory when all is done. This practice has served me and my clients well for the last 10 years.

Using the Plesk features like built-in applications seemed like a good idea at the time but wanting to switch the new websites live i have now found out that Plesk won't let me do this since..It is impossible to change document root because there are web applications installed on this website.

I had read somewhere on the interweb that the v12 would let me do this so i just spent the better part of today updating to v12 .. but alas no luck, the limitation is still there. Is there a way to remove this limitation ?

View 1 Replies View Related

Root Permission For Ftp Account

Jun 22, 2007

I have created the account, and when I connect using FTP, I need to access to root directories such /usr /etc ........ How can I do that?

View 3 Replies View Related

Changing File Permission

Feb 25, 2009

i've set all folders,sub folder and files under this folder to be 777 since it is a folder for my users to upload attachments~

however this is the problem. users all failed to upload because the permission of the new folder created by apache for the users to store their attachment are set to 755, which i wanted them to be 777. (those 777 folders were from old server.)

if u take a look at the pic attached , you know what i meant. does anyone have any idea of how i can change the permission for this whole foder to be 777 even with folder created by apache?

i tried chmod -r 777 attachment, but it says operation not permitted @@

View 9 Replies View Related

File Permission On FreeBSD

Jan 6, 2008

I have problem with a file permission on FreeBSD.

The permission of that file is 0000, so I tried to change that
permission using chmod command. However, I got the following error:

chmod: file.php: Operation not permitted

I know that I have to check for file attributes. In redhat I used to
check that using lsattr command. However, I couldn't find it anywhere in FreeBSD.

Anyone here aware of an equivalent command that check file attributes?

View 5 Replies View Related

Changing Multiple File Permission

Apr 2, 2007

in my server there is an issue where a lot of users simply chmod their directories to 0777 and its not easy for me to modified them back or ask them to change it back.

so anyone knows how can i search server via ssh to grep folder with permission 0777 and then automatically chmod these folders to 0755 ?

i think its possible to complete the above task with 1 command but not sure how.

View 2 Replies View Related

Apache :: How To Change Bulk File Permission From All Folder

Sep 14, 2013

Recently I moved my WordPress website to another server, After moving my site I see that my all files permission set to 664, for that I getting many error, now I want change all files permission 644, but problem is I have many subdomain with this site, is there any way to make change all files permission to 644 with SSH or any other way?

View 1 Replies View Related

Plesk 12.x / Linux :: File Permission And Backup Manager

May 27, 2015

I lately decide to change my server provided and I decided to go for pre-installed Plesk12 service , plesk installed with os installation and in the beginning was looking ok , till I faced two problems .

The first problem I found is on Backup manager , I set a daily backup with maximum of 5 but every day I receive the error :The backup backup_website.com_info_1505272137.xml and backup_website.com_info_1505262137.xml was not created , I check the current backup task and the two task shows fails.(picture attached)

The second problem I found It may be related , is concerning the File permission , the user root and on group root are not able to change any file permission but the user pinco on group root is able to change it as well as the user Pinco on group psacln/psaserv , I updated the plesk12 to latest release to see if maybe was some changes but unfortunately nothing

Not migration for domains and was fresh install for os and plesk12

Plesk version:12.0.18 Update #48
OS: CentOS 6.2 (Final)

View 7 Replies View Related

Plesk 12.x / Linux :: WordPress - Changing PHP File That Is Installed Directly To Root?

Oct 27, 2014

I have a file that creates subscriptions , customers and domains. moreover, also installed wordpress to new domain. it makes it through the php file .

The problem I have is that when installing wordpress on plesk domain is installed in a subdirectory called wordpress in the root directory instead .

Is there any way of changing the php file that is installed directly to root ?

Ask this because from the plesk panel is done, there is an option through the file but can not.

View 2 Replies View Related

Are Chained Root Ssl Certificates More Secure Than Single Root?

Nov 25, 2008

I have read that although chained root ssl certificates can be more difficult to install they are actually more secure since the root certificate cannot be compromised, only the intermediary.

Is this true? It looks like both google and amazon both use chained SGC certs.

View 0 Replies View Related

How Do I Change The Default Document Please? I.e. To Not Be Index

Feb 28, 2007

to change the default document on my Web server from index to news.php, is there a simple process for this please?

My server is Linux based and my control panel is cPanelX. I've had a look around the control panel but couldn't find anything to help me.

View 4 Replies View Related

Secure Document Storing And Sharing

Jun 26, 2007

I have a client who specializes in providing training for high-end CAD/CAM applications. They have training modules (currently in .ppt format mostly) that they want to store securely on the server and give out access only to approved customers. Additionally, they want to ensure that these training modules never fall into the hands of their competitors- that is, no downloads.

Does anyone have experience with this kind of thing? Based on their requirements, a few possible solutions come to mind:

1.) Put the training modules in a subdomain that is password protected. Additionally, encrypt the traffic with SSL etc. However, this doesn't solve the problem of users being able to download the files and do what they want with them. Also, it isn't possible to view .ppt files online in a browser, as far as I know.

2.) Use a solution similar to what Lynda.com has. They have an entire online library of training videos that are available 24x7, but customers can only view it, not download it. I think they use some solutions from Adobe to make this possible.

View 10 Replies View Related

Apache :: Why All Virtual Hosts Route Back To Same Document

Oct 7, 2014

I am trying to configure Apache 2.2 on Linux Mint 17 ( derived from Ubuntu 14 LTS).

I am wanting to create a variety of localhost sites all for development. One of those is built on Laravel 4. I have followed every tutorial I can find yet, for some reason which I do not understand ALL my sites route back to the Laravel root document when called from the browser. Just don't get it.

Here is my hosts file:

Code:

127.0.0.1 localhost
127.0.1.1 vince-XPS-8300
127.0.0.1 auburntree
127.0.0.1 example

Here is the Laravel conf file:

Code:

NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin mail@shaw.ca
ServerName auburntree
DocumentRoot /var/www/auburntree/public

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Here is the alternative "example" conf file with just "hello world" in it.

Code:

NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin mail@shaw.ca
ServerName example
DocumentRoot /var/www/example/test.html

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Both conf files have been enabled.

View 3 Replies View Related

Apache :: Emulate Error Document Using Rewrite / Rewritecond / Redirect

Jun 23, 2015

OS - 2.6.18-274.7.1.el5
Apache - 2.2.29

Is there anyway to emulate the functionality of the ErrorDocument using rewrite rules, redirects, rewrite conds or other methods.

I'm trying to create a 404 page that can use dynamic variables (not allowed in ErrorDocument), that serves a custom 404 page and also logs a 404 in the HTTP status code in the logs.

I can achieve one or the other but not both as the ErrorDocument does.

View 3 Replies View Related

Plesk 12.x / Linux :: Checking Stats - Requested Document Was Not Found On Server

Aug 19, 2014

When i try to check my stats, i got this error : Not Found

The requested document was not found on this server.

URL : domaine.nld/plesk-stat/webstat/

I tried a lot of commands, to repair too..

# /usr/local/psa/admin/sbin/statistics --calculate-all

WARNING during statistics_collector execution: : Executing logs preparation...

But nothing... Always the same error.

View 1 Replies View Related

Plesk 12.x / Linux :: Deny User Upload File Via File Manager Or Hidden File Tab?

Feb 10, 2015

I'm build Plesk Panel for Linux and Presence Builder, I don't want my user can upload their website to hosting via File Manager. How can I do it...

View 2 Replies View Related

1.com/file.php, 2.com/file.php Where File.php Is Hosted On Main.com/file.php

May 26, 2008

Say I have 2 websites and they all use file.php which is located on mainserver.com/file.php.

I want to use the file like this:
website1.com/file.php
website2.com/file.php

View 2 Replies View Related

Permission 777

Jun 20, 2007

How can I stop Permission 777 in the server So no one can set Permission 777 to any file in the server?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved