Инструменты пользователя

Инструменты сайта


common_linux:phpipam

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
Следующая версия
Предыдущая версия
common_linux:phpipam [2022/08/24 16:16] rootcommon_linux:phpipam [2024/12/21 19:00] (текущий) – внешнее изменение 127.0.0.1
Строка 29: Строка 29:
 systemctl restart apache2 systemctl restart apache2
 </code> </code>
 +Если используется версия PHP7.4++, то в нем отключен модуль PEAR. Его необходимо установить вручную:
 +<code bash>
 +wget http://pear.php.net/go-pear.phar
 +/usr/bin/php7.4 go-pear.phar
 +</code>
 +Отвечаем на вопросы:
 +<code bash>
 +Below is a suggested file layout for your new PEAR installation.  To
 +change individual locations, type the number in front of the
 +directory.  Type 'all' to change all of them or simply press Enter to
 +accept these locations.
 +
 + 1. Installation base ($prefix)                   : /usr
 + 2. Temporary directory for processing            : /tmp/pear/install
 + 3. Temporary directory for downloads             : /tmp/pear/install
 + 4. Binaries directory                            : /usr/bin
 + 5. PHP code directory ($php_dir)                 : /usr/share/pear
 + 6. Documentation directory                       : /usr/docs
 + 7. Data directory                                : /usr/data
 + 8. User-modifiable configuration files directory : /usr/cfg
 + 9. Public Web Files directory                    : /usr/www
 +10. System manual pages directory                 : /usr/man
 +11. Tests directory                               : /usr/tests
 +12. Name of configuration file                    : /etc/pear.conf
 +
 +1-12, 'all' or Enter to continue:
 +Beginning install...
 +Configuration written to /etc/pear.conf...
 +Initialized registry...
 +Preparing to install...
 +WARNING!  The include_path defined in the currently used php.ini does not
 +contain the PEAR PHP directory you just specified:
 +</usr/share/pear>
 +If the specified directory is also not in the include_path used by
 +your scripts, you will have problems getting any PEAR packages working.
 +
 +
 +Would you like to alter php.ini </etc/php/7.4/cli/php.ini>? [Y/n] :
 +
 +php.ini </etc/php/7.4/cli/php.ini> include_path updated.
 +
 +Current include path           : .:/usr/share/php
 +Configured directory           : /usr/share/pear
 +Currently used php.ini (guess) : /etc/php/7.4/cli/php.ini
 +</code>
 +Прописываем в файл /etc/php/7.4/apache2/php.ini значение "Current include path" из листинга выше:
 +<code ini>
 +; UNIX: "/path1:/path2"
 +include_path = ".:/usr/share/pear"
 +</code>
 +
 Создать конфигурационный файл **/etc/apache2/sites-available/phpipam.conf** Создать конфигурационный файл **/etc/apache2/sites-available/phpipam.conf**
 <code xml | phpipam.conf> <code xml | phpipam.conf>
common_linux/phpipam.1661347005.txt.gz · Последнее изменение: 2024/12/21 19:00 (внешнее изменение)