LinuxForum.Fans
Тема

Обновление apache и php

Автор: tyrnov 77 сообщений 23862 просмотров
#245444
Lupo Alberto написал:
tyrnov, установка тестовой версии apache обязательна? Возможно, проще остаться www-servers/apache-2.2.22.
text
/etc/init.d/apache2 start
 * Caching service dependencies ...                                       [ ok ]
 * apache2 has detected an error in your setup:
apache2: Syntax error on line 166 of /etc/apache2/httpd.conf: Syntax error on line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load /usr/lib64/apache2/modules/libphp5.so into server: /usr/lib64/apache2/modules/libphp5.so: undefined symbol: ap_unixd_config
 * ERROR: apache2 failed to start

Это на apache-2.2.22

#245452
newzenon написал:
тебе нужно загрузить модуль mod_unixd

А как можно загрузить модуль mod_unixd

#245473
"tyrnov" написал:
Это на apache-2.2.22

Нужно пересобрать используемую версию php.

#245478

http://paste.pocoo.org/show/580028/
http://paste.pocoo.org/show/580029/

text
/etc/init.d/apache2 restart
 * apache2 has detected an error in your setup:
[Thu Apr 12 16:17:58.208378 2012] [core:warn] [pid 10093:tid 139918856107840] AH00117: Ignoring deprecated use of DefaultType in line 8 of /etc/apache2/modules.d/00_mod_mime.conf.
AH00526: Syntax error on line 57 of /etc/apache2/modules.d/40_mod_ssl.conf:
Invalid Mutex directory in argument file:/var/run/ssl_mutex
 * ERROR: apache2 failed to start
#245480
Lupo Alberto написал:
[quote="tyrnov"]Это на apache-2.2.22

Нужно пересобрать используемую версию php.[/quote]
Пока попробую на новой версии. если нет буду откатывать

#245482

Во втором конфиге убрал повтор. Теперь стартует, но:

text
/etc/init.d/apache2 restart
 * Starting apache2 ...
[Thu Apr 12 16:20:28.624598 2012] [core:warn] [pid 10116:tid 139693502412608] AH00117: Ignoring deprecated use of DefaultType in line 8 of /etc/apache2/modules.d/00_mod_mime.conf.
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/vhosts.d/00_default_vhost.conf:29                             [ ok ]
/etc/init.d/apache2 status
 * status: started
#245484

Попробуйте с такими настройками:

text
lupo@gentoo-laptop ~ % eix -Iec apache                                                                  [gentoo-laptop][13:36]
[i] www-servers/apache (2.2.22(2)@02.04.2012): The Apache Web Server.
lupo@gentoo-laptop ~ % wgetpaste /etc/conf.d/apache2                                                    [gentoo-laptop][13:36]
Your paste can be seen here: http://paste.pocoo.org/show/580032/
lupo@gentoo-laptop ~ % wgetpaste /etc/apache2/httpd.conf                                                [gentoo-laptop][15:17]
Your paste can be seen here: http://paste.pocoo.org/show/580033/
lupo@gentoo-laptop ~ % wgetpaste /etc/make.conf                                                         [gentoo-laptop][15:17]
Your paste can be seen here: http://paste.pocoo.org/show/580034/
lupo@gentoo-laptop ~ % wgetpaste -c 'emerge -pv apache dev-lang/php:5.3'                                [gentoo-laptop][15:18]
Your paste can be seen here: http://paste.pocoo.org/show/580035/
lupo@gentoo-laptop ~ % eselect php list apache2                                                         [gentoo-laptop][15:22]
  [1]   php5.3 *
  [2]   php5.4
lupo@gentoo-laptop ~ % eselect php list cgi                                                             [gentoo-laptop][15:22]
  [1]   php5.3 *
  [2]   php5.4
#245488

У меня же апач другая версия

#245489
text
eix -Iec apache
[i] www-servers/apache (2.4.1-r2(2)@12.04.2012): The Apache Web Server.
[1] "jmbsvicetto" layman/jmbsvicetto
[2] "ohnobinki_overlay" layman/ohnobinki
[3] "raw" layman/raw
#245491
"tyrnov" написал:
У меня же апач другая версия

Я просто предложил рабочую комбинацию

#245492
"tyrnov" написал:
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/vhosts.d

Ну так это не ошибка, это предупреждение о будущих модификациях в конфигах, недавно также ругались все init скрипты на /opt :)

#245513
newzenon написал:
[quote="tyrnov"]AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/vhosts.d

Ну так это не ошибка, это предупреждение о будущих модификациях в конфигах, недавно также ругались все init скрипты на /opt :)[/quote]
Да это понятно. Просто думал может убрать можно

#245514

Решено апач стартует

#245515

Не соврал.

text
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

#245523
"tyrnov" написал:
Не соврал.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Копай конфиг апача. :)
Остался бы на 2.2

#245530

Да вроде в конфиге все как всегда

Войдите или зарегистрируйтесь, чтобы ответить.