LinuxForum.Fans
Тема

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

Автор: tyrnov 77 сообщений 23855 просмотров
#245401

А в dev-lang/php:5.3 флаг cgi включен?

#245403
text
emerge -av apache
Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads'

* 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 -Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' -Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' |Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads' Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': '-threads'... 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="-event -itk -peruser -prefork -worker" 0 kB

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

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

#245404
text
[quote=Lupo Alberto]А в [i]dev-lang/php:5.3[/i] флаг [b]cgi[/b] включен?[/quote]
[ebuild   R    ] dev-lang/php-5.3.10-r2  USE="apache2 bcmath berkdb bzip2 cli crypt ctype curl exif fileinfo filter gd gdbm hash iconv ipv6 json mysql nls pdo phar posix readline session simplexml sockets ssl threads tokenizer truetype unicode xml xmlrpc zlib -calendar -cdb -cgi -cjk -curlwrappers -debug -doc -embed -enchant -firebird -flatfile -fpm (-frontbase) -ftp -gmp -imap -inifile -intl -iodbc -kerberos -kolab -ldap -ldap-sasl -libedit -mhash -mssql -mysqli -mysqlnd -oci8-instant-client -odbc -pcntl -pic -postgres -qdbm -recode -sharedmem -snmp -soap -spell -sqlite -sqlite3 -suhosin (-sybase-ct) -sysvipc -tidy -wddx -xmlreader -xmlwriter -xpm -xsl -zip" 0 kB

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

#245405
"tyrnov" написал:
[ebuild NS ] dev-lang/php-5.3.10 [5.4.1_rc1] USE="apache2 bcmath berkdb bzip2 cli crypt ctype curl exif fileinfo filter gd gdbm hash iconv ipv6 json mysql nls pdo phar posix readline session simplexml sockets ssl threads tokenizer truetype unicode xml xmlrpc zlib -calendar -cdb -cgi -cjk -curlwrappers -debug -doc -embed -enchant -firebird -flatfile -fpm (-frontbase) -ftp -gmp -imap -inifile -intl -iodbc -kerberos -kolab -ldap -ldap-sasl -libedit -mhash -mssql -mysqli -mysqlnd -oci8-instant-client -odbc -pcntl -pic -postgres -qdbm -recode -sharedmem -snmp -soap -spell -sqlite -sqlite3 -suhosin (-sybase-ct) -sysvipc -tidy -wddx -xmlreader -xmlwriter -xpm -xsl -zip" 11,441 kB

cgi флаг у тебя выключен, включи в /etc/portage/package.use

#245406
"tyrnov" написал:
'APACHE2_MODULES': '-threads'

Так это же USE-флаг.

#245409

Наверное из-за

text
auth_digest: Username/password authentication using MD5 digests. 

изначально ошибка была
Тут смотри Apache2/APACHE2 MODULES

#245410
Lupo Alberto написал:
[quote="tyrnov"]'APACHE2_MODULES': '-threads'

Так это же USE-флаг.[/quote]
Это да уже исправил сначала не подумал просто

#245411
newzenon написал:

cgi флаг у тебя выключен, включи в /etc/portage/package.use

Уже пересобирается

#245412
newzenon написал:
Наверное из-за
text
auth_digest: Username/password authentication using MD5 digests. 

изначально ошибка была
Тут смотри Apache2/APACHE2 MODULES

auth_digest убрал
Так же ругается на строку с пользователем

#245417
text
/etc/init.d/apache2 start
 * apache2 has detected an error in your setup:
AH00526: Syntax error on line 154 of /etc/apache2/httpd.conf:
Invalid command 'User', perhaps misspelled or defined by a module not included in the server configuration
 * ERROR: apache2 failed to start
text
eselect php list cgi
  [1]   php5.3 *
nixgame chipset # eselect php list apache
!!! Error: Please chose one of the following modules: cli apache2 fpm cgi
exiting
text
eselect php list apache2
  [1]   php5.3 *
  [2]   php5.4
#245418
"tyrnov" написал:
auth_digest убрал

Так наоборот его включить надо, в первом посте у тебя он выключен.

#245419
newzenon написал:
[quote="tyrnov"]auth_digest убрал

Так наоборот его включить надо, в первом посте у тебя он выключен.[/quote]
сейчас попробуем

#245420

ы. Все auth включи ... или по одному.

#245424

Startup errors:
Invalid command 'User', perhaps misspelled or defined by a module not included in the server configuration - load module mod_unixd
Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration, or Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration - load module mod_access_compat, or update configuration to 2.4 authorization directives.
Ignoring deprecated use of DefaultType in line NN of /path/to/httpd.conf - remove DefaultType and replace with other configuration settings.
Errors serving requests:
configuration error: couldn't check user: /path - load module mod_authn_core.

Внизу смотри - http://httpd.apache.org/docs/2.4/upgrading.html

#245427

Да нашел, но туговато с английским. Патч чтоли какой то надо наложить?

#245432

tyrnov, установка тестовой версии apache обязательна? Возможно, проще остаться www-servers/apache-2.2.22.

#245436
tyrnov написал:
Да нашел, но туговато с английским. Патч чтоли какой то надо наложить?

Там же написано про твою ошибку
load module mod_unixd - тебе нужно загрузить модуль mod_unixd

#245441

Вообще что касается веб-серверов, пхп итд, не советую ставить самое новое (особенно в продакшн), лучше -1 версия, выйдет следующая - тогда и обновляться, и то не факт, у меня в облуживании нигде бет нету, ядер 3-их вообще нет... :)
Кстати zabbix на nginx прекрасно работает.

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