Help - Search - Members - Calendar
Full Version: Setting a path to the second hd
The Planet Forums > Control Panels > cPanel/WHM
ScubaDave
I need to set a path to my second hd I am using it to upload and download files from a program someone change the apache config but it is not working any help is apreciated the dir I need to set a path to is home2/fileserver i have both set at 777 i do not need to set paswords because my program has users set up here is the conig file that was changed

CODE
<VirtualHost 66.118.xxx.xx>

ServerAlias mydomain.biz

ServerAdmin webmaster@mydomain.biz

DocumentRoot /home/mydomain/public_html

BytesLog domlogs/mydomain.biz-bytes_log

<IfModule mod_userdir.c>

UserDir disabled

UserDir enabled dave

</IfModule>

ServerName www.mydomain.biz



User dave

Group dave

CustomLog /usr/local/apache/domlogs/mydomain.biz combined

ScriptAlias /cgi-bin/ /home/mydomain/public_html/cgi-bin/

Alias /filesystem /home2/filesystem

<Directory /home2/filesystem>

    Order allow,deny

    Allow from all

</Directory>

</VirtualHost>

Thanks
Dave
eth00
What error are you getting? It may have been because some chrooting in apache or php. Check the error_log, that httpd.conf looks ok in itself.

If you are using it as simply /filesystem on your website you could always mount it as /home/user/public_html/filesystem rather then home2. I am not 100% sure but try moving the Alias out of the virtualhost, maybe that is causing it.
ScubaDave
It just wont upload and I dont see an error ,the reason for the path to second hd is that it has 300 gig of space I need all that room any ideas where i can look for a solution?
eth00
Look at what I posted above, if you want to use all 300gb for that simply mount it as /home/user/public_html/filesystem

Or does that not do what you want?
ScubaDave
there is already that dir (home) can this be also mounted there ?
ScubaDave
is there a way to mount it like that is that dir already exists?
Dave
eth00
Yes you have to mount a drive to a directory that already exists. I would first remove the data on the old main drive (or copy to the new drive) or it will be "lost" where you cannot see it but the space will still be used.
huck
There could be any number of issues:

You may need to see if you directory has "FollowSymLinks". From what I understand, apache treats the Alias command similar to a symlink.

Also you could simply enable following symlinks in your apache conf and then link the /home2/filesystem under your public_html dir

within you public_html directory run something like
ln -s /home2/filesystem filesystem

You will now have a symlink to filesystem. Assure that "FollowSymLinks" is enabled in your .htaccess or apache config. If you do it this way, the alias directive will not be required.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.