El 22/07/2015 a las 18:00, Alfredo Palhares escribió:
Hello everyone,
I am trying to setup owncloud on a Debian 8 server. The stack will be:
- Nginx - version 1.6.2
- php-fpm - version 5.6.9
- PostgreSQL - version 9.4.3
I did follow the manual installation process[1], installed the following
packages:
```
apt-get install php5-gd php5-json php5-pgsql php5-curl \
php5-intl php5-mcrypt php5-imagick
```
I downloaded the tarball from the downloads page[2], but after descompacting set
the permissions I cannot run occ at all.
```
# sudo -u www-data php occ status
ownCloud is not installed - only a limited number of commands are available
Error occurred while checking PostgreSQL version
Please make sure you have PostgreSQL >= 9 or check the logs for more
information about the error
An unhandled exception has been thrown:
exception 'Exception' with message 'Environment not properly prepared.' in
/usr/share/nginx/www/owncloud/lib/private/console/application.php:78
Stack trace:
#0 /usr/share/nginx/www/owncloud/console.php(67):
OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /usr/share/nginx/www/owncloud/occ(11): require_once('/usr/share/ngin...')
```
This is weird, because the server is running, and the module is indeed
installed.
```
# php -i | grep pg
/etc/php5/cli/conf.d/20-pdo_pgsql.ini,
/etc/php5/cli/conf.d/20-pgsql.ini,
PDO drivers => pgsql
pdo_pgsql
pgsql
pgsql.allow_persistent => On => On
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited
```
Any ideas on how to troubleshoot this ?
[1]:
https://doc.owncloud.org/server/8.2/admin_manual/installation/source_installation.html
[2]: https://owncloud.org/install/#instructions-server
Regards,
_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user
Hello Alfredo,
The issue is that the www-data in debian system has no shell configured
and you need to pass some envioronment variables for php occ to work.
I use the command "su -l www-data -p" from the root account, which could
be translated to "sudo su -l www-data -p"
This command opens a shell with the www-data account, letting you
perform the actions you need as that user, and keeping your system
secure from a possible apache hack, or someone getting somehow access to
the www-data account.
Also, by opening a shell, you can do some other things as that user, not
just a single command.
After that, simply doing "exit" would return to your normal shell.
Hope this infor it's of some help to you.
Regards.
Marcos Zuriaga
_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user