Owncloud MySql

Status
Not open for further replies.

flashpoint

Dabbler
Joined
Jan 8, 2016
Messages
20
what are you trying to do, use 'occ' with the plugin?

I am trying to rescan all folders and files. I uploaded a lot of data via FTP. Didn't trust my browser with 50GB's of crap.

$ ./php /mnt/VOL1/jails/owncloud_2/usr/pbi/owncloud-amd64/www/owncloud//console.php files:scan --all
PHP Fatal error: Class 'PDO' not found in /mnt/VOL1/jails/owncloud_2/usr/pbi/owncloud-amd64/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php on line 172

if I use just ./occ nothing happens though.
$ ./php /mnt/VOL1/jails/owncloud_2/usr/pbi/owncloud-amd64/www/owncloud/ ./occ files:scan --all
▒▒▒$
other than a weird texture thingy.


By the way I installed PDO and it didn't not seem to help, I created an empty php.ini as well.


oh and this is how I used the ./php:


cd /mnt/VOL1/jails/owncloud_2/usr/pbi/owncloud-amd64/bin
./php /mnt/VOL1/jails/owncloud_2/usr/pbi/owncloud-amd64/www/owncloud/console.php files:scan --all
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Yes sir!



if I use just ./occ nothing happens though.
other than a weird texture thingy.


By the way I installed PDO and it didn't not seem to help, I created an empty php.ini as well.


oh and this is how I used the ./php:
don't install anything

you need up invoke the plugins php using the path I mention in this thread. but first switch to the 'www' user. the user isn't accessible by default unless we change his shell

cd /usr/pbi/owncloud-amd64/www/owncloud
chsh -s /bin/sh www
su www
/usr/pbi/owncloud-amd64/bin/php ./occ
 

flashpoint

Dabbler
Joined
Jan 8, 2016
Messages
20
don't install anything

you need up invoke the plugins php using the path I mention in this thread. but first switch to the 'www' user. the user isn't accessible by default unless we change his shell

cd /usr/pbi/owncloud-amd64/www/owncloud
chsh -s /bin/sh www
su www
/usr/pbi/owncloud-amd64/bin/php ./occ

Same error unfortunately.

[root@PE2950] /mnt/VOL1/jails/owncloud_2/usr/pbi/owncloud-amd64/www/owncloud# chsh -s /bin/sh www
chsh: user information updated
[root@PE2950] /mnt/VOL1/jails/owncloud_2/usr/pbi/owncloud-amd64/www/owncloud# su www
$ /usr/pbi/owncloud-amd64/bin/php ./occ
/usr/pbi/owncloud-amd64/bin/php: not found
$ ./usr/pbi/owncloud-amd64/bin/php ./occ
./usr/pbi/owncloud-amd64/bin/php: not found
$ /usr/pbi/owncloud-amd64/bin/php ./occ
/usr/pbi/owncloud-amd64/bin/php: not found
$ /mnt/VOL1/jails/owncloud_2/usr/pbi/owncloud-amd64/bin ./occ
/mnt/VOL1/jails/owncloud_2/usr/pbi/owncloud-amd64/bin: Permission denied
$ /mnt/VOL1/jails/owncloud_2/usr/pbi/owncloud-amd64/bin/php ./occ
PHP Fatal error: Class 'PDO' not found in /mnt/VOL1/jails/owncloud_2/usr/pbi/owncloud-amd64/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php on line 172
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949

flashpoint

Dabbler
Joined
Jan 8, 2016
Messages
20
stop running the commands on your FreeNAS host, you'll break stuff. Run it in your jail
Thank you, that was my mistake! Thank you very much.

Edit:

Well this is disappointing. Now this is happening:

Code:
/usr/pbi/owncloud-amd64/bin/php ./occ
PHP Fatal error:  Namespace declaration statement has to be the very first statement in the script in /usr/pbi/owncloud-amd64/www/owncloud/lib/private/log.php on line 28


Tried replacing the file with a brand new one, no luck. :/
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thank you, that was my mistake! Thank you very much.

Edit:

Well this is disappointing. Now this is happening:

Code:
/usr/pbi/owncloud-amd64/bin/php ./occ
PHP Fatal error:  Namespace declaration statement has to be the very first statement in the script in /usr/pbi/owncloud-amd64/www/owncloud/lib/private/log.php on line 28


Tried replacing the file with a brand new one, no luck. :/
replacing it? can you try this on a fresh owncloud plugin install?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
That worked, although it worked the first time as well, guess ill try again.

Rescanning 50~GB of files takes forever. lol
Yeah, it's alot of database operations and since you're using the plugin which uses SQLite, database operations are pretty slow. If you want things to be faster you should install ownCloud with MySQL.
 
Status
Not open for further replies.
Top