RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
Useing multiple HDD ?

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
darkm4n



Joined: 24 Jan 2010
Posts: 9

PostPosted: Jan 24, 2010 11:15 pm    Post subject: Useing multiple HDD ? Reply with quote

In my server i have multiple HDD , they are mounted like this example :

sdb1 to /storage1
sdc1 to /storage2
sdd1 to /storage3

and sda is mounted to / ( primary )

Now , this script only use the / partition , /var/www/cgi-bin/uploads for example . How can I make it use all Hdd's includin /storage1 , /storage2 , /storage3 ?

Thanks !!
Back to top
View user's profile Send private message
sherayusuf3



Joined: 18 Jan 2009
Posts: 88
Location: Jakarta Indonesia

PostPosted: Jan 25, 2010 5:05 am    Post subject: Re: Useing multiple HDD ? Reply with quote

darkm4n wrote:
In my server i have multiple HDD , they are mounted like this example :

sdb1 to /storage1
sdc1 to /storage2
sdd1 to /storage3

and sda is mounted to / ( primary )

Now , this script only use the / partition , /var/www/cgi-bin/uploads for example . How can I make it use all Hdd's includin /storage1 , /storage2 , /storage3 ?

Thanks !!



make another Virtual Host like this :
vim /etc/apache/sites-available/new-name-vhost


put and edit code bellow in new-name-vhost
Code:
<VirtualHost yourip:80>
        ServerName server1.mydomain.com
        ServerAdmin me@yusufhadiwinata.com
        DocumentRoot /your/new/home/dir
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /your/new/home/dir/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

#       ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
       ScriptAlias /cgi-bin/ /your/new/home/dir/cgi-bin/
        <Directory "/your/new/home/dir/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog /var/log/apache2/server1.error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined

    Alias /doc/ "/usr/share/doc/"
  <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>


chmod 755 -R /your/new/home/dir or
chmod 755 -R /your/
the root folder must be 755 permission from beginning

cd /etc/apache/sites-available/
a2ensite new-name-vhost
/etc/init.d/apache2 restart
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
darkm4n



Joined: 24 Jan 2010
Posts: 9

PostPosted: Jan 25, 2010 9:51 pm    Post subject: Reply with quote

Thanks !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group