[Pkg-owncloud-commits] [owncloud-doc] 05/27: Backport #1344 to stable7
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 15:57:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud-doc.
commit 65baf68cc6a185fd81fe60805cbde6e097ef3cd0
Author: RealRancor <Fisch.666 at gmx.de>
Date: Tue Jul 21 11:32:14 2015 +0200
Backport #1344 to stable7
---
admin_manual/installation/installation_wizard.rst | 23 ++++++++++++++++++++---
1 file changed, 20 insertions(+), 3 deletions(-)
diff --git a/admin_manual/installation/installation_wizard.rst b/admin_manual/installation/installation_wizard.rst
index a114bf2..41a6187 100644
--- a/admin_manual/installation/installation_wizard.rst
+++ b/admin_manual/installation/installation_wizard.rst
@@ -90,10 +90,27 @@ ownCloud Web interface.
You can find your HTTP user in your HTTP server configuration files. Or you can
create a PHP page to find it for you. To do this, create a plain text file with
-a single line in it:
+the following lines in it:
+
+.. code-block:: php
+
+ <?php
+ echo "User: " . exec('whoami');
+ echo "Group: " . exec('groups');
+ ?>
+
+If the exec php function is disabled (getting a white page with the script above)
+you can also try to use a script like:
+
+.. code-block:: php
+
+ <?php
+ $processUser = posix_getpwuid(posix_geteuid());
+ echo "User: " . $processUser['name'];
+ $processGroup = posix_getgrgid($processUser['gid']);
+ echo " Group: " . $processGroup['name'];
+ ?>
- ``<?php echo exec('whoami'); ?>``
-
Name it ``whoami.php`` and place it in your ``/var/www/html`` directory, and
then open it in a Web browser, for example ``http://localhost/whoami.php``. You
should see a single line in your browser page with the HTTP user name.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git
More information about the Pkg-owncloud-commits
mailing list