LINUX.ORG.RU

Debian ISPConfig

 


0

1

php выподает с ошибкой HTTP ERROR 500 многие сайты неработают... Пример http://erudit.7v8.ru/dir/file/disciplini.html математических формул тоже нету.

root@Debian9:~# apt-get install php7.0-fpm php7.0-curl php7.0-cli php-memcache php-memcached php7.0-mysql php7.0-pgsql php7.0-gd php7.0-imagick php7.0-intl php7.0-mcrypt
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php-imagick' instead of 'php7.0-imagick'
php-imagick is already the newest version (3.4.3~rc2-2).
php-memcache is already the newest version (3.0.9~20160311.4991c2f-5).
php-memcached is already the newest version (3.0.1+2.2.0-1).
php7.0-cli is already the newest version (7.0.33-0+deb9u3).
php7.0-curl is already the newest version (7.0.33-0+deb9u3).
php7.0-fpm is already the newest version (7.0.33-0+deb9u3).
php7.0-gd is already the newest version (7.0.33-0+deb9u3).
php7.0-intl is already the newest version (7.0.33-0+deb9u3).
php7.0-mcrypt is already the newest version (7.0.33-0+deb9u3).
php7.0-mysql is already the newest version (7.0.33-0+deb9u3).
php7.0-pgsql is already the newest version (7.0.33-0+deb9u3).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up amavisd-new (1:2.10.1-4) ...
Creating/updating amavis user account...
Job for amavis.service failed because the control process exited with error code.
See "systemctl status amavis.service" and "journalctl -xe" for details.
invoke-rc.d: initscript amavis, action "start" failed.
● amavis.service - LSB: Starts amavisd-new mailfilter
   Loaded: loaded (/etc/init.d/amavis; generated; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-07-17 16:44:33 BST; 25ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 32026 ExecStart=/etc/init.d/amavis start (code=exited, status=1/FAILURE)

Jul 17 16:44:33 Debian9 amavis[32026]: Starting amavisd:   The value of var…been
Jul 17 16:44:33 Debian9 amavis[32026]:   a fully qualified domain name; per…uch.
Jul 17 16:44:33 Debian9 amavis[32026]:   You must explicitly assign a FQDN …name
Jul 17 16:44:33 Debian9 amavis[32026]:   in /etc/amavis/conf.d/05-node_id, …st's
Jul 17 16:44:33 Debian9 amavis[32026]:   network name!
Jul 17 16:44:33 Debian9 amavis[32026]: (failed).
Jul 17 16:44:33 Debian9 systemd[1]: amavis.service: Control process exited,…us=1
Jul 17 16:44:33 Debian9 systemd[1]: Failed to start LSB: Starts amavisd-new…ter.
Jul 17 16:44:33 Debian9 systemd[1]: amavis.service: Unit entered failed state.
Jul 17 16:44:33 Debian9 systemd[1]: amavis.service: Failed with result 'exi…de'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package amavisd-new (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 amavisd-new
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Debian9:~#

финал. сделано.

nano /etc/hosts
nano /etc/hostname
hostname debian9.7v8.ru
nano /etc/amavis/conf.d/05-node_id
теперь в консоле всё нормально.переходим к модулям http://example.8v7.ru/phpinfo/ Для сравнения http://biz.shn-host.ru/ здесь всё работает.

Starting amavisd:   The value of var…been
  a fully qualified domain name; per…uch.
  You must explicitly assign a FQDN …name
  in /etc/amavis/conf.d/05-node_id, …st's
  network name!

Вот это расшифровывай с помощью systemctl status amavis или journalctl -u amavis.service -n 20 --no-pager

Radjah ★★★★★ ()
Ответ на: комментарий от sachernukhin

ты уже немного поправил исходное сообщение. но всё же попробуй посмотреть его и то что, видишь у себя. мне кажется там больше 10 различий...

anonymous ()
Ответ на: комментарий от Radjah
root@Debian9:~# systemctl status amavis
● amavis.service - LSB: Starts amavisd-new mailfilter
   Loaded: loaded (/etc/init.d/amavis; generated; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-07-17 17:10:33 BST; 4min 44
     Docs: man:systemd-sysv-generator(8)
  Process: 676 ExecStart=/etc/init.d/amavis start (code=exited, status=1/FAILURE

Jul 17 17:10:33 Debian9 amavis[676]:   The value of variable $myhostname is "deb
Jul 17 17:10:33 Debian9 amavis[676]:   a fully qualified domain name; perhaps un
Jul 17 17:10:33 Debian9 amavis[676]:   You must explicitly assign a FQDN of this
Jul 17 17:10:33 Debian9 amavis[676]:   in /etc/amavis/conf.d/05-node_id, or fix
Jul 17 17:10:33 Debian9 amavis[676]:   network name!
Jul 17 17:10:33 Debian9 amavis[676]: (failed).
Jul 17 17:10:33 Debian9 systemd[1]: amavis.service: Control process exited, code
Jul 17 17:10:33 Debian9 systemd[1]: Failed to start LSB: Starts amavisd-new mail
Jul 17 17:10:33 Debian9 systemd[1]: amavis.service: Unit entered failed state.
Jul 17 17:10:33 Debian9 systemd[1]: amavis.service: Failed with result 'exit-cod
lines 1-16/16 (END)

Jul 17 17:10:33 Debian9 systemd[1]: Failed to start LSB: Starts amavisd-new mailfilter.
sachernukhin ()
Ответ на: комментарий от sachernukhin

хинт на будущее: жмёшь «S», задаёшь имя лога и сохраняешь.
основание: lines 1-16/16 (END) — это «ушки» less торчать.

Полный лог гораздо полезней бывает.

anonymous ()
Ответ на: комментарий от spijet

указал hostname а где найти конфиг amavis ? неужели из за него?

root@Debian9:~# hostname
7v8.ru

может модуля какого нехватает?

root@Debian9:~# apt-get install php7.0-fpm php7.0-curl php7.0-cli php-memcache php-memcached php7.0-mysql php7.0-pgsql php7.0-gd php7.0-imagick php7.0-intl php7.0-mcrypt
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php-imagick' instead of 'php7.0-imagick'
php-imagick is already the newest version (3.4.3~rc2-2).
php-memcache is already the newest version (3.0.9~20160311.4991c2f-5).
php-memcached is already the newest version (3.0.1+2.2.0-1).
php7.0-cli is already the newest version (7.0.33-0+deb9u3).
php7.0-curl is already the newest version (7.0.33-0+deb9u3).
php7.0-fpm is already the newest version (7.0.33-0+deb9u3).
php7.0-gd is already the newest version (7.0.33-0+deb9u3).
php7.0-intl is already the newest version (7.0.33-0+deb9u3).
php7.0-mcrypt is already the newest version (7.0.33-0+deb9u3).
php7.0-mysql is already the newest version (7.0.33-0+deb9u3).
php7.0-pgsql is already the newest version (7.0.33-0+deb9u3).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

модули

root@Debian9:~# apt-cache search php7.0
php-amqp - AMQP extension for PHP
php-apcu - APC User Cache for PHP
php-all-dev - package depending on all supported PHP development packages
php-gearman - PHP wrapper to libgearman
php-geoip - GeoIP module for PHP
php-gmagick - Provides a wrapper to the GraphicsMagick library
php-gnupg - PHP wrapper around the gpgme library
php-igbinary - igbinary PHP serializer
php-imagick - Provides a wrapper to the ImageMagick library
php-libsodium - PHP wrapper for the Sodium cryptographic library
php-mailparse - Email message manipulation for PHP
php-memcache - memcache extension module for PHP
php-memcached - memcached extension module for PHP, uses libmemcached
php-mongodb - MongoDB driver for PHP
php-msgpack - PHP extension for interfacing with MessagePack
php-oauth - OAuth 1.0 consumer and provider extension
php-http - PECL HTTP module for PHP Extended HTTP Support
php-pinba - Pinba module for PHP
php-propro - propro module for PHP
php-radius - radius client library for PHP
php-raphf - raphf module for PHP
php-redis - PHP extension for interfacing with Redis
php-rrd - PHP bindings to rrd tool system
php-smbclient - PHP wrapper for libsmbclient
php-solr - PHP extension for communicating with Apache Solr server
php-ssh2 - Bindings for the libssh2 library
php-stomp - Streaming Text Oriented Messaging Protocol (STOMP) client module for PHP
php-uploadprogress - file upload progress tracking extension for PHP
php-uuid - PHP UUID extension
php-yac - YAC (Yet Another Cache) for PHP
php-yaml - YAML-1.1 parser and emitter for PHP
php-zmq - ZeroMQ messaging bindings for PHP
libapache2-mod-php7.0 - server-side, HTML-embedded scripting language (Apache 2 module)
libphp7.0-embed - HTML-embedded scripting language (Embedded SAPI library)
php7.0 - server-side, HTML-embedded scripting language (metapackage)
php7.0-bcmath - Bcmath module for PHP
php7.0-bz2 - bzip2 module for PHP
php7.0-cgi - server-side, HTML-embedded scripting language (CGI binary)
php7.0-cli - command-line interpreter for the PHP scripting language
php7.0-common - documentation, examples and common module for PHP
php7.0-curl - CURL module for PHP
php7.0-dba - DBA module for PHP
php7.0-dev - Files for PHP7.0 module development
php7.0-enchant - Enchant module for PHP
php7.0-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)
php7.0-gd - GD module for PHP
php7.0-gmp - GMP module for PHP
php7.0-imap - IMAP module for PHP
php7.0-interbase - Interbase module for PHP
php7.0-intl - Internationalisation module for PHP
php7.0-json - JSON module for PHP
php7.0-ldap - LDAP module for PHP
php7.0-mbstring - MBSTRING module for PHP
php7.0-mcrypt - libmcrypt module for PHP
php7.0-mysql - MySQL module for PHP
php7.0-odbc - ODBC module for PHP
php7.0-opcache - Zend OpCache module for PHP
php7.0-pgsql - PostgreSQL module for PHP
php7.0-phpdbg - server-side, HTML-embedded scripting language (PHPDBG binary)
php7.0-pspell - pspell module for PHP
php7.0-readline - readline module for PHP
php7.0-recode - recode module for PHP
php7.0-snmp - SNMP module for PHP
php7.0-soap - SOAP module for PHP
php7.0-sqlite3 - SQLite3 module for PHP
php7.0-sybase - Sybase module for PHP
php7.0-tidy - tidy module for PHP
php7.0-xml - DOM, SimpleXML, WDDX, XML, and XSL module for PHP
php7.0-xmlrpc - XMLRPC-EPI module for PHP
php7.0-xsl - XSL module for PHP (dummy)
php7.0-zip - Zip module for PHP
php-remctl - PECL module for Kerberos-authenticated command execution
php-tideways - Tideways PHP Profiler Extension
php-xdebug - Xdebug Module for PHP
root@Debian9:~#

sachernukhin ()
Ответ на: комментарий от sachernukhin

ты самородок? (не обижайся; я тебя больше не понимаю)

S понял как сохранять никак не получается.

я в ступор вошёл, мой парсер завис...

<S> жми
log file: видишь? вводишь имя (можно и полный путь).
<Enter> жми

всё

anonymous ()
Ответ на: комментарий от anonymous

счас перезагрузем парсер

systemctl status amavis

^[[0;1;31m●^[[0m amavis.service - LSB: Starts amavisd-new mailfilter
   Loaded: loaded (/etc/init.d/amavis; generated; vendor preset: enabled)
   Active: ^[[0;1;31mfailed^[[0m (Result: exit-code) since Wed 2019-07-17 17:54$
     Docs: man:systemd-sysv-generator(8)
  Process: 686 ExecStart=/etc/init.d/amavis start ^[[0;1;31m(code=exited, statu$

Jul 17 17:54:48 Debian9 amavis[686]:   The value of variable $myhostname is "de$
Jul 17 17:54:48 Debian9 amavis[686]:   a fully qualified domain name; perhaps u$
Jul 17 17:54:48 Debian9 amavis[686]:   You must explicitly assign a FQDN of thi$
Jul 17 17:54:48 Debian9 amavis[686]:   in /etc/amavis/conf.d/05-node_id, or fix$
Jul 17 17:54:48 Debian9 amavis[686]:   network name!
Jul 17 17:54:48 Debian9 amavis[686]: (failed).
Jul 17 17:54:48 Debian9 systemd[1]: ^[[0;1;39mamavis.service: Control process e$
Jul 17 17:54:48 Debian9 systemd[1]: ^[[0;1;31mFailed to start LSB: Starts amavi$
Jul 17 17:54:48 Debian9 systemd[1]: ^[[0;1;39mamavis.service: Unit entered fail$
Jul 17 17:54:48 Debian9 systemd[1]: ^[[0;1;39mamavis.service: Failed with resul$
root@Debian9:~# journalctl -u amavis.service -n 20 --no-pager
-- Logs begin at Wed 2019-07-17 17:54:37 BST, end at Wed 2019-07-17 18:00:05 BST. --
Jul 17 17:54:44 Debian9 systemd[1]: Starting LSB: Starts amavisd-new mailfilter...
Jul 17 17:54:45 Debian9 amavis[686]: Starting amavisd: changed ownership of '/var/run/amavis' from root:root to amavis:amavis
Jul 17 17:54:48 Debian9 amavis[686]:   The value of variable $myhostname is "debian9", but should have been
Jul 17 17:54:48 Debian9 amavis[686]:   a fully qualified domain name; perhaps uname(3) did not provide such.
Jul 17 17:54:48 Debian9 amavis[686]:   You must explicitly assign a FQDN of this host to variable $myhostname
Jul 17 17:54:48 Debian9 amavis[686]:   in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
Jul 17 17:54:48 Debian9 amavis[686]:   network name!
Jul 17 17:54:48 Debian9 amavis[686]: (failed).
Jul 17 17:54:48 Debian9 systemd[1]: amavis.service: Control process exited, code=exited status=1
Jul 17 17:54:48 Debian9 systemd[1]: Failed to start LSB: Starts amavisd-new mailfilter.
Jul 17 17:54:48 Debian9 systemd[1]: amavis.service: Unit entered failed state.
Jul 17 17:54:48 Debian9 systemd[1]: amavis.service: Failed with result 'exit-code'.
root@Debian9:~#
sachernukhin ()
Ответ на: комментарий от spijet

правильно? эту строку править?


use strict;

# $myhostname is used by amavisd-new for node identification, and it is
# important to get it right (e.g. for ESMTP EHLO, loop detection, and so on).

chomp($myhostname = `hostname --fqdn`);

# To manually set $myhostname, edit the following line with the correct Fully
# Qualified Domain Name (FQDN) and remove the # at the beginning of the line.
#
$myhostname = "debian9.7v8.ru";

1;  # ensure a defined return

sachernukhin ()
Ответ на: комментарий от sachernukhin
root@debian9:~# systemctl status amavis
● amavis.service - LSB: Starts amavisd-new mailfilter
   Loaded: loaded (/etc/init.d/amavis; generated; vendor preset: enabled)
   Active: active (running) since Wed 2019-07-17 18:28:57 BST; 5min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 696 ExecStart=/etc/init.d/amavis start (code=exited, status=0/SUCCESS)
    Tasks: 3 (limit: 4915)
   CGroup: /system.slice/amavis.service
           ├─1190 /usr/sbin/amavisd-new (master)
           ├─1211 /usr/sbin/amavisd-new (virgin child)
           └─1212 /usr/sbin/amavisd-new (virgin child)

Jul 17 18:28:57 debian9.7v8.ru amavis[1190]: No decoder for       .lha
Jul 17 18:28:57 debian9.7v8.ru amavis[1190]: No decoder for       .lrz
Jul 17 18:28:57 debian9.7v8.ru amavis[1190]: No decoder for       .lz4
Jul 17 18:28:57 debian9.7v8.ru amavis[1190]: No decoder for       .rar
Jul 17 18:28:57 debian9.7v8.ru amavis[1190]: No decoder for       .rpm
Jul 17 18:28:57 debian9.7v8.ru amavis[1190]: No decoder for       .swf
Jul 17 18:28:57 debian9.7v8.ru amavis[1190]: Using primary internal av scanner code for ClamAV-clamd
Jul 17 18:28:57 debian9.7v8.ru amavis[1190]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Jul 17 18:28:57 debian9.7v8.ru amavis[1190]: Deleting db files __db.001,snmp.db,__db.002,__db.003,nanny.db in /var/lib/amavis/db
Jul 17 18:28:57 debian9.7v8.ru amavis[1190]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.55, libdb 5.3
root@debian9:~#
sachernukhin ()
Ответ на: комментарий от sachernukhin

н-да, рано мне в «помогаторы», рано... простых, элементарных вещей объяснить не могу :(

попытка №2
другой хинт: пиши сообщения в ответ на сообщения твоих собеседников. Когда пишешь в ответ на своё сообщение его никто* не видит. Не все же такие «упоротые» как я — читать весь тред... Вроде, объяснил...

после перезагрузки возвращается hostname debian9

Вот же те на чистом англкомпьютерном поясняют что нужно-то

   The value of variable $myhostname is "debian9", but should have been
   a fully qualified domain name; perhaps uname(3) did not provide such.
   You must explicitly assign a FQDN of this host to variable $myhostname
   in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
   network name!

You must explicitly assign a FQDN of this host to variable $myhostname
in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
network name!

FQDN of this host to variable $myhostname in /etc/amavis/conf.d/05-node_id

ну вот же, вот же оно...

anonymous ()
Ответ на: комментарий от sachernukhin

должно быть 7v8.ru?

use strict;

# $myhostname is used by amavisd-new for node identification, and it is
# important to get it right (e.g. for ESMTP EHLO, loop detection, and so on).

chomp($myhostname = `hostname --fqdn`);

# To manually set $myhostname, edit the following line with the correct Fully
# Qualified Domain Name (FQDN) and remove the # at the beginning of the line.
#
$myhostname = "7v8.ru";

1;  # ensure a defined return
anonymous ()