Ubuntu Servers :: Setting Default Folder An External USB Drive - Apache2?

Aug 22, 2010

i have set up my Apache2 server and i have this question. Because my netbook (eeePC 701 4g surf) has a very small SSD Drive (4GB) is it possible to set the default directory of apache to be an external USB Drive? And if it is, how?

View 2 Replies


ADVERTISEMENT

Ubuntu :: Multiple SSL Certificates In The Default-ssl File In /etc/apache2/sites-available/ Folder?

Aug 16, 2011

How can I allow multiple SSL certificates in the default-ssl file in /etc/apache2/sites-available/ folder? I tried

Code:
NameVirtualHost *:443
And
Code:
<VirtualHost *:443>
but I get the error

[Code]...

View 2 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 :: Setting Up Mod-musicindex Apache2

May 6, 2011

So, I followed this initially: [URL]

Now going through the readme here: [URL]

I setup /var/www/music in apache with a symlink to a mountpoint (the mount point points to a folder on a windows box. mnt/falconu points to something like U:filesmp3). The symlink is /var/www/music/p.

When I go to mysite/music everything seems to load fine, I see icons, etc. However, when I click on "p" symlink dir I get 403 forbidden You don't have permission to access /music/p/ on this server.

Here is what I put in sites-available:

Code:
<Directory /var/www/music>
Options Indexes MultiViews FollowSymlinks
AllowOverride All
Order allow,deny

[Code].....

View 1 Replies View Related

Ubuntu Servers :: Add A Directory In Adition To Default 'www' To Apache2?

May 11, 2011

I have been searching the web and Ubuntu forums all day looking for an answer to what I initially thought would be a simple thing to do. I have set up a lamp server and started creating my network site, however was not long before I ran into an issue with fire fox not allowing me to access locally linked files that are shared on the network which works fine in IE. after several hours of trying to find a work around, I have been unsuccessful in creating a link that would work in both IE and FF.
so I got this bright idea see, to just make the website include the network shared content, unsharing them of course and simply adding them to my Apache server, well the more I read the more confusing it all became. do I use simlinks or do I create a server for each location/hard drive?
I really need a how to for big dummies on adding additional directories to Apache similar to adding virtual directors to IIS for windows.

View 3 Replies View Related

Ubuntu Servers :: Configure Apache2 To Proxy That Folder To Jetty Using Mod_proxy?

Mar 20, 2010

I have a php app set up in the default virtualhost, and want to add a Grails app. The grails app runs on [URL] and I want to configure apache2 to proxy that folder to Jetty using mod_proxy.

Module is enabled

Code:

$ sudo a2enmod proxy
Module proxy already enabled

[code]....

Quote:

[Sun Mar 21 00:14:56 2010] [warn] proxy: No protocol handler was valid for the URL /mailscan. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule. My apache2.conf contains no LoadModule lines, and a2enmod says it's already enabled. Does Ubuntu Desktop (Karmic) use the DSO versions of modules, or did I miss something else? I'm aware I should also use mod_proxy_html to make sure only the "portless" version of the address is outputted, but I can fix that later!

View 1 Replies View Related

OpenSUSE :: Setting Default Action For Folder To Open In New Window

Nov 25, 2010

Is there a way to set the default when clicking on a folder to open in new window? The default action appears to open in the same window. I've gone though every Dolphin option I can find, and there does not appear to be any setting that affect this. Konqueror DOES have a setting, but it seems to be ignored. I am running Suse 11.3, KDE 4.4.

View 3 Replies View Related

Ubuntu :: Using Rsync To Sync Music Folder To Another Folder Called Music On An External USB Drive?

Nov 25, 2010

I am thinking of using rsync to sync my Music folder to another folder called Music on an external USB drive. I will be using the Scheduled Tasks front end to schedule the syncs. What should the syntax look like when I put it in Scheduled tasks. I want this to be as simple as possible.

View 8 Replies View Related

Ubuntu :: Setting Up A Wireless - Bluetooth External Hard Drive

Jun 25, 2010

Basically I want a shared hard drive plugged into my wireless router and for the family (me and my girlfriend until the little one grows up) to be able to access common files on the same external without the desktop needing to be on.

How to do this?

Do I just use any external? Does it have to have its own power source if plugged into a router? If I have a networking router how do I access those neat features that seem to be written for WIndows?

There are too many things I like about Ubuntu to go back to Windows, but I would like some tips on having a shared external hard drive via the wireless router instead of dropping money on a new bluetooth enabled router.

View 2 Replies View Related

Ubuntu :: Auto-mount External Drive To Folder

Sep 26, 2010

The solution may to my problem may exist elsewhere, but I had trouble searching/finding it.I just bought a new external drive. The drive is formatted as ext4. I use it mainly in esata mode. Whenever I connect it, it mounts to /media/[UUID], where "[UUID]" is the UUID of the drive. I want it to be located at /media/backup when it is inserted, not in relation the UUID. I have tried putting a new line in my fstab (mount by UUID to folder) to mount the drive. It mounts correctly if the drive is connected to the computer and turned on during startup, but if the drive is off/not connected during startup Ubuntu barks at me. (I press 's' to skip mounting the drive) Is there a way to make external/removable drives mount to a certain location other than /media/[UUID] when they are inserted? I want the drive to mount to the folder while the computer is running, not only during startup.

View 3 Replies View Related

Ubuntu Servers :: Setting Up Apache2 SSL In Ubuntu?

Apr 9, 2011

I've tried looking for involving Apache2+SSL isn't really up-to-date with the newest Apache2 release. I can't seem to find a good one. Does any site admin have any suggestions on where I should start?

View 1 Replies View Related

Ubuntu Servers :: 10.04 LTS : Change Default Setting For Stacksize?

Jul 7, 2011

Using the 'limit' comand in tcsh, I can adjust stacksize etc. I can put this in my .login file, but what I actually want is to set this system-wide as a (larger) default then it is now (including for bash if possible).

View 3 Replies View Related

Software :: Setting Read / Write Permissions For External Drive?

Mar 31, 2010

I am using sun micro system. We have installed fedora in that. I want to know how to give R/W permission to a external hdd...

View 1 Replies View Related

Ubuntu :: How To Sort Folder And File Names On External Usb Drive

May 6, 2011

i recently bought an external 2 TB usb drive and connected it to a philips dvd player. all movies play just fine but I noticed that folder and file names are not displayed on the screen in alphabetical order but in the order they've been copied to the drive.now, i found the way to fix it by using this program: URl...the thing is it won't start in wine.so, is there any way to sort directory tables under ubuntu?

View 4 Replies View Related

Ubuntu Servers :: Apache2 - Browse Directories In /var/www From Firefox - Error "The Folder Contents Could Not Be Displayed"

Aug 16, 2011

I recently installed Apache on Lucid Lynx (Macbook 1.1) using the following tutorial: [URL] Everything appears to work correct except that when I browse http://localhost/ in Firefox, I cannot see any of the directories. Although, files such as html documents are visible. When I view the /var/www directory using the default graphical file browser, all of its child directories have Xs over their icons. When I attempt to open the directory "js", the following error message displays:The folder contents could not be displayed.
You do not have the permissions necessary to view the contents of "js".

I figured this was preventing Firefox from viewing the directories. So I launched it with the "gksu" command to see if it would help. I still couldn't see directories when browsing http://localhost/ I'm basically trying to achieve functionality identical to the MAMP local server for Mac OS X. I'm about to start a LAMP project for a new client so having this up and running is important!

View 5 Replies View Related

Fedora Networking :: Can't Share A Folder On An External USB Drive?

Jan 23, 2011

I am having the following problems with samba.

1. I cant share a folder on an external USB drive. (I have no problem doing so in UBUNTU)

2. I cannot seem to get Samba Swat to work.

I've Tried 127.0.0.1:901
my ip address:901
severname:901

I made sure that xinet was installed and started as well as smb and nmb. I can access other shares on the server just cant get samba swat to work nor can I set up a share on an External USB. I can access it from my side but not my Wifes side. I even made the root of the drive a share like so:

in smb.conf
[FreeAgent Drive]
comment=Shared Server Drive
path= /media/FreeAgent Drive
read only = no
browseable = yes
create mask = 0777
directory mask = 0777
valid users = argedion, perky

what am i missing or doing wrong? I have a simular set up on a server running UBUNTU 10.10 and it is sharing paths from a USB external. (note: I did not have to share the root of the drive in ubuntu.)

I know that Fedora is not UBUNTU nor GOD willing will it ever be. forgot to mention that firewall is off and i cannot access it even as root

View 14 Replies View Related

Ubuntu Servers :: Setting Apache DocRoot To Folder In Home Directory

Jan 9, 2010

Vanilla install of Karmic (64 bit) - would like to change the Apache doc root to point to /home/sam/www as it's my web development machine. (Default install is working fine)
Created copy of 'default' to 'mylocal' in '/etc/apache2/sites-available'

Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/sam/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/sam/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
...

The permissions on the folder in my home dir:
Code:
sam@rocket:~$ ls -la ww*
total 16
drwxrwxrwx 2 sam sam 4096 2010-01-09 22:26 .
drwx------ 35 sam sam 12288 2010-01-09 22:11 ..
-rwxrwxrwx 1 sam sam 100 2010-01-09 22:27 index.html
sam@rocket:~$ pwd
/home/sam
sam@rocket:~$
The sites enabled set up:

Code:
root@rocket:/etc/apache2# ls -la sites-enabled/
total 8
drwxr-xr-x 2 root root 4096 2010-01-09 22:24 .
drwxr-xr-x 7 root root 4096 2009-12-20 00:22 ..
lrwxrwxrwx 1 root root 26 2010-01-09 22:24 mylocal -> ../sites-available/mylocal
But I still get:
"Forbidden
You don't have permission to access / on this server".

View 8 Replies View Related

Debian Configuration :: External NTFS Drive Not Mounted Writable By Default?

Feb 20, 2010

When I plug in my external USB Hard drive which is formatted as a single NTFS partition, it is recognized and mounted automatically, a nautilus window pops open. Unfortunately it is not writable. The reason is: the partition is mounted "ntfs" (which lacks write support) instead of "ntfs-3g". This is the output of mount after plugging in the drive:

$ mount | grep sdc1
/dev/sdc1 on /media/4EBC5FB82435B0EE type ntfs (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,dmask=0077)

I want this partition to be writable by just plugging it in.

The partition should not have any errors because a) I fsck'ed it windows and b) mounting it manually works:

$ sudo mount -t ntfs-3g /dev/sdc1 /media/disk_/
$ mount | grep sdc1
/dev/sdc1 on /media/disk_ type fuseblk (rw,allow_other,blksize=4096)
$ devkit-disks --mount-fstype ntfs-3g --mount /dev/sdc1
Mounted /org/freedesktop/DeviceKit/Disks/devices/sdc1 at /media/4EBC5FB82435B0EE
$ mount | grep sdc1
/dev/sdc1 on /media/4EBC5FB82435B0EE type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
$ gnome-mount -nbtd /dev/sdc1
$ mount | grep sdc1
/dev/sdc1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

How can I get ntfs drives to be mounted as writable by default, preferrably without having to modify fstab?

View 1 Replies View Related

Software :: Change Default Noexec To Exec For All Partition In An External Drive

Jan 15, 2010

Whenever I plug an external harddrive to a CentOS system,all partitions mounted will have noexec that makes my binaries or script files not executable.

Quote:

[root@centos52-64-dell ~]# mount
/dev/sda3 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)

[code]....

I have to remount it using, e.g.,

mount -o remount,exec /dev/sdb1

But I am sick and tired of doing it everyday. What I can I do ?I don't want to use /etc/fstab to solve this problem becauseit will cause booting problem (curable though) when the hard drive is not around.

View 1 Replies View Related

Fedora Servers :: User Setting - FTP - View / Edit Files In One Certain Folder

Apr 17, 2010

I have installed Fedora 12 x86_64 and vsftpd. I would like to set up an user for FTP so that he/she could only view/edit files in one certain folder (the one that I set up). How would I go about doing that?

View 2 Replies View Related

Ubuntu Servers :: Why External / USB Drive Not Mounting

Mar 7, 2010

Output of blkid:

Code:
/dev/mapper/Tsunami_LVG1-LV_home: LABEL="home" UUID="cad22752-aca8-49c7-94b1-f08423819705" TYPE="xfs"
/dev/mapper/Tsunami_LVG1-LV_swap: TYPE="swap" UUID="5e1918d5-3a07-4dc5-8216-c4c0f4d1e341"
/dev/mapper/Tsunami_LVG1-LV_root: LABEL="root" UUID="cb276fc0-ced3-4926-81b8-757e5b68c4e5" TYPE="ext3"
/dev/sda1: LABEL="boot" UUID="d00cac4f-6873-4188-b6e2-902740454ba1" TYPE="ext2"
/dev/sda5: UUID="T2wwpd-lG9L-IrHz-BfAx-pVse-3C9a-rBjT1R" TYPE="lvm2pv"
/dev/sdc1: UUID="504A0C654A0C4A64" LABEL="SEAGATE300" TYPE="ntfs"
/dev/sdd1: UUID="F8C85616C855D38A" LABEL="Expansion Drive" TYPE="ntfs"
/etc/fstab contents: .....

Code:
fuse: failed to access mountpoint /media/tb1: Input/output error

View 2 Replies View Related

Ubuntu Servers :: External Drive Not Automounting

Jul 16, 2011

I have a home server running from a Kubuntu install. I am using a partitioned external hard drive to store media. I have been suffering from power outages and I have discovered my external drive will not automount. How do I get my drive to mount at boot?

View 3 Replies View Related

Ubuntu Servers :: Backing Up A Server To An External Drive?

Jul 17, 2010

I have an Ubuntu server running Lucid. I'd like to be able to back up the hard drive in the server to an external hard drive. I try to plug in a drive via a USB port and it doesn't appear to mount automatically, as it does on the desktop version. Questions: 1) What/where should I be looking for to see if the drive is mounted? (I've looked in /dev and /media; no dice.) 2) What's the mount command I should use to manually mount the external hard drive? 3) What backup commands or programs, other than rsync, are recommended? (Nothing against rsync.)

View 5 Replies View Related

Ubuntu Servers :: Mounting External Ntfs Usb Drive?

Mar 25, 2011

I have been trying to use fstab, writing a script in /etc/init.d to mount my external ntfs usb drive. I have had absolutely no luck and I have tried just about every solution I could find on the web except for writing a udev rule which I have never done so I am not exactly sure how.

My solution for the interim is to put the mount command in the rc.local file. That works, but I don't understand why I can use fstab to mount it. Putting it in the fstab gives me errors like "unknown file system" or just "An error occurred during mounting of drive" and then the booting stops. I tried using both ntfs and ntfs-3g.

View 5 Replies View Related

Ubuntu Servers :: Mounting External Usb Hard Drive?

Jun 19, 2011

I have attached a 1.5 TB external hard drive to my new Ubuntu server. I mount it in /media/external. I used sudo mount /dev/sdx# /media/external but sdx# keeps changing. I added a line to fstab to mount it permanently but after couple of our it unmounts itself and /media/external is empty. It is in vfat format but webmin shows it as ntfs.

Quote:
cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).

[Code]...

View 9 Replies View Related

Fedora Servers :: Samba Share On External USB Drive?

May 29, 2009

I have a server which currently has a samba share for a printer and my home directory. Both have been working fine for a while now. I have a drobo (which is like a little USB RAID machine) connect via USB to the linux box. While trying to share it via samba I get weird messages from my windows machine (see screenshot). I have tried to share multiple folders on this drobo and no luck, all the same result.

I also tried a symbolic link, no good.

Here is a screen shot
http://aivila.com/temp/screen.jpg
Here is my smb.conf file:
Code:
[home]
path = /home/savona
read only = no

[Code]...

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

Ubuntu Servers :: How In World Can I Change Permissions Either On Drive Or Folder

Jul 10, 2011

I had an old windoz 2003 server running a few recreational web sites. I've grown tired of all the hacking attempts, FTP floods, etc. Ok.. I've grown tired of windoz period.When I set the server up, I had the operating system on one physical drive and stored all of the web files on a separate physical drive just in case I ever wanted to make some changes to the operating system.in my adventurous ways, I've dumped windoz and installed ubuntu 11, 32 bit server edition on this machine. It is running fine from what I see on the server side. The first problem I've noticed is when even attempting to navigate to localhost through the server's web browser, I get a permissions issue.

So... off to the drive where the httpd.conf file points to. This is the second physical drive. When checking permissions and attempting to change them to the correct ones for the folder, I can't change them. I've tried through the GUI and the terminal as root. Neither way will change the permissions.I've stepped back and checked the permissions on the physical drive the files are stored on. I am having the same issues with the drive itself. How in the world can I change the permissions either on the drive or the folder? Is there something I should do as far as the drive's mounting?

View 3 Replies View Related

Ubuntu :: External Hard Drive - Error "read / Write Permissions" On The Folder Properties

Dec 16, 2010

i borrowed an external hard drive from my friend to back up a load of stuff on my windows partition before reinstalling it. I am doing this through ubuntu. I am trying to zip up folders like My Documents etc and chuck them on the external hard drive but it always comes up with errors to do with read/write permissions. In the permissions tab on the folder properties of the ext hard drive it says I am owner but i have no file access (only folder access is create and delete files). When i try to give myself read/write permission it just goes straight back to nothing when i look at it again.

View 2 Replies View Related

Ubuntu Servers :: Change File Or Folder Permissions On A Separate Internal Drive In 10.10?

Jan 23, 2011

Every time I try to change file or folder permissions on a separate internal drive in ubuntu 10.10 desktop in sudo file manager, It sets it right back to the way it was before and doesn't save the permissions I want to change it to. The files aren't critical system files that are not even existent on this hard drive.

Its on a completely separate drive, Yet aren't I suppose to be in control of what gets changed to what? Instead of a Operating System doing something just for my safety? A simple AVI files permissions being changed shouldn't hurt anything. How to I stop ubuntu 10.10 from auto setting the permissions of my folders and files? Its really starting to me off right now. I've been looking around on google for Auto reset permissions for ubuntu, Haven't found one word about it. Yet I'm just going to assume someone might know how to resolve this? Or has dealed with this before.

I'm just trying to Forcefully set my folders on my separate drive all to 777 because they are all 775 and 755 and I can only access them with Write privileges if I run the SUDO file manager which I really hate having to do every so often I'm sure you can relate to how annoying it is to have to open up terminal and type something in to open a fully priviledged file manager.

View 5 Replies View Related







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