Доброе утро всем.
Возникла проблема с тем что не могу достучатся до http://ip_name/postfixadmin/setup.php
Настраиваю локальный почтовый сервер.
Система стоит на виртуалке Centos7.
Настроено postfix + dovecot.
Далее что я делал, это установил httpd, phpmyadmin и etc
yum install httpd php phpmyadmin mariadb mariadb-server php-imap
Соответсвенно я их стартую как службы.
Затем задаю пароль на базу и качаю postfixadmin.
Далее [spoiler]
vim /var/www/html/postfixadmin/config.inc.php
[/spoiler]
$CONF[‘configured’] = true;
$CONF[‘default_language’] = ‘ru’;
$CONF[‘database_type’] = ‘mysqli’;
$CONF[‘database_host’] = ‘localhost’;
$CONF[‘database_user’] = ‘postfix’;
$CONF[‘database_password’] = ‘12345678’;
$CONF[‘database_name’] = ‘postfix’;
$CONF[‘admin_email’] = ‘[email protected] ’;
$CONF[‘encrypt’] = ‘md5crypt’;
$CONF[‘default_aliases’] = array (
‘abuse’ => ‘root’,
‘hostmaster’ => ‘root’,
‘postmaster’ => ‘root’,
‘webmaster’ => ‘root’
);
$CONF[‘domain_path’] = ‘YES’;
$CONF[‘domain_in_mailbox’] = ‘YES’;
Как я понял получается связка для работы postfix+dovecot+mariadb+postfixadmin.
Далее может прикручу spamassassin и clamav - но думаю на небольшой организации это не нужно будет…
Логи HTTPD? Какая ошибка при попытке достучаться до setup.php? Статус SELinux?
статус SElinux - disable. Отключил.
при попытке достучаться до setup.php просто пустой экран. Захожу через компьютер из сети - ошибка 500.
[Mon Nov 010 12:31:02.172626 2017] [auth_digest:notice] [pid 1199] AH01757: generating secret for digest authentication …
[Mon Nov 06 12:31:02.173392 2017] [lbmethod_heartbeat:notice] [pid 1199] AH02282: No slotmem from mod_heartmonitor
[Mon Nov 06 12:31:02.189252 2017] [mpm_prefork:notice] [pid 1199] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured – resuming normal operations
[Mon Nov 06 12:31:02.189272 2017] [core:notice] [pid 1199] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
[Mon Nov 06 12:40:40.016727 2017] [:error] [pid 4299] [client ::1:45154] ERROR: directory /var/www/html/postfixadmin/templates_c doesn’t exist or isn’t writeable for the webserver
[Mon Nov 06 12:41:00.697596 2017] [:error] [pid 4298] [client 192.168.32.100:3356] ERROR: directory /var/www/html/postfixadmin/templates_c doesn’t exist or isn’t writeable for the webserver
[Mon Nov 06 12:49:50.329509 2017] [:error] [pid 4533] [client 192.168.32.100:4896] ERROR: directory /var/www/html/postfixadmin/templates_c doesn’t exist or isn’t writeable for the webserver
[Mon Nov 06 12:49:52.824768 2017] [:error] [pid 4301] [client 192.168.32.100:4902] ERROR: directory /var/www/html/postfixadmin/templates_c doesn’t exist or isn’t writeable for the webserver
[Tue Nov 07 15:07:35.888937 2017] [core:notice] [pid 3578] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Nov 07 15:07:35.904633 2017] [suexec:notice] [pid 3578] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message
[Tue Nov 07 15:07:35.946478 2017] [auth_digest:notice] [pid 3578] AH01757: generating secret for digest authentication …
[Tue Nov 07 15:07:35.947783 2017] [lbmethod_heartbeat:notice] [pid 3578] AH02282: No slotmem from mod_heartmonitor
[Tue Nov 07 15:07:36.213302 2017] [mpm_prefork:notice] [pid 3578] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured – resuming normal operations
[Tue Nov 07 15:07:36.213389 2017] [core:notice] [pid 3578] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
[Tue Nov 07 15:08:07.870133 2017] [autoindex:error] [pid 3583] [client ::1:58854] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Tue Nov 07 15:11:27.922452 2017] [mpm_prefork:notice] [pid 3578] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Nov 07 15:11:29.107585 2017] [core:notice] [pid 3977] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Nov 07 15:11:29.108575 2017] [suexec:notice] [pid 3977] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message
[Tue Nov 07 15:11:29.137138 2017] [auth_digest:notice] [pid 3977] AH01757: generating secret for digest authentication …
[Tue Nov 07 15:11:29.138074 2017] [lbmethod_heartbeat:notice] [pid 3977] AH02282: No slotmem from mod_heartmonitor
[Tue Nov 07 15:11:29.208230 2017] [mpm_prefork:notice] [pid 3977] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured – resuming normal operations
[Tue Nov 07 15:11:29.208358 2017] [core:notice] [pid 3977] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
[Tue Nov 07 15:18:12.518396 2017] [mpm_prefork:notice] [pid 3977] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Nov 07 15:20:23.557808 2017] [core:notice] [pid 1265] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Nov 07 15:20:24.909461 2017] [suexec:notice] [pid 1265] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message
[Tue Nov 07 15:20:24.993477 2017] [auth_digest:notice] [pid 1265] AH01757: generating secret for digest authentication …
[Tue Nov 07 15:20:24.994792 2017] [lbmethod_heartbeat:notice] [pid 1265] AH02282: No slotmem from mod_heartmonitor
[Tue Nov 07 15:20:25.943765 2017] [mpm_prefork:notice] [pid 1265] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured – resuming normal operations
[Tue Nov 07 15:20:25.943828 2017] [core:notice] [pid 1265] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
[Tue Nov 07 15:27:33.452601 2017] [mpm_prefork:notice] [pid 1265] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Nov 07 15:29:06.305080 2017] [core:notice] [pid 1210] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Nov 07 15:29:06.457791 2017] [suexec:notice] [pid 1210] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message
[Tue Nov 07 15:29:06.497629 2017] [auth_digest:notice] [pid 1210] AH01757: generating secret for digest authentication …
[Tue Nov 07 15:29:06.498685 2017] [lbmethod_heartbeat:notice] [pid 1210] AH02282: No slotmem from mod_heartmonitor
[Tue Nov 07 15:29:11.019761 2017] [mpm_prefork:notice] [pid 1210] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured – resuming normal operations
[Tue Nov 07 15:29:11.019861 2017] [core:notice] [pid 1210] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
[Tue Nov 07 15:52:05.422345 2017] [mpm_prefork:notice] [pid 1210] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Nov 07 15:54:18.542630 2017] [core:notice] [pid 1205] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Nov 07 15:54:19.266305 2017] [suexec:notice] [pid 1205] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message
[Tue Nov 07 15:54:19.304142 2017] [auth_digest:notice] [pid 1205] AH01757: generating secret for digest authentication …
[Tue Nov 07 15:54:19.305258 2017] [lbmethod_heartbeat:notice] [pid 1205] AH02282: No slotmem from mod_heartmonitor
[Tue Nov 07 15:54:22.659152 2017] [mpm_prefork:notice] [pid 1205] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured – resuming normal operations
[Tue Nov 07 15:54:22.659202 2017] [core:notice] [pid 1205] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
[Tue Nov 07 15:58:47.583616 2017] [mpm_prefork:notice] [pid 1205] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Nov 08 12:43:36.543429 2017] [core:notice] [pid 1211] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed Nov 08 12:43:36.734415 2017] [suexec:notice] [pid 1211] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message
[Wed Nov 08 12:43:36.791315 2017] [auth_digest:notice] [pid 1211] AH01757: generating secret for digest authentication …
[Wed Nov 08 12:43:36.793686 2017] [lbmethod_heartbeat:notice] [pid 1211] AH02282: No slotmem from mod_heartmonitor
[Wed Nov 08 12:43:40.764942 2017] [mpm_prefork:notice] [pid 1211] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured – resuming normal operations
[Wed Nov 08 12:43:40.765032 2017] [core:notice] [pid 1211] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
[Wed Nov 08 13:40:16.724635 2017] [mpm_prefork:notice] [pid 1211] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Nov 08 13:41:55.688808 2017] [core:notice] [pid 1204] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed Nov 08 13:41:56.244721 2017] [suexec:notice] [pid 1204] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message
[Wed Nov 08 13:41:56.294642 2017] [auth_digest:notice] [pid 1204] AH01757: generating secret for digest authentication …
[Wed Nov 08 13:41:56.295777 2017] [lbmethod_heartbeat:notice] [pid 1204] AH02282: No slotmem from mod_heartmonitor
[Wed Nov 08 13:41:58.782929 2017] [mpm_prefork:notice] [pid 1204] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured – resuming normal operations
[Wed Nov 08 13:41:58.783140 2017] [core:notice] [pid 1204] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
[Thu Jan 04 11:14:21.369597 2018] [core:notice] [pid 1204] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Jan 04 11:14:21.797880 2018] [suexec:notice] [pid 1204] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message
[Thu Jan 04 11:14:21.915613 2018] [auth_digest:notice] [pid 1204] AH01757: generating secret for digest authentication …
[Thu Jan 04 11:14:21.916559 2018] [lbmethod_heartbeat:notice] [pid 1204] AH02282: No slotmem from mod_heartmonitor
[Thu Jan 04 11:14:23.218360 2018] [mpm_prefork:notice] [pid 1204] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured – resuming normal operations
[Thu Jan 04 11:14:23.218433 2018] [core:notice] [pid 1204] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
[Thu Jan 04 11:23:19.269455 2018] [autoindex:error] [pid 1813] [client 127.0.0.1:47048] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Jan 04 11:57:30.795277 2018] [mpm_prefork:notice] [pid 1204] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Jan 04 11:57:32.043196 2018] [core:notice] [pid 8612] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Jan 04 11:57:32.044005 2018] [suexec:notice] [pid 8612] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message
[Thu Jan 04 11:57:32.065565 2018] [auth_digest:notice] [pid 8612] AH01757: generating secret for digest authentication …
[Thu Jan 04 11:57:32.066390 2018] [lbmethod_heartbeat:notice] [pid 8612] AH02282: No slotmem from mod_heartmonitor
[Thu Jan 04 11:57:32.156294 2018] [mpm_prefork:notice] [pid 8612] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured – resuming normal operations
[Thu Jan 04 11:57:32.156331 2018] [core:notice] [pid 8612] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
[Thu Jan 04 12:12:02.292633 2018] [mpm_prefork:notice] [pid 8612] AH00171: Graceful restart requested, doing restart
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message
Права на папку подправь. Ради теста пробни добавить овнера на папку www - chown -R root:apache /путь/к/www потом chmod -R 775 /путь/к/www
#chown -R apache. /var/www/
и chown chmod не помогло
На сколько я понял, это трабла апача.
Ща почитаю еще по данной ошибке
Тебя это:
[:error] [pid 4299] [client ::1:45154] ERROR: directory /var/www/html/postfixadmin/templates_c doesn’t exist or isn’t writeable for the webserver
Не натолкнуло ни на какие мысли?
Это старый лог был. До того как я всё удалил.
Ошибка была в использовании имени с подчеркиванием, что недопустимо
Shrek
January 8, 2018, 9:09am
10
Давай я тебе удаленно его победю. В лс отправь TV номер и пасс.
Посмотрим на твои вялые помидоры.