mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-04 10:46:21 +07:00
Merge pull request #1718 from RealRancor/link_to_phpinfo
Link all references to phpinfo to one single page.
This commit is contained in:
@@ -15,8 +15,8 @@ are on Ubuntu Linux::
|
||||
sudo -u www-data chown -R www-data:www-data /localdir
|
||||
sudo -u www-data chmod -R 0750 /localdir
|
||||
|
||||
See :ref:`label-setting-strong-perms` for information on finding your HTTP
|
||||
user with ``phpinfo``.
|
||||
See :ref:`label-setting-strong-perms` for information on correct file permissions,
|
||||
and find your HTTP user :ref:`label-phpinfo`.
|
||||
|
||||
In the **Folder name** field enter the folder name that you want to appear on
|
||||
your ownCloud Files page.
|
||||
|
||||
@@ -11,28 +11,6 @@ deploying them on production servers.
|
||||
If you wish to add tips to this page, please put them in the relevant section.
|
||||
If there isn't an appropriate section then start a new one.
|
||||
|
||||
PHP Version and Information
|
||||
---------------------------
|
||||
|
||||
You will need to know your PHP version and configurations. To do this, create a
|
||||
plain-text file named **phpinfo.php** and place it in your Web root, for
|
||||
example ``/var/www/html/phpinfo.php``. (Your Web root may be in a different
|
||||
location; your Linux distribution documentation will tell you where.) This file
|
||||
contains just this line::
|
||||
|
||||
<?php phpinfo(); ?>
|
||||
|
||||
Open this file in a Web browser by pointing your browser to
|
||||
``localhost/phpinfo.php``:
|
||||
|
||||
.. figure:: ../images/phpinfo.png
|
||||
|
||||
Your PHP version is at the top, and the rest of the page contains abundant
|
||||
system information such as active modules, active `.ini` files, and much more.
|
||||
When you are finished reviewing your information you must delete
|
||||
``phpinfo.php``, or move it outside of your Web directory, because it is a
|
||||
security risk to expose such sensitive data.
|
||||
|
||||
ownCloud Server Tuning
|
||||
----------------------
|
||||
|
||||
@@ -65,7 +43,7 @@ PHP safe mode
|
||||
^^^^^^^^^^^^^
|
||||
|
||||
PHP safe mode has to be turned off. It is deprecated and has been removed in
|
||||
newer PHP versions. Verify its status with ``phpinfo``, and look for
|
||||
newer PHP versions. Verify its status with :ref:`label-phpinfo`, and look for
|
||||
``safe_mode
|
||||
on/off``. If it is on, then add this line to ``php.ini`` to turn it off::
|
||||
|
||||
|
||||
@@ -123,14 +123,7 @@ configure ownCloud, create, modify and delete your data files, and install apps
|
||||
via the ownCloud Web interface.
|
||||
|
||||
You can find your HTTP user in your HTTP server configuration files. Or you can
|
||||
use ``phpinfo``. To do this, create a plain text file with
|
||||
the following line in it::
|
||||
|
||||
<?php phpinfo(); ?>
|
||||
|
||||
Name it ``phpinfo.php`` and place it in your Web root, and then
|
||||
open it in a Web browser, for example ``http://localhost/phpinfo.php``. Look
|
||||
for the **User/Group** line.
|
||||
use :ref:`label-phpinfo` (Look for the **User/Group** line).
|
||||
|
||||
* The HTTP user and group in Debian/Ubuntu is ``www-data``.
|
||||
* The HTTP user and group in Fedora/CentOS is ``apache``.
|
||||
|
||||
@@ -40,9 +40,8 @@ Then restart Apache::
|
||||
|
||||
service httpd restart
|
||||
|
||||
Verify with ``phpinfo`` that your Apache server is using PHP 5.4 and loading
|
||||
the correct modules; see
|
||||
https://doc.owncloud.org/server/8.1/admin_manual/configuration_server/performance_tuning.html#php-version-and-information to learn how to use ``phpinfo``.
|
||||
Verify with :ref:`label-phpinfo` that your Apache server is using PHP 5.4 and loading
|
||||
the correct modules.
|
||||
|
||||
CentOS 6
|
||||
--------
|
||||
@@ -75,8 +74,5 @@ Finally, restart Apache::
|
||||
|
||||
service httpd restart
|
||||
|
||||
Verify with ``phpinfo`` that your Apache server is using PHP 5.4 and loading
|
||||
the correct modules; see
|
||||
https://doc.owncloud.com/server/8.1/admin_manual/configuration_server/
|
||||
performance_tuning.html#php-version-and-information to learn how to use
|
||||
``phpinfo``.
|
||||
Verify with :ref:`label-phpinfo` that your Apache server is using PHP 5.4 and loading
|
||||
the correct modules.
|
||||
|
||||
@@ -335,7 +335,7 @@ correct locations.
|
||||
|
||||
Please keep in mind that it is possible to create different settings for
|
||||
``php-cli`` and ``php-fpm``, and for different domains and Web sites.
|
||||
The best way to check your settings is with ``phpinfo()``.
|
||||
The best way to check your settings is with :ref:`label-phpinfo`.
|
||||
|
||||
**Maximum upload size**
|
||||
|
||||
|
||||
@@ -77,8 +77,8 @@ the `Firebug extension <https://getfirebug.com/>`_.
|
||||
|
||||
.. _label-phpinfo:
|
||||
|
||||
phpinfo
|
||||
^^^^^^^
|
||||
PHP Version and Information
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
You will need to know your PHP version and configurations. To do this, create a
|
||||
plain-text file named **phpinfo.php** and place it in your Web root, for
|
||||
@@ -88,14 +88,16 @@ contains just this line::
|
||||
|
||||
<?php phpinfo(); ?>
|
||||
|
||||
Open this file in a Web browser. e.g. ``http://localhost/phpinfo``. Your PHP
|
||||
version is at the top, and the rest of the page contains abundant system
|
||||
information such as active modules, active `.ini` files, and much more. When
|
||||
you
|
||||
are finished reviewing your information you must delete ``phpinfo.php``, or
|
||||
move
|
||||
it outside of your Web directory, because it is a security risk to expose such
|
||||
sensitive data.
|
||||
Open this file in a Web browser by pointing your browser to
|
||||
``localhost/phpinfo.php``:
|
||||
|
||||
.. figure:: ../images/phpinfo.png
|
||||
|
||||
Your PHP version is at the top, and the rest of the page contains abundant
|
||||
system information such as active modules, active `.ini` files, and much more.
|
||||
When you are finished reviewing your information you must delete
|
||||
``phpinfo.php``, or move it outside of your Web directory, because it is a
|
||||
security risk to expose such sensitive data.
|
||||
|
||||
Debugging Sync Issues
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Reference in New Issue
Block a user