LinuxForum.Fans
Тема

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

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

После обновления выдает при старте:

text
/etc/init.d/apache2 start
 * Caching service dependencies ...                                       [ ok ]
 * apache2 has detected an error in your setup:
AH00526: Syntax error on line 128 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
[ebuild   R    ] www-servers/apache-2.4.1-r2  USE="ssl threads -debug -doc -ldap (-selinux) -static -suexec" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -auth_digest -authn_dbd -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -proxy_scgi -reqtimeout -substitute -version" APACHE2_MPMS="-event -itk -peruser -prefork -worker" 0 kB
text
[ebuild   R    ] dev-lang/php-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 -sqlite3 (-sybase-ct) -sysvipc -tidy -wddx -xmlreader -xmlwriter -xpm -xsl -zip" 0 kB
#245337

?

text
eselect php list apache2
text
eix -Iec php
#245342

php 5.4 не советую использовать, многие CMS абсолюно не готовы к нему, к примеру у меня Drupal с 5.4 начинает сыпать кучей ошибок, и часть функций не работает.

#245344
text
eselect php list apache2
  [1]   php5.4 *
text
eix -Iec php
[i] dev-lang/php (5.4.1_rc1(5.4)@12.04.2012): The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs.
[1] "php" layman/php
#245346
newzenon написал:
php 5.4 не советую использовать, многие CMS абсолюно не готовы к нему, к примеру у меня Drupal с 5.4 начинает сыпать кучей ошибок, и часть функций не работает.

у меня он для zabbix он норм работает 5.4.

#245347

Была и у меня подобная ошибка, но я просто «откатился» на php:5.3

#245349
"tyrnov" написал:
у меня он для zabbix он норм работает 5.4.

В логах не ругается?
Все таки лучше

"Lupo Alberto" написал:
просто «откатился» на php:5.3
#245351
text
>dev-lang/php-5.3.10 так сделал в /etc/portage/package.mask/dev-lang

ругается

text
emerge -av php

* 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 UD ] dev-libs/libpcre-8.21 [8.30-r2] USE="bzip2 cxx jit readline recursion-limit (unicode) zlib -static-libs (-pcre16%)" 1,147 kB [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

Total: 2 packages (1 downgrade, 1 in new slot), Size of downloads: 12,587 kB

!!! The following installed packages are masked: - dev-lang/php-5.4.1_rc1::gentoo (masked by: package.mask) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook.

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

#245352
newzenon написал:
[quote="tyrnov"]у меня он для zabbix он норм работает 5.4.

В логах не ругается?
[/quote]
Не в логах норм

#245354

А просто, без маскировок

text

emerge 'dev-lang/php:5.3'

P.S. ...и с помощью eselect php выбрать нужную версию.

#245356

У меня так:
/etc/portage/package.mask

text
>=dev-lang/php-5.4.0
#245360
text
>=dev-lang/php-5.4.0

так сделал сейчас откачусь гляну что будет

#245361
text
eselect php list apache2
  [1]   php5.3
  [2]   php5.4 *
text
 eselect php set 1
!!! Error: Please chose one of the following modules: cli apache2 fpm cgi
exiting
#245364
text
eselect php set apache2 1

...остальные (cli fpm cgi), если нужно, аналогично.

#245366
Lupo Alberto написал:
text
eselect php set apache2 1

...остальные (cli fpm cgi), если нужно, аналогично.

А понятно цифра выбора в конце просто

#245367
text
 /etc/init.d/apache2 start
 * apache2 has detected an error in your setup:
AH00526: Syntax error on line 128 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
User apache
Group apache
#245369

?

text
emerge --info | grep PHP_TARGETS
#245370
text
emerge --info | grep PHP_TARGETS
USE="X acl alac alsa amd64 berkdb bzip2 cdr cli cracklib crypt cups cxx dbus djvu dri dvd dvdr dvdread encode ffmpeg flac fortran gdbm gif gpm iconv ipv6 jpeg lame mad matroska mmx modules mp3 mp4 mpeg mpeg2 mpeg4pt2 mudflap multilib ncurses nls nptl nptlonly ogg openmp pam pcre perl png pppd python readline session sse sse2 ssl sysfs tcpd tiff truetype unicode vorbis wavpack xml xorg zlib" ALSA_CARDS="snd_hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics virtualbox" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
#245372
"tyrnov" написал:
Invalid command 'User', perhaps misspelled or defined by a module not included in the server configuration

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

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