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


ADVERTISEMENT

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

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 View Related

Ubuntu Servers :: Apache2 Vhost Stopped Working After Changing Routers Internal Ip

Apr 8, 2011

I run ubuntu 10.10 with apache2 and have 2 virtual hosts set up

here is an example of one of the virtual hosts

<VirtualHost *:80>
ServerName blah.endofinternet.org
ServerAlias blah.endofinternet.org
ServerAdmin davidboychuck@gmail.com
DocumentRoot /var/www/blah

[Code]....

Everything was working perfectly until i changed the internal ip of my router from 192.168.1 to 192.168.192 and now virtual hosting no longer works. As far as I can tell everything is setup correctly. I made no changes to the configuration files. Vhosts just literally stopped working. I've tried clearing dns cache not sure what to do at this point. I have tried to a2dissite and then a2ensite and reload the configurations but it literally just seems like apache is not looking for the vhosts in /etc/apache2/sites-enabled even though my apache2.conf still includes them

#Include the virtual host configurations:
Include sites-enabled/
From the apache error log:
[Sun Apr 03 16:41:50 2011] [error] [client 66.249.72.208] script '/var/www/index.php' not found or unable to stat

[Code].....

It looks like it's just not trying to use the vhost document root because when i go to blah.endofinternet.org it just takes me to the default site.

View 2 Replies View Related

Ubuntu Servers :: Take Apache2 Away From Root?

Feb 4, 2010

I think my apache2 is owned and running as root. I don't know if I installed it like a noob a while ago but I would like to secure it now especially since I just figured out how setup virtual hosts and I may want to eventually let people host sites on my server and I obviously don't want to have to give them root access. How can I confirm that apache2 is running as root and how do I take it away from the root user?

View 6 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

Ubuntu Servers :: Apache2 Change Root Forbidden 403?

Aug 13, 2010

Long story Short, I had to reinstall 9.10 (after a failed 10.04 upgrade) and therefore fresh install of everything.

I installed Apache2 as per [URL] and all works fine.

Changing the root in /etc/apache2/sites-available/default to a folder in my home directory /home/user/subfldr1/www results in a forbidden 403 error.

I've tried changing group owner, given 777 permissions, read and tried all sorts of solutions, but nothing seems to be working.

View 3 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

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

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

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 :: 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

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

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

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

Ubuntu Security :: Free Timestamping Document Servers?

Sep 1, 2011

Does anybody know a trustfull authority to provide Timestamping for documents for free?

View 2 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

Ubuntu Servers :: Apache2 - 98 - Address Already In Use

Aug 29, 2010

I am using Ubuntu Server 10.04 64bit. I am getting an Apache2 start up error after I setup my certificates and configure Apache2 for HTTPS. At the point on start up where I need to type in my certificate pass code I get a lockup due to the Apache2 process being in a hung state. I reboot if needed and switch to console tty2. When I type in the command.

Code:

I get the following error.

Code:

To correct the problem I do this.

Code:

From the output of the command above I look for the apache2 process and make note of its process ID. Then, I kill that process ID. For example, the command below has an apache2 process ID of 1131.

Code:

Next, when I run this command.

Code:

The apache2 server starts up and asks for my certificate password, accepts it when I type it in, and runs perfectly fine afterward.

Fortunately this instance of Ubuntu Server is running inside a VMWare virtual machine. I can just "pause" the virtual machine if I need to rather than going through this crude and tedious start up process too frequently.

Crude and tedious are feelings I'm having too frequently lately with Ubuntu Server.

View 5 Replies View Related

Ubuntu Servers :: Apache2: Php Not Parsing

Oct 18, 2010

I've reinstalled my system and installed apache. I've installed php5. 'a2enmod php5' returns with a message telling me that php5 is already enabled.

However, this code does not parse:

Code:
</php
phpinfo() ;
/>

I get a blank page. When I view the source code for the page, I see the php code.

How do I get php to work?

View 3 Replies View Related

Ubuntu Servers :: Setting Up Apache2 With SSI The *right* Way?

Jan 5, 2011

So I've got a box running 10.04LTS Server, and on it is running the latest build of Apache2.It's a home box - a server set up for the sole purpose of experimenting and having fun with. So far, the fun is mostly breaking it over SSH and then fixing it when I get home and can log into it via recovery.What I really want to do is to get this box set up with Apache2 the way it seems like it was designed - with Apache2 serving web pages from its default file location (/var/www) but also being able to log in and upload/download new web page files to that directory over SCP or SFTP. I keep hitting snags.Here's what I've done so far:

1. The server is set up in a DMZ at home and my router updates a Dynamic DNS record; so far I can SSH into it no problem.

2. Apache is working. I get my "it works!" page when I enter either the IP or the dyndns domain name.

3. SFTP is sort of working. I can log on using WinSCP and see the files and download them, but I can't upload to the default directory with my normal login.

Here's my issues: 1. I want to set up Apache *correctly*. To me, that means leaving it pointing to the default directory, but still being able to upload to that directory. I have not (and probably will not) enable the root account. I've set the permissions to 755. I've tried chown'ing the directory, but then it seems I can't view the webpages.As a workaround, I created a www folder in my default user home directory and pointed Apache2 there in the 'default' file in /etc/apache2/sites-available. The changes read as follows:

Code:
DocumentRoot /home/username/www
<Directory />
Options FollowSymLinks[code]...

That gives me a workaround for the default directory SFTP issue, but I would rather learn what I need to do to have it set up and working with default values.

2. You may notice I added Includes under the Options. My goal is to get server-side includes working. But they aren't. I have some existing webpages my work has set up - I using these as a template to use to adapt a flash movie I made to a specific resolution, as well as to learn how to optimize my flash for a webpage. Our webhost uses virtual hosting; I am not yet doing so. I'm not sure what they've done to set up the server-side includes, but the files they are using are all html files - no shtml. The include files themselves have either .htm or .html extensions. All of the pages have .html extensions.

My reading said that I need mod_include installed in Apache2. Where can I check to see that it is installed? Where do I need to add the Includes under Options?Is it in the right place? And finally, where do I need to add XBitHack on to enable it? This is the method that Apache suggests, but the documentation offers no clue as to where to put it. Most of the documentation out there refers to apache.conf, but that's the Apache 1.3 way of doing things.I really just want this to be set up according to the defaults as much as possible.I want to have a good working knowledge of Apache and of how to set it up and configure it, but dang it if it isn't a frustrating process.

View 8 Replies View Related

Ubuntu Servers :: Removed Apache2 But It's Still There?

Mar 8, 2011

I'm very baffled by this, I was setting up my mumble server since my old one had a hard disk failure. I was messing around with web registration but decided I didn't want it since this server is really only for a few friends.

So I removed all the mumble-django and apache2 packages required for web registration, but for some reason apache2 is still on my system and listening for connections.

terminal output below to further clarify.

Code:
Linux voiceserv 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:29 UTC 2011 i686 GNU/Linux
Ubuntu 10.10
Welcome to Ubuntu!

[Code].....

View 3 Replies View Related

Ubuntu Servers :: Apache2 Not Accessible From LAN

Apr 1, 2011

I have a problem with apache server. The thing is - I can connect to my server on localhost, but when I try to connect from local network, it doesn't reply.

I can ping my web server from lan. I can ssh my web server from lan.

I haven't modified iptables since install except these commands>

Code:
iptables -A INPUT -p tcp -s 0/0 --sport 1024:65535 -d $MY_SERVER_IP --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp -s $MY_SERVER_IP --sport 80 -d 0/0 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT

[Code].....

View 1 Replies View Related

Ubuntu Servers :: Cant Uninstall Apache2?

Apr 9, 2011

So i want to remove Apache2 so i can compile my own edited version. But when i do it says that it cant remove it. here is a 'log':

Code:
geisst@ubuntu:~$ sudo apt-get purge apache2
Reading package lists... Done

[code]....

View 5 Replies View Related

Server :: Debian Apache2 Rewriting Subdirectory To Root Breaks Accessing Cgi Scripts

May 25, 2010

OS: Debian 5.0.4
Server: Apache2

I've used mod_rewrite to rewrite my apache2 root (my.server.com/) to point to /var/www/drupal6/ instead of /var/www/. I also have a script installed in my cgi-bin (/usr/lib/cgi-bin) but since the rewrite I can't seem to access it. When I go to my.server.come/cgi-bin/test.pl, I get a page not found from my drupal.

Is there a way I can access my cgi-bin without resorting to accessing my drupal through my.server.com/drupal6/?

Background: I have installed drupal CMS which has a base address of my.server.com/drupal6/ as it resided in /var/www/drupal6/. However I wanted users to be able to access it as my.server.com/ so I added the following into my httpd.conf

Code:
NameVirtualHost *:80
<Directory /var/www/drupal6>
RewriteEngine on
RewriteBase /

[Code].....

View 1 Replies View Related

Ubuntu Servers :: Apache2 Fails To Start ?

Jan 17, 2010

How to resolve this apache2 problem I keep getting, I have installed a debian LAMP server with ispconfig3 and everytime I reboot apache fails to start, I don't know and I have done some research but nothing seems to work, which leads me to reinstall everything from scratch again, I think I have reinstalled at least 10x or more.

When ever I reboot I get the following error

Code:

View 9 Replies View Related

Ubuntu Servers :: Perl .pl, Cgi-bin Apache2 Configuration On 9.10?

Jan 18, 2010

Very new to Ubuntu (linux) in general and read various forum and threads to get .pl file to run on a new Ubuntu 9.10.My cgi-bin is in /var/www/site/cgi-bin. The server will run 2 websites site1 and site 2. Site2 is html only and site1 has some cgi and pl files. Everytime i get to the cgi-bin/other_director the browser tries download the file or even if going directly to index.pl. Please find attached my site-available for both default and site1 for your consideration. I also ran a2ensite site1 and a2ensite site2, the reloaded the apache2 serverQuote:

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www

[code]....

View 2 Replies View Related







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