LinuxForum.Fans
Тема

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

Автор: tyrnov 77 сообщений 23854 просмотров
#245374
newzenon написал:
[quote="tyrnov"]Invalid command 'User', perhaps misspelled or defined by a module not included in the server configuration

Апачу модуля какого-то не хватает, а пользователь apache в системе есть?[/quote]
Интересно только какого модуля

#245377

...не помню, с этой ли проблемой это связано, но я замаскировал

text
=dev-libs/libpcre-8.30-r2
=app-admin/apache-tools-2.4.1
=www-servers/apache-2.4.1-r2
#245378

Сам апачем не пользуюсь (у меня nginx), шпаргалка осталась, не знаю подойдет ли тебе.

text
echo 'APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling status unique_id userdir usertrack version vhost_alias"
APACHE2_MPMS="prefork"' >> /etc/make.conf

И пересобрать.

#245379
"tyrnov" написал:
PHP_TARGETS="php5-3"

С этой проблемой напрямую не связано, но, если в дальнейшем планируется использовать php:5.4, нужно включить PHP_TARGETS="php5-3 php5-4", чтобы собирались соответствующие модули.

#245381
Lupo Alberto написал:
[quote="tyrnov"]PHP_TARGETS="php5-3"

С этой проблемой напрямую не связано, но, если в дальнейшем планируется использовать php:5.4, нужно включить PHP_TARGETS="php5-3 php5-4", чтобы собирались соответствующие модули.[/quote]
а поподробней где это включить?

#245383
"tyrnov" написал:
а поподробней где это включить?
text
gentoo-laptop ~ # grep PHP_TARGETS /etc/make.conf
PHP_TARGETS="php5-3 php5-4"
#245384
newzenon написал:
Сам апачем не пользуюсь (у меня nginx), шпаргалка осталась, не знаю подойдет ли тебе.
text
echo 'APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling status unique_id userdir usertrack version vhost_alias"
APACHE2_MPMS="prefork"' >> /etc/make.conf

И пересобрать.

Показать
text
emerge -av apache

* IMPORTANT: 2 news items need reading for repository 'gentoo'. * Use eselect news to read news items.

These are the packages that would be merged, in order:

Calculating dependencies... done! [ebuild R ] www-servers/apache-2.4.1-r2 USE="ssl threads -debug -doc -ldap (-selinux) -static -suexec" APACHE2_MODULES="actions alias asis* auth_basic auth_digest* authn_alias authn_anon authn_dbd* authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta* charset_lite* dav dav_fs dav_lock dbd* deflate dir disk_cache dumpio* env expires ext_filter file_cache filter headers ident* imagemap* include info log_config log_forensic* logio mem_cache mime mime_magic negotiation proxy* proxy_ajp* proxy_balancer* proxy_connect* proxy_ftp* proxy_http* rewrite setenvif speling status unique_id userdir usertrack version* vhost_alias -cgi* -cgid* -proxy_scgi -reqtimeout -substitute" APACHE2_MPMS="prefork* -event -itk -peruser -worker" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) www-servers/apache-2.4.1-r2 * httpd-2.4.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * gentoo-apache-2.4.1-20120401.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * * Selected MPM: prefork * * You have selected a non-threaded MPM but USE=threads is enabled * ERROR: www-servers/apache-2.4.1-r2 failed (setup phase): * invalid use flag combination * * Call stack: * ebuild.sh, line 85: Called pkg_setup * ebuild.sh, line 319: Called apache-2_pkg_setup * apache-2.eclass, line 368: Called setup_mpm * apache-2.eclass, line 143: Called die * The specific snippet of code: * die "invalid use flag combination" * * If you need support, post the output of 'emerge --info =www-servers/apache-2.4.1-r2', * the complete build log and the output of 'emerge -pqv =www-servers/apache-2.4.1-r2'. * The complete build log is located at '/var/tmp/portage/www-servers/apache-2.4.1-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/www-servers/apache-2.4.1-r2/temp/die.env'. * S: '/var/tmp/portage/www-servers/apache-2.4.1-r2/work/httpd-2.4.1'

>>> Failed to emerge www-servers/apache-2.4.1-r2, Log file:

>>> '/var/tmp/portage/www-servers/apache-2.4.1-r2/temp/build.log'

* Messages for package www-servers/apache-2.4.1-r2:

* * Selected MPM: prefork * * You have selected a non-threaded MPM but USE=threads is enabled * ERROR: www-servers/apache-2.4.1-r2 failed (setup phase): * invalid use flag combination * * Call stack: * ebuild.sh, line 85: Called pkg_setup * ebuild.sh, line 319: Called apache-2_pkg_setup * apache-2.eclass, line 368: Called setup_mpm * apache-2.eclass, line 143: Called die * The specific snippet of code: * die "invalid use flag combination" * * If you need support, post the output of 'emerge --info =www-servers/apache-2.4.1-r2', * the complete build log and the output of 'emerge -pqv =www-servers/apache-2.4.1-r2'. * The complete build log is located at '/var/tmp/portage/www-servers/apache-2.4.1-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/www-servers/apache-2.4.1-r2/temp/die.env'. * S: '/var/tmp/portage/www-servers/apache-2.4.1-r2/work/httpd-2.4.1'

* IMPORTANT: 2 news items need reading for repository 'gentoo'. * Use eselect news to read news items.

#245385
Lupo Alberto написал:
[quote="tyrnov"]а поподробней где это включить?
text
gentoo-laptop ~ # grep PHP_TARGETS /etc/make.conf
PHP_TARGETS="php5-3 php5-4"

[/quote]
Добавил

#245386
"tyrnov" написал:
You have selected a non-threaded MPM but USE=threads is enabled

Тут вроде понятно.

#245389
newzenon написал:
[quote="tyrnov"]You have selected a non-threaded MPM but USE=threads is enabled

Тут вроде понятно.[/quote]
Закоментил APACHE2_MPMS="prefork"' >> /etc/make.conf

#245390
"tyrnov" написал:
Добавил

...надо бы пересобрать всё, что выведет

text
equery -qC d php
#245391
text
/etc/init.d/apache2 start
 * Caching service dependencies ...                                       [ ok ]
 * apache2 has detected an error in your setup:
apache2: Syntax error on line 76 of /etc/apache2/httpd.conf: Cannot load /usr/lib64/apache2/modules/mod_cgi.so into server: /usr/lib64/apache2/modules/mod_cgi.so: cannot open shared object file: No such file or directory
 * ERROR: apache2 failed to start

Стало после того как пересобрал апач

#245392
text
 equery -qC d php
dev-db/phpmyadmin-3.5.0
net-analyzer/zabbix-1.8.11-r1
virtual/httpd-php-5.4

Пересобрать эти 3 пакета?

#245393
"tyrnov" написал:
virtual/httpd-php-5.4

Тоже бы надо замаскировать.

#245394
"tyrnov" написал:
Закоментил APACHE2_MPMS="prefork"' >> /etc/make.conf

Я бы глобальный (в make.conf) threads убрал.

#245395

Так замаскировал =virtual/httpd-php-5.4

#245396
"tyrnov" написал:
Cannot load /usr/lib64/apache2/modules/mod_cgi.so into server:
text
eselect php set cgi 1
#245398
text
eselect php set cgi 1
!!! Error: Bad target
exiting
text
eselect php list cgi
  (none found)
Войдите или зарегистрируйтесь, чтобы ответить.