Запуск Apache Centos

Установка, настройка, поддержка
Ответить
alex006
Сообщения: 27
Зарегистрирован: Ср авг 29, 2012 3:16 pm

Запуск Apache Centos

Сообщение alex006 »

При запуске апача выдает ошибку
Запускается httpd: httpd: apr_sockaddr_info_get() failed for abills
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Подсажите куда копнуть и как исправить
erroe_log
[Tue Aug 05 00:31:35 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Aug 05 00:31:35 2014] [notice] Digest: done
[Tue Aug 05 00:31:41 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Tue Aug 05 10:01:02 2014] [notice] caught SIGTERM, shutting down
[Tue Aug 05 10:01:02 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Aug 05 10:01:07 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Aug 05 10:01:07 2014] [notice] Digest: done
[Tue Aug 05 10:01:12 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Tue Aug 05 10:03:22 2014] [notice] caught SIGTERM, shutting down
[Tue Aug 05 10:03:51 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Aug 05 10:03:56 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Aug 05 10:03:56 2014] [notice] Digest: done
[Tue Aug 05 10:03:56 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations

ssl_error
[Tue Aug 05 00:09:39 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 00:12:13 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 00:12:23 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 00:20:27 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 00:22:55 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 00:27:23 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 00:27:33 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 00:29:07 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 00:29:12 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 00:29:45 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 00:29:50 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 00:31:30 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 00:31:41 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 10:01:02 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 10:01:12 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 10:03:51 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 10:03:56 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?

abills_error_log
[Mon Aug 04 23:52:22 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Mon Aug 04 23:52:33 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Mon Aug 04 23:56:19 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Mon Aug 04 23:56:24 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 00:12:13 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 00:12:23 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 00:18:53 2014] [error] Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf/httpd.conf:1015)
[Tue Aug 05 00:19:01 2014] [error] Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf/httpd.conf:1015)
[Tue Aug 05 10:03:51 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 10:03:56 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?


Пробовал отключить ssl но все равно не завилось, может где то еще надо что то менять но я только закоментировал в httpd.conf

roma33rus
Сообщения: 116
Зарегистрирован: Чт фев 02, 2012 3:15 pm

Re: Запуск Apache Centos

Сообщение roma33rus »

Конфиг покажите

alex006
Сообщения: 27
Зарегистрирован: Ср авг 29, 2012 3:16 pm

Re: Запуск Apache Centos

Сообщение alex006 »

#Abills version 0.5

Listen 9443

<VirtualHost localhost:9443>

DocumentRoot "/usr/abills/cgi-bin"

#ServerName www.example.com:9443

#ServerAdmin admin@example.com

ErrorLog /var/log/httpd/abills-error.log

#TransferLog /var/log/httpd/abills-access.log

CustomLog /var/log/httpd/abills-access_log common

<IfModule ssl_module>

# SSL Engine Switch:

# Enable/Disable SSL for this virtual host.

SSLEngine on

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

SSLCertificateFile /usr/abills/Certs/server.crt

SSLCertificateKeyFile /usr/abills/Certs/server.key

<FilesMatch "\.(cgi)$">

SSLOptions +StdEnvVars

</FilesMatch>

BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /var/log/abills-ssl_request.log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</IfModule>

# User interface

<Directory "/usr/abills/cgi-bin">

<IfModule ssl_module>

SSLOptions +StdEnvVars

</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_CGI_AUTHORIZATION:%1]
Options Indexes ExecCGI SymLinksIfOwnerMatch
</IfModule>

AddHandler cgi-script .cgi
Options Indexes ExecCGI FollowSymLinks
AllowOverride none
DirectoryIndex index.cgi
Order allow,deny
Allow from all
<Files ~ "\.(db|log)$">
Order allow,deny
Deny from all
</Files>

#For hotspot solution

#ErrorDocument 404 "/abills/"

#directoryIndex "/abills" index.cgi

</Directory>

#Admin interface

<Directory "/usr/abills/cgi-bin/admin">

<IfModule ssl_module>

SSLOptions +StdEnvVars

</IfModule>

AddHandler cgi-script .cgi

Options Indexes ExecCGI FollowSymLinks

AllowOverride none

DirectoryIndex index.cgi

order deny,allow

allow from all

</Directory>

</VirtualHost>

roma33rus
Сообщения: 116
Зарегистрирован: Чт фев 02, 2012 3:15 pm

Re: Запуск Apache Centos

Сообщение roma33rus »

ServerName попробуйте прописать в конфиг виртуального хоста

alex006
Сообщения: 27
Зарегистрирован: Ср авг 29, 2012 3:16 pm

Re: Запуск Apache Centos

Сообщение alex006 »

Пробовал но результат тот же, сегодня попробую поставить с "0" может где то ошибся. Установлю отпишусь.

~AsmodeuS~
Site Admin
Сообщения: 5746
Зарегистрирован: Пт янв 28, 2005 3:11 pm
Контактная информация:

Re: Запуск Apache Centos

Сообщение ~AsmodeuS~ »

RSA server certificate CommonName (CN) `al' does NOT match server name!?
[Tue Aug 05 10:03:56 2014] [warn] RSA server certificate CommonName (CN) `al' does NOT match server name!?

правильно сертификат создайте и ату на сервере проверте

alex006
Сообщения: 27
Зарегистрирован: Ср авг 29, 2012 3:16 pm

Re: Запуск Apache Centos

Сообщение alex006 »

Если не трудно подскажите что нужно делать с сертификатами? Уже и полностью отвечал на вопросы и пустыми делал ошибки те же.
Ошибка хотя и пишет что запустился.
Запускается httpd: httpd: apr_sockaddr_info_get() failed for server
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

abills-error.log
RSA server certificate CommonName (CN) `al' does NOT match server name!?

~AsmodeuS~
Site Admin
Сообщения: 5746
Зарегистрирован: Пт янв 28, 2005 3:11 pm
Контактная информация:

Re: Запуск Apache Centos

Сообщение ~AsmodeuS~ »

/etc/hosts

запишите ип адрес сервера его хостнейм

Xramovnik
Сообщения: 98
Зарегистрирован: Сб апр 12, 2008 7:18 am
Откуда: Ставропольский край
Контактная информация:

Re: Запуск Apache Centos

Сообщение Xramovnik »

SeLinux отключи и будет тебе счастье)))
Слишком гадкий чтобы жить, слишком редкий чтобы сдохнуть...

~AsmodeuS~
Site Admin
Сообщения: 5746
Зарегистрирован: Пт янв 28, 2005 3:11 pm
Контактная информация:

Re: Запуск Apache Centos

Сообщение ~AsmodeuS~ »

и это обязательно

Код: Выделить всё

  semanage port -a -t http_port_t -p tcp 9443

Ответить