how to access sata drive after installing archlinux

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: how to access sata drive after installing archlinux

Postby moonman » Thu Oct 25, 2012 9:00 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'T')hat is one hacky method. There should be a config setting.

There is, but he will also need to edit php.ini and server config to allow access to that directory. I don't know what http server he is using also.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: how to access sata drive after installing archlinux

Postby iBabu » Fri Oct 26, 2012 7:14 pm

i followed the instruction i get this when i visit the page
can not connect to database, using sqlite3. (open_basedir prohibits opening /usr/share/webapps/owncloud/data/owncloud.db)
iBabu
 
Posts: 32
Joined: Thu Oct 11, 2012 2:43 am

Re: how to access sata drive after installing archlinux

Postby WarheadsSE » Fri Oct 26, 2012 7:33 pm

php.ini needs edited to allow the path.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: how to access sata drive after installing archlinux

Postby moonman » Fri Oct 26, 2012 8:04 pm

Sorry it had to be chmod -R
$this->bbcode_second_pass_code('', 'chown -R http:http /media/part2/owncloud')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: how to access sata drive after installing archlinux

Postby iBabu » Fri Oct 26, 2012 8:18 pm

question, do i run owncloud for the first time and setup admin account and than do those steps? cause i noticed when u install it for the first time and if you haven't done the initial setup than data folder isn't there yet, until you make the first admin account
iBabu
 
Posts: 32
Joined: Thu Oct 11, 2012 2:43 am

Re: how to access sata drive after installing archlinux

Postby iBabu » Fri Oct 26, 2012 8:19 pm

and also are you missing chmod in those steps you gave me?
i did chown -R http:http /media/Part2/owncloud still gives me same error
iBabu
 
Posts: 32
Joined: Thu Oct 11, 2012 2:43 am

Re: how to access sata drive after installing archlinux

Postby moonman » Fri Oct 26, 2012 8:31 pm

is /media/Part2 actually your mountpoint?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: how to access sata drive after installing archlinux

Postby moonman » Fri Oct 26, 2012 9:01 pm

If you want it to do the proper way, edit php.ini

$this->bbcode_second_pass_code('', 'nano /etc/php/php.ini')

CTRL+W to search, and search for open_basedir

add your data direcotry at the end

$this->bbcode_second_pass_code('', 'open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/media/Part2/owncloud')
then you can reinstall owncloud and when it prompts you for the data dir, enter /media/Part2/owncloud

If it doesn't work, play with permissions
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: how to access sata drive after installing archlinux

Postby iBabu » Fri Oct 26, 2012 10:02 pm

yes that is the mount point, and i edited php.ini and added /media/Part2/owncloud, and on initial setup of owncloud i clicked on advanced and in data directory i put /media/Part2/owncloud and it gives me this error

Can't create data directory (/media/Part2/owncloud)
You can usually fix this by giving the webserver write access to the ownCloud directory '/usr/share/webapps/owncloud' (in a terminal, use the command 'chown -R www-data:www-data /path/to/your/owncloud/install/data'
iBabu
 
Posts: 32
Joined: Thu Oct 11, 2012 2:43 am

Previous

Return to Marvell Kirkwood

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron