Ubuntu :: 403 Error After Changing Apache Document Root

Sep 19, 2010

I've had apache installed for a couple of years with no problem but this morning I thought I would change the apache document root to my secondary disk so that my WAMP setup in my Windows partition and LAMP could share the same files. I've edited the etc/apache2/sites-available file to point it to the new location of my document root but I am getting a 403 - forbidden "You don't have permission to access / on this server." error when I try to load files through the browser. I'm not sure if this is a permissions issue or the way I've edited the sites-available config.

Here is the new sites available config:
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /media/Data/webroot
<Directory />
Options FollowSymLinks
AllowOverride None .....

View 5 Replies


ADVERTISEMENT

Ubuntu Servers :: Changing Document Root On Apache2?

Mar 14, 2010

how can I change the document root from /var/www to another folder? I cannot find anything in the apache2.conf or httpd.conf.

View 2 Replies View Related

Ubuntu :: Apache2 Redirect After Changing 'Document Root' From /var/www?

Apr 2, 2010

In /etc/apache2/sites-available/default, I changed my 'Document Root' and 'Directory' from /var/www to /var/www/newdir.have an index.php file in /var/www/newdir I use to authenticate, but when I try to redirect back to index.html in /var/www, i get a 404 error.Anyone have info / know where the link to this discussion is

View 5 Replies View Related

General :: Apache Can't See Document Root

Feb 9, 2011

I have set up apache on Centos 5.5 and am struggling with vhosts set up.With the config I have set apache will correctly serve sites with a document root of

/var/www/html/home/myuser/public_html
but not /home/myuser/projects > ls -al
shows public_html and projects as having identical permissions (755)

View 11 Replies View Related

General :: Apache Won't Redirect To New Document Root

Jun 20, 2011

I've set my document root directory in httpd.conf to the directory I want to serve files out of, and set Options to Indexes FollowSymLinks; I've saved the configuration file and restarted apache, yet when I direct my browser to the domain name that's seated there, I can't get at my index.html which exists there. It serves index.html when it exists in the natural document root.

View 8 Replies View Related

Server :: Execute CGI On Apache Document Root

Mar 18, 2010

how can I run CGI scripts that are without extensions under the document root?i can not use ScriptAlias on the document root, i can run .pl scripts but i cant run any script without extension...ofcourse all files are executable on the fs.

View 8 Replies View Related

Software :: Apache Document Root Conflict

May 21, 2009

I have a VPS (Mosso Cloud Server) that is administered and monitored by Platinum Server Mgmt. I have CentOS 5 and Apache 2.2 installed.I requested that my Document Root be set to /var/www/JPDemole.com/ and also a subdomain setup to /var/www/test.JPDemole.com/

They responded by telling me that it would, "[This would] cause a problem with the permissions and that it will be a permissions conflict if you set them to /var/www/. For security and compatibility purposes, they should be in /home/username/.... It can be put anywhere in there."

This is the first time I've been involved with any server administration, but while coding on numerous private vps's before, they had a setup similar to what I was requesting.Am I incorrect in my understanding of the previous situations and the Mgmt company is in fact correct?

View 5 Replies View Related

General :: Apache Virtual Host Document Root ?

Sep 9, 2009

I'm now configuring my web server to server different Virtual Hosts based on DNS name. Right now I store my files in /var/www per the default installation settings in Apache.

Questions:
I want to change the Document Root to /home/username/public_html/example1.dyndns.org for the second virtual server. What do the permissions need to be in order for Apache to read the files in this location? Would it be best to force Apache to run as this new username instead of www-data?

My Virtual host setup will look something like this

I want to change the DocumentRoot as I am running a chrooted ProFTPd server and want to be able to update webserver files via FTP. I am running Ubuntu 8.04 LTS Server (CLI only).

View 5 Replies View Related

Server :: Change Document Root Apache Fedora?

Mar 19, 2010

I want to change the DocumentRoot on my Apache httpd server.

I have Changed it from the default to var/www/projects

but its not working.

[CODE]
### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.

[Code].....

View 178 Replies View Related

Ubuntu Servers :: Apache Document Root External Hard Drive

Apr 28, 2010

I am trying to use my external hard drive to store webpages and on the webpages it is uploaded to the folder. When i navigate to the address it says it is forbidden. I also noticed that it would not let me upload files to the folder it says i do not have permission. Can someone help me get passed the barriers. The hard drive is ntfs.

View 7 Replies View Related

Software :: Apache - Make Aliases To Folders Outside Of Main Document Root - Access Forbidden

Jun 9, 2009

I am on mac os x and whenever I make aliases in my apache config file to point to folders outside of main web document root folder, I get access forbidden. I have chmod -R 777 the whole destination directory (to test it) and still no go. Access forbidden. I have also tried pointing directly to [URL].

View 1 Replies View Related

Server :: Apache Document Not Exist Error

Jan 31, 2011

I am in the process of migrating my old server into new Linux new server. As part of the , apache configuraton is one of the process . i have installed http with yum. i added some test dir like /date/test underwhich i created one test.html. When i start apache , it says Starting httpd: Warning: DocumentRoot [/data/test] does not exist.i am not sure about it. I have directory exists. however it shows the error message.

View 3 Replies View Related

Ubuntu Servers :: Changing Apache Port Gives Error

Jan 5, 2011

My ISP Blocks port 80 so I changed the port to 8081 after I do this and restart Apache and use my IP with :8081 after I get a page saying Not Found The requested URL /index.html was not found on this server. I get this same message if I use my real IP or the IP from my router. What can be causing this?

View 2 Replies View Related

Fedora Servers :: Changing Docroot Apache - Syntax Error

Apr 13, 2010

When I want to change my docroot in /home/Vincent/www or /home/Vincent/www/ it gaves me an.
:Syntax error on line 278 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory

I googled it already and they sad that you have to type in:
chcon -R -h -t httpd_sys_content_t /home/Vincent/www << doesn't work so I tried also chcon -R -h -t httpd_sys_content_t /home/Vincent/www/ But nothing seems to work?

View 1 Replies View Related

Ubuntu Servers :: Apache 403 Error With Changed Www Root?

Feb 9, 2011

I don't know if this the right place to ask this question. If not excuse me.I installed apache server on my ubuntu and I've changed the www folder in etc/apache/.../default from /var/www to home/user/www but now i haveForbiddenYou don't have permission to access / on this server.

View 3 Replies View Related

Software :: Trying To Browse Outside Document Root

Sep 25, 2009

Integrating a website with my billing agent, they suggest:"Make a directory named 'data' outside the document root of your websiteYour password file (.htpasswd) and others will be stored in this 'data' directory. You must create the data directory outside your web root".How do I get around this and get a browser to access my /data directory and not my /var/www/html/data directory?

View 3 Replies View Related

Fedora Servers :: Document Root Must Be A Directory

Jul 30, 2009

I am trying to get apache to start at boot in Fedora 10 but I am getting "Document root must be a directory", I tried to change the Selinux settings with:
chcon -R -h -t httpd_sys_content_t /www

I checked the new settings with ls -aZ and the changes apear to be fine.
apache apache unconfined_u:object_r:httpd_sys_content_t:s0
But I still get the same message on my boot.log file.

View 9 Replies View Related

Fedora :: Change /var/www Document Root Folder?

Dec 25, 2010

I wanted to know is there anyway we can change the document root location /var/www to some other custom location. I tried modifying this location information in couple of conf files in /etc/httpd, but I started receiving lots of error messages from selinux on labelling issues. So I had to revert back.

View 6 Replies View Related

CentOS 5 :: Apahce Document Root Location Conflict

May 21, 2009

I have a VPS (Mosso Cloud Server) that is administered and monitored by Platinum Server Mgmt. I have CentOS 5 and Apache 2.2 installed. I requested that my Document Root be set to /var/[URL] and also a subdomain setup to /var/[URL]. They responded by telling me that it would, "[This would] cause a problem with the permissions and that it will be a permissions conflict if you set them to /var/www/. For security and compatibility purposes, they should be in /home/username/.... It can be put anywhere in there." This is the first time I've been involved with any server administration, but while coding on numerous private vps's before, they had a setup similar to what I was requesting. Am I incorrect in my understanding of the previous situations and the Mgmt company is in fact correct?

View 1 Replies View Related

Fedora :: Error Saving The Document <filename>: Write Error. The File Could Not Be Written

Jun 5, 2010

I open an ODS file and edit it and save, fine. But sometimes and for no readily apparent reason it refuses to save the document with the error message:"Error saving the document <filename>: Write error. The file could not be written". I have upgraded my version of OpenOffice but the issue remains. Once it starts with that error the only way to save the file is to actually abandon my change and restart OOffice. Today I lost an hours stuff as the auto save was also failing but not giving me any warning it was failing. I'm not sure if this is an OpenOffice, file system, Fedora or permissions issue though I've not noticed anything similar with other applications. Have set permissions to 777 but still get the error.

View 3 Replies View Related

General :: Changing User For Apache / PHP?

Oct 25, 2010

I have to develop a php script, that acts as a man-in-the middle for a db-like-software and a webshop. This should run on a server within a DMZ, behind two firewalls, that should filter every request from other sources, than the eshop, and any other protocol than HTTPS. This server is a debian-machine, with a apache 2.2 and php 5.3. I've installed apache and php without any problems, installed openssl, generated a certificat and installed it. I tested the connection successfully. The eshop-server can connect to the server inside the DMZ without problems and receives a correct answer.

The db-like-software (called "netbasic") generates a csv-file in a fixed directory. this csv-fils has an owner called "netbasic". The file-access-rights are: -rwxr--r-- (I've some problems to interpret this. I know, r stands for read and w for write, x for both and the order is for different usergroups). My problem is now, that my php-script tries to read the file (successfull), generates output (successfull) and then deletes the file (failed -> permission denied). I figured out, that the problem is, that apache (or, I don't know, just php) don't runs as root and has therefore no write-permission. Because the server is already secured with the firewalls, we, my workmates and me, don't see a problem, to change the apache-user to root. but I don't know how this is done and don't know, what to search for.

View 7 Replies View Related

Ubuntu :: Get Xsane To Scan A Document And Have It Display As A Full 8.5x11 Sized Document Instead Of Something Half That Size?

Mar 13, 2010

how to get xsane to scan a document and have it display as a full 8.5x11 sized document instead of something half that size? I've been trying and trying and can't seem to figure it out.

View 3 Replies View Related

Fedora Servers :: Changing Cgi-bin Folder In Apache

Jun 17, 2009

I've run into some problems trying to change the default cgi folder from /var/www/cgi-bin to /var/www/cgi-local (in order to migrate scripts from a much older server to a new one). I have edited httpd.conf to modify the following:

Code:
ScriptAlias /cgi-bin/ "/var/www/cgi-local/"
#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-local">
[Code]...

I have also tried several variations. I left ScriptAlias at the default "/var/www/cgi-bin" and I have tried it with AllowOverride None and without the +ExecCGI after Options. I am getting a 404 error when a form has an action directed at a cgi script that is in cgi-local.

View 4 Replies View Related

Debian :: Apache 2 - Changing DocumentRoot To Public HTML

Mar 25, 2010

I'm pretty new to Debian, and I'm trying to set up Apache 2, and I want to set the DocumentRoot to public_html in my home dir, but I run into some problems.

I tried to change this (/etc/apache2/sites-available/default):
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None .....

When I restart apache I get a 403 error, and when I change it back to its original, it works fine. I want to change the DocumentRoot so I can upload files via FTP to ~/public_html.
~/public_html has the mode 777.

View 9 Replies View Related

OpenSUSE Network :: Document Is Referencing 10.2. Or A Document For Use With SLED?

Jul 6, 2010

Anyone have better documentation or an update to the this version of the file Tomcat HOWTO openSUSE as that document is referencing 10.2. Or a document for use with SLED.

View 3 Replies View Related

Ubuntu :: Changing Ownership From Root

Nov 7, 2010

I have an external usb hard drive, vfat, mounted as /media/USB STORAGE. It has on it's own(?) changed it's ownership to root. I need to change it back. I have tried 'sudo chown -R pbhill : pbhill /media/USB STORAGE' and get the message that no such file or directory exists. I can access it read only, so I know it exists. Am I using the correct command?

View 9 Replies View Related

OpenSUSE :: Error: Repoindex.xml[1] Document Is Empty

Dec 20, 2010

Starting Yast and then config. repos. gives this error: There were errors while restoring the repository configuration. Error refreshing service Packman Repo (http://packman.inode.at/suse/11.3/packman.repo):Parse error: repoindex.xml[1] Document is empty

If I continue my repo list and software management both come up okay and function as they should (nothing noted yet anyway). Is this just something that glitched when adding the Packman repo and the file repoindex.xml[1] should be deleted?

View 3 Replies View Related

Server :: Apache Changing Port For Godaddy's Simple Control Panel

Apr 11, 2011

On Godaddy's Simple Control Panel for their dedicated servers, the URL defaults to URL... I would like to change the location to URL....

View 1 Replies View Related

Ubuntu :: Changing Ext Hd Ownership From Root To User

Apr 17, 2010

I just got a 1.5 terrabyte Western Digital My Book 1110 external usb 2 drive. I used Gparted to reformat the drive to ext3. The problem I have is I can't change the file permissions for the drive because it says the drive is owned by root. I can't back up my files into the drive because it won't allow me to. I am using Jaunty Jackalope and got this drive to back up my files so I can feel comfortable in upgrading to Karmic Koala in case there are major problems with the upgrade.

I know someone out there in the community can tell me the commands to use in the terminal to let me gain ownership of this external drive from root so I can copy my files into it. the entire drive itself is seen as /dev/sdb One meg of the drive is unallocated and the part of the drive that I reformated is seen as /dev/sdb1 my personal files are owned by the name of dave

View 6 Replies View Related

Fedora Servers :: Copied The Web Page Files To Its Document Root <var/www/html> & Disabled The Default Web Page?

Jun 8, 2009

I have apache httpd server on my Fedora 10I got 2 problems:First : I copied the web page files to its Document Root <var/www/html> & Disabled the default web page. But when I visit http:/localhost ,it shows up the list of files in <var/www/html> as if a ftp server browsed in web page. So how can I set http://localhost load my default web page index.html ?Second :I want to set up a web server on Internet through my router . I applied for DDNS account & input it into router correctly . I set virtual host in server to redirect any access from port 80 to 192.168.1.2:80 in LAN . Just for in case , I also download and running the DDNS software & installed it on PC 192.168.1.2 in LAN . My DDNS provider is oray.cn . It's a Chinese server provider . I don't think there is anything wrong with oray.cn . But if you need its information just visit oray.cn (Google can translate it for you). So I want to know did I miss something to set up a web server in this kind of situation

View 2 Replies View Related







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