Код: Выделить всё
/usr/local/etc/rc.d/apache22 start
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22
уровень логов - debug, логи пустые, видимо неуспевает даже в лог ничего записать, сразу валится
Код: Выделить всё
/usr/local/etc/rc.d/apache22 start
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22
Код: Выделить всё
/var/log/messages
Код: Выделить всё
Segmentation fault (11)
Код: Выделить всё
kernel: pid 22458 (httpd), uid 0: exited on signal 11 (core dumped)
Код: Выделить всё
extension=filter.so
extension=snmp.so
Код: Выделить всё
extension=ftp.so
extension=iconv.so
extension=pdo.so
extension=sockets.so
extension=imap.so
extension=openssl.so
extension=calendar.so
extension=pspell.so
extension=fileinfo.so
extension=soap.so
extension=snmp.so
extension=recode.so
extension=yaz.so
extension=gd.so
extension=pcre.so
extension=session.so
extension=xml.so
extension=mbstring.so
extension=mysql.so
extension=simplexml.so
extension=spl.so
extension=mysqli.so
extension=zlib.so
extension=dom.so
extension=exif.so
extension=json.so
extension=pdo_mysql.so
extension=tokenizer.so
extension=mcrypt.so
Код: Выделить всё
[Sat Apr 09 23:36:32 2011] [warn] (22)Invalid argument: sigaction(SIGUSR1)
[Sat Apr 09 23:36:32 2011] [notice] Apache/2.2.17 (FreeBSD) PHP/5.3.6 with Suhosin-Patch mod_scgi/1.12 DAV/2 configured -- resuming normal operations
[Sat Apr 09 23:36:32 2011] [info] Server built: Apr 9 2011 02:51:44
[Sat Apr 09 23:36:32 2011] [debug] prefork.c(1018): AcceptMutex: flock (default: flock)
[Sat Apr 09 23:36:41 2011] [debug] mod_headers.c(756): headers: ap_headers_output_filter()
/libexec/ld-elf.so.1: /usr/local/lib/php/20090626/mbstring.so: Undefined symbol "zend_multibyte_set_internal_encoding"
/libexec/ld-elf.so.1: /usr/local/lib/php/20090626/mbstring.so: Undefined symbol "zend_multibyte_set_internal_encoding"
/libexec/ld-elf.so.1: /usr/local/lib/php/20090626/mbstring.so: Undefined symbol "zend_multibyte_set_internal_encoding"
/libexec/ld-elf.so.1: /usr/local/lib/php/20090626/mbstring.so: Undefined symbol "zend_multibyte_set_internal_encoding"
[Sat Apr 09 23:37:41 2011] [debug] mod_headers.c(756): headers: ap_headers_output_filter()
/libexec/ld-elf.so.1: /usr/local/lib/php/20090626/mbstring.so: Undefined symbol "zend_multibyte_set_internal_encoding"
Код: Выделить всё
[09-Apr-2011 21:35:11] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/spl.so' - Cannot open "/usr/local/lib/php/2
[09-Apr-2011 23:36:30] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/soap.so' - /usr/local/lib/php/20090626/soap.so:
[09-Apr-2011 23:36:30] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/pcre.so' - Cannot open "/usr/local/lib/php/
Код: Выделить всё
mbstring.so
spl.so
soap.so
pcre.so
Код: Выделить всё
<?php
var_dump(filter_var('bob@example.com', FILTER_VALIDATE_EMAIL));
var_dump(filter_var('http://example.com', FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED));
?>
Код: Выделить всё
mbstring
spl
soap
pcre
Код: Выделить всё
pkg_version -v | grep php
Код: Выделить всё
portmaster -fR lang/php5
portmaster -fR lang/php5-extensions
Код: Выделить всё
portmaster -fR <port>
Код: Выделить всё
# pkg_version -v | grep php
php5-5.3.6 = up-to-date with port
php5-bcmath-5.3.6 = up-to-date with port
php5-bz2-5.3.6 = up-to-date with port
php5-calendar-5.3.6 = up-to-date with port
php5-ctype-5.3.6 = up-to-date with port
php5-curl-5.3.6 = up-to-date with port
php5-dom-5.3.6 = up-to-date with port
php5-exif-5.3.6 = up-to-date with port
php5-extensions-1.4 = up-to-date with port
php5-filter-5.3.6 = up-to-date with port
php5-ftp-5.3.6 = up-to-date with port
php5-gd-5.3.6 = up-to-date with port
php5-gettext-5.3.6 = up-to-date with port
php5-gmp-5.3.6 = up-to-date with port
php5-hash-5.3.6 = up-to-date with port
php5-iconv-5.3.6 = up-to-date with port
php5-imap-5.3.6 = up-to-date with port
php5-json-5.3.6 = up-to-date with port
php5-ldap-5.3.6 = up-to-date with port
php5-mbstring-5.3.6 = up-to-date with port
php5-mcrypt-5.3.6 = up-to-date with port
php5-mssql-5.3.6 = up-to-date with port
php5-mysql-5.3.6 = up-to-date with port
php5-mysqli-5.3.6 = up-to-date with port
php5-odbc-5.3.6 = up-to-date with port
php5-openssl-5.3.6 = up-to-date with port
php5-pcntl-5.3.6 = up-to-date with port
php5-pdo-5.3.6 = up-to-date with port
php5-pdo_mysql-5.3.6 = up-to-date with port
php5-pdo_sqlite-5.3.6 = up-to-date with port
php5-posix-5.3.6 = up-to-date with port
php5-pspell-5.3.6 = up-to-date with port
php5-readline-5.3.6 = up-to-date with port
php5-recode-5.3.6 = up-to-date with port
php5-session-5.3.6 = up-to-date with port
php5-shmop-5.3.6 = up-to-date with port
php5-simplexml-5.3.6 = up-to-date with port
php5-snmp-5.3.6 = up-to-date with port
php5-soap-5.3.6 = up-to-date with port
php5-sockets-5.3.6 = up-to-date with port
php5-sqlite-5.3.6 = up-to-date with port
php5-sybase_ct-5.3.6 = up-to-date with port
php5-sysvmsg-5.3.6 = up-to-date with port
php5-sysvsem-5.3.6 = up-to-date with port
php5-sysvshm-5.3.6 = up-to-date with port
php5-tidy-5.3.6 = up-to-date with port
php5-tokenizer-5.3.6 = up-to-date with port
php5-wddx-5.3.6 = up-to-date with port
php5-xml-5.3.6 = up-to-date with port
php5-xmlreader-5.3.6 = up-to-date with port
php5-xmlrpc-5.3.6 = up-to-date with port
php5-xmlwriter-5.3.6 = up-to-date with port
php5-xsl-5.3.6 = up-to-date with port
php5-zip-5.3.6 = up-to-date with port
php5-zlib-5.3.6 = up-to-date with port
phpGedView-4.2.3 = up-to-date with port
Код: Выделить всё
cd /usr/ports
make search name=php5-sol
make search name=php5-pcre
make search name=filter
остальное глянул, это уже читал, зачем нужно понятно. Буду искать в портахThe manual page you are looking for (http://ru2.php.net/manual/ru/function.filter-var.ph) is not available on this server right now. Please check back later, or if the problem persist, contact the webmasters.
Код: Выделить всё
portmaster -fR lang/php5
portmaster -fR lang/php5-extensions
при отправке письма из формы обратной связи браузер предлагает сохранить файл(php), вместо того что бы обработать как подобает. В чём грабли?
причём сайты на php, тот же RoundCube, vBulletin, VamShop работают нормально
Код: Выделить всё
AddType application/x-httpd-php .php .phtml .htm .html
AddType application/x-httpd-php-source .phps
Код: Выделить всё
[11-Apr-2011 15:40:41] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/pcre.so' - Cannot open "/usr/local/lib/php/20090626/pcre.so" in Unknown on line 0
[11-Apr-2011 15:40:41] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20090626/spl.so' - Cannot open "/usr/local/lib/php/20090626/spl.so" in Unknown on line 0
Код: Выделить всё
cd /usr/local; pkg_delete php5*; rm etc/php lib/php include/php
Код: Выделить всё
package 'php5-5.3.6' is required by these other packages
and may not be deinstalled:
pecl-fileinfo-1.0.4
php5-pdo_mysql-5.3.6
phpGedView-4.2.3
postfixadmin-2.3.3
php5-bz2-5.3.6
php5-zip-5.3.6
php5-zlib-5.3.6
pecl-fribidi-1.0_1
php5-iconv-5.3.6
php5-mbstring-5.3.6
php5-recode-5.3.6
php5-mssql-5.3.6
php5-mysql-5.3.6
php5-mysqli-5.3.6
php5-odbc-5.3.6
php5-pdo-5.3.6
php5-pdo_sqlite-5.3.6
php5-session-5.3.6
php5-sqlite-5.3.6
php5-sybase_ct-5.3.6
php5-gettext-5.3.6
php5-json-5.3.6
php5-pcntl-5.3.6
php5-readline-5.3.6
php5-shmop-5.3.6
php5-sysvmsg-5.3.6
php5-sysvsem-5.3.6
php5-sysvshm-5.3.6
php5-tokenizer-5.3.6
php5-curl-5.3.6
php5-ftp-5.3.6
php5-exif-5.3.6
php5-gd-5.3.6
php5-imap-5.3.6
php5-bcmath-5.3.6
php5-gmp-5.3.6
php5-calendar-5.3.6
php5-snmp-5.3.6
pecl-yaz-1.0.14_3
php5-ldap-5.3.6
php5-soap-5.3.6
php5-sockets-5.3.6
php5-xml-5.3.6
php5-xmlrpc-5.3.6
pecl-pdflib-2.1.8
php5-filter-5.3.6
php5-hash-5.3.6
php5-mcrypt-5.3.6
php5-openssl-5.3.6
php5-fileinfo-5.3.6
php5-posix-5.3.6
php5-ctype-5.3.6
php5-dom-5.3.6
php5-pspell-5.3.6
php5-simplexml-5.3.6
php5-wddx-5.3.6
php5-xmlreader-5.3.6
php5-xmlwriter-5.3.6
php5-xsl-5.3.6
php5-tidy-5.3.6
php5-extensions-1.4
rm: etc/php: is a directory
rm: lib/php: is a directory
rm: include/php: is a directory
аналогично и с spl: http://ru2.php.net/manual/en/spl.installation.phpAs of PHP 5.3.0 this extension cannot be disabled and is therefore always present.
а занчить грузить эти расширения не нужно. убираешь их из extensions.ini и перезагружаешь апач. все должно заработатьNote:
As of PHP 5.3.0 this extension can no longer be disabled and is therefore always available.
То есть при отправке, браузер предлагает сохранить php страничку вместо того что бы её обработать. Если создать такой вот файлик phpВот зайди, глянь http://shop.adios.spb.ru/shop_content.php?coID=7 тут при попытке что то отправить...да сам увидишь
Код: Выделить всё
<?php
var_dump(filter_var('bob@example.com', FILTER_VALIDATE_EMAIL));
var_dump(filter_var('http://example.com', FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED));
?>
Код: Выделить всё
AddType application/x-httpd-php php phtml