Textpattern - на русском языке

форум общения русскоязычных пользователей CMS Текстпаттерн

Вы не зашли.

#1 23-04-2006 09:45:38

Blood Angel
аз
Зарегистрирован: 23-04-2006
Сообщений: 4

Режим постоянных ссылок работают только messy

есть freebsd 5.4, apache 2.1, mysql 4.0б php4.4.1 и txp 4.0.3
после установки txp работают только messy ссылки. как заставить работать другие?
диагонстика выдает:
Версия Textpattern: 4.0.3 (r1188)
Последнее обновление: 2006-04-22 08:00:11/2006-04-22 07:55:48
Document root: /usr/local/www/data/domain (/usr/local/www/data-dist/domain)
$path_to_site: /usr/local/www/data-dist/domain
Путь к Textpattern: /usr/local/www/data-dist/domain/textpattern
Режим постоянных ссылок: section_id_title
Папка для временных файлов: /usr/local/www/data-dist/domain/textpattern/tmp
URL сайта: www1.domain
Версия PHP: 4.4.1
server_time: 2006-04-23 09:37:54
MySQL: 4.0.24
Локализация: ru_RU.UTF-8
Сервер: Apache/2.1.8 (FreeBSD) mod_ssl/2.1.8 OpenSSL/0.9.8a DAV/2 PHP/4.4.1
Версия Apache: Apache/2.1.8 (FreeBSD) mod_ssl/2.1.8 OpenSSL/0.9.8a DAV/2 PHP/4.4.1
php_sapi_mode: apache2handler
os_version: FreeBSD 5.4-RELEASE

Содержание файла .htaccess:
------------------------
#DirectoryIndex index.php index.html
Options +FollowSymLinks
RewriteBase /textpattern/
#RewriteBase /

#<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteOptions MaxRedirects=101
RewriteRule ^(.*) index.php
#</IfModule>

------------------------

Charset (default/config): latin1/latin1
character_set: latin1
character_sets: latin1 dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5
18 Tables: OK

Расширения PHP: standard/4.4.1, apache2handler, ctype, mysql, overload, pcre, posix, session, tokenizer/0.1, xml, zlib/1.1, mhash, gettext, mbstring, fileinfo/0.1, ftp, gd, iconv, imap, ldap, mcrypt, domxml/20020815, mcal

Модули Apache: core, prefork, http_core, mod_so, mod_authn_file, mod_authn_dbm, mod_authn_anon, mod_authn_default, mod_authz_host, mod_authz_groupfile, mod_authz_user, mod_authz_dbm, mod_authz_owner, mod_authz_default, mod_auth_basic, mod_auth_digest, mod_file_cache, mod_cache, mod_disk_cache, mod_charset_lite, mod_include, mod_deflate, mod_log_config, mod_logio, mod_env, mod_mime_magic, mod_cern_meta, mod_expires, mod_headers, mod_usertrack, mod_unique_id, mod_setenvif, mod_ssl, mod_mime, mod_dav, mod_status, mod_autoindex, mod_asis, mod_info, mod_cgi, mod_dav_fs, mod_vhost_alias, mod_negotiation, mod_dir, mod_imagemap, mod_actions, mod_speling, mod_userdir, mod_alias, mod_rewrite, sapi_apache2

/include/txp_category.php: r1154 (dffd7979531373149c74e3eedfbb50e2)
/include/txp_plugin.php: r1167 (c2c7d7fc1e4918c79cd3658c62e4fbda)
/include/txp_auth.php: r1166 (3e2eaca7b151e14561125ab68e722203)
/include/txp_form.php: r947 (c0e4393328985742bd81cda61d10d5ed)
/include/txp_section.php: r1154 (d85c1ce405fccd9dac364c8ef4eb72eb)
/include/txp_tag.php: r1134 (3e2dfbd6fdccf0693c147ba22a9705e7)
/include/txp_list.php: r1042 (e85d2de1c63b41f0e5bdcf268e3c487b)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1170 (1e56e08cc95c255783410076db12529f)
/include/txp_prefs.php: r1170 (c806be1b1f238e75a5ff6b7cf8432d17)
/include/txp_log.php: r906 (68c4f32b70ce41a349f197b6bba6c200)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r1168 (e8ec79ff9b3a21c356ee23da7973b1f0)
/include/txp_article.php: r1170 (88689d7469d16c13d51bd4adff03ebd7)
/include/txp_css.php: r922 (0c596d9968052b89581d1ca65a77c5de)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r1154 (7c0c55ff6580793dff0626f169e64ad6)
/include/txp_diag.php: r1154 (5d66b90f7e7720dd0e3526ca1b24cf89)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r1170 (7000a1b27aa40c90978211e6cff358ec)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r1183 (fb85b66b4e379476935233f844844bef)
/lib/classTextile.php: r1141 (b066c2bfa94a26ae3d70b245dcf81369)
/lib/txplib_html.php: r1166 (bd11de6e6daa3391eab75a46db55ae36)
/lib/txplib_db.php: r1170 (5a2c3a1e328cd343a067cbb8fd25cd79)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)
/publish/taghandlers.php: r1188 (4e8eaeb0543d8fde09d6e423af4253b9)
/publish/atom.php: r1117 (14c1aa23c708898d7723b3d6b9c89050)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1187 (d55dde574418d2eaf6a394d703056d9a)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r1099 (ce0d82b9435d8f1de01c8e2b6c585f93)
/publish.php: r1186 (d5c20bf2298e87969575f9e622bf2797)
/index.php: r1172 (52f753ebb51c1f7d5312485d9dbad7e4)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)

в этом случае даже страничка сайта не отображается.

если поменять и выключить Rewrite engine в .htaccess, то страничка отображается, но ссылка вида http://www1.domain/article/1/first-post#comment нет.

Версия Textpattern: 4.0.3 (r1188)
Последнее обновление: 2006-04-22 08:00:11/2006-04-22 07:55:48
Document root: /usr/local/www/data/domain (/usr/local/www/data-dist/domain)
$path_to_site: /usr/local/www/data-dist/domain
Путь к Textpattern: /usr/local/www/data-dist/domain/textpattern
Режим постоянных ссылок: section_id_title
Папка для временных файлов: /usr/local/www/data-dist/domain/textpattern/tmp
URL сайта: www1.domain
Версия PHP: 4.4.1
server_time: 2006-04-23 09:37:54
MySQL: 4.0.24
Локализация: ru_RU.UTF-8
Сервер: Apache/2.1.8 (FreeBSD) mod_ssl/2.1.8 OpenSSL/0.9.8a DAV/2 PHP/4.4.1
Версия Apache: Apache/2.1.8 (FreeBSD) mod_ssl/2.1.8 OpenSSL/0.9.8a DAV/2 PHP/4.4.1
php_sapi_mode: apache2handler
os_version: FreeBSD 5.4-RELEASE

Содержание файла .htaccess:
------------------------
#DirectoryIndex index.php index.html
Options +FollowSymLinks
RewriteBase /textpattern/
#RewriteBase /

#<IfModule mod_rewrite.c>
# RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteOptions MaxRedirects=101
RewriteRule ^(.*) index.php
#</IfModule>

------------------------

Charset (default/config): latin1/latin1
character_set: latin1
character_sets: latin1 dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5
18 Tables: OK

Расширения PHP: standard/4.4.1, apache2handler, ctype, mysql, overload, pcre, posix, session, tokenizer/0.1, xml, zlib/1.1, mhash, gettext, mbstring, fileinfo/0.1, ftp, gd, iconv, imap, ldap, mcrypt, domxml/20020815, mcal

Модули Apache: core, prefork, http_core, mod_so, mod_authn_file, mod_authn_dbm, mod_authn_anon, mod_authn_default, mod_authz_host, mod_authz_groupfile, mod_authz_user, mod_authz_dbm, mod_authz_owner, mod_authz_default, mod_auth_basic, mod_auth_digest, mod_file_cache, mod_cache, mod_disk_cache, mod_charset_lite, mod_include, mod_deflate, mod_log_config, mod_logio, mod_env, mod_mime_magic, mod_cern_meta, mod_expires, mod_headers, mod_usertrack, mod_unique_id, mod_setenvif, mod_ssl, mod_mime, mod_dav, mod_status, mod_autoindex, mod_asis, mod_info, mod_cgi, mod_dav_fs, mod_vhost_alias, mod_negotiation, mod_dir, mod_imagemap, mod_actions, mod_speling, mod_userdir, mod_alias, mod_rewrite, sapi_apache2

/include/txp_category.php: r1154 (dffd7979531373149c74e3eedfbb50e2)
/include/txp_plugin.php: r1167 (c2c7d7fc1e4918c79cd3658c62e4fbda)
/include/txp_auth.php: r1166 (3e2eaca7b151e14561125ab68e722203)
/include/txp_form.php: r947 (c0e4393328985742bd81cda61d10d5ed)
/include/txp_section.php: r1154 (d85c1ce405fccd9dac364c8ef4eb72eb)
/include/txp_tag.php: r1134 (3e2dfbd6fdccf0693c147ba22a9705e7)
/include/txp_list.php: r1042 (e85d2de1c63b41f0e5bdcf268e3c487b)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1170 (1e56e08cc95c255783410076db12529f)
/include/txp_prefs.php: r1170 (c806be1b1f238e75a5ff6b7cf8432d17)
/include/txp_log.php: r906 (68c4f32b70ce41a349f197b6bba6c200)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r1168 (e8ec79ff9b3a21c356ee23da7973b1f0)
/include/txp_article.php: r1170 (88689d7469d16c13d51bd4adff03ebd7)
/include/txp_css.php: r922 (0c596d9968052b89581d1ca65a77c5de)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r1154 (7c0c55ff6580793dff0626f169e64ad6)
/include/txp_diag.php: r1154 (5d66b90f7e7720dd0e3526ca1b24cf89)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r1170 (7000a1b27aa40c90978211e6cff358ec)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r1183 (fb85b66b4e379476935233f844844bef)
/lib/classTextile.php: r1141 (b066c2bfa94a26ae3d70b245dcf81369)
/lib/txplib_html.php: r1166 (bd11de6e6daa3391eab75a46db55ae36)
/lib/txplib_db.php: r1170 (5a2c3a1e328cd343a067cbb8fd25cd79)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)
/publish/taghandlers.php: r1188 (4e8eaeb0543d8fde09d6e423af4253b9)
/publish/atom.php: r1117 (14c1aa23c708898d7723b3d6b9c89050)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1187 (d55dde574418d2eaf6a394d703056d9a)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r1099 (ce0d82b9435d8f1de01c8e2b6c585f93)
/publish.php: r1186 (d5c20bf2298e87969575f9e622bf2797)
/index.php: r1172 (52f753ebb51c1f7d5312485d9dbad7e4)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)


в чем может быть проблема? куда копать? у кого работает нормально, какие у вас настройки?

Отредактированно Blood Angel (23-04-2006 09:46:41)

Неактивен

 

#2 24-04-2006 10:17:17

Evgeny
ять
Зарегистрирован: 15-03-2005
Сообщений: 1869

Re: Режим постоянных ссылок работают только messy

Blood Angel написал:

Содержание файла .htaccess:
------------------------
#DirectoryIndex index.php index.html
Options +FollowSymLinks
RewriteBase /textpattern/
#RewriteBase /

#<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteOptions MaxRedirects=101
RewriteRule ^(.*) index.php
#</IfModule>

Странный htaccess. Откуда взял? :-))

в htaccess по умолчанию обе строки с IfModule незакомментированы.

Неактивен

 

#3 24-04-2006 15:36:50

Blood Angel
аз
Зарегистрирован: 23-04-2006
Сообщений: 4

Re: Режим постоянных ссылок работают только messy

у меня модуль не 'c', а 'so' потому и закоментировал. а взял был в версии 4.0.1 кажется

Неактивен

 

#4 24-04-2006 17:25:50

Evgeny
ять
Зарегистрирован: 15-03-2005
Сообщений: 1869

Re: Режим постоянных ссылок работают только messy

Blood Angel написал:

в чем может быть проблема? куда копать?

Совершенно очевидно, что mod_rewrite не работает. Из-за этого и режим постоянных ссылок не работает.
Копать надо именно в эту сторону.

Неактивен

 

#5 24-04-2006 18:08:04

Blood Angel
аз
Зарегистрирован: 23-04-2006
Сообщений: 4

Re: Режим постоянных ссылок работают только messy

и как туда копать и с какой стороны?

Неактивен

 

#6 24-04-2006 21:41:01

Blood Angel
аз
Зарегистрирован: 23-04-2006
Сообщений: 4

Re: Режим постоянных ссылок работают только messy

если включить rewritelog 3, то имеем
127.0.0.X - - [24/Apr/2006:21:35:30 +0400] [domain.ru/sid#817ec80][rid#8266050/initial] (3) [perdir /usr/local/www/data/domain/] strip per-dir prefix: /usr/local/www/data/domain/ ->
127.0.0.X - - [24/Apr/2006:21:35:30 +0400] [domain.ru/sid#817ec80][rid#8266050/initial] (3) [perdir /usr/local/www/data/domain/] applying pattern '^(.+)' to uri ''
127.0.0.X - - [24/Apr/2006:21:35:30 +0400] [domain.ru/sid#817ec80][rid#8266050/initial] (3) [perdir /usr/local/www/data/domain/] strip per-dir prefix: /usr/local/www/data/domain/ ->
127.0.0.X - - [24/Apr/2006:21:35:30 +0400] [domain.ru/sid#817ec80][rid#8266050/initial] (3) [perdir /usr/local/www/data/domain/] applying pattern '^(.*)' to uri ''
127.0.0.X - - [24/Apr/2006:21:35:30 +0400] [domain.ru/sid#817ec80][rid#8266050/initial] (2) [perdir /usr/local/www/data/domain/] rewrite '' -> 'index.php'
127.0.0.X - - [24/Apr/2006:21:35:30 +0400] [domain.ru/sid#817ec80][rid#8266050/initial] (3) [perdir /usr/local/www/data/domain/] add per-dir prefix: index.php -> /usr/local/www/data/domain/index.php
127.0.0.X - - [24/Apr/2006:21:35:30 +0400] [domain.ru/sid#817ec80][rid#8266050/initial] (2) [perdir /usr/local/www/data/domain/] trying to replace prefix /usr/local/www/data/domain/ with /textpattern/
127.0.0.X - - [24/Apr/2006:21:35:30 +0400] [domain.ru/sid#817ec80][rid#8266050/initial] (1) [perdir /usr/local/www/data/domain/] internal redirect with /textpattern/index.php [INTERNAL REDIRECT]
127.0.0.X - - [24/Apr/2006:21:35:30 +0400] [domain.ru/sid#817ec80][rid#826b9b8/initial/redir#1] (3) [perdir /usr/local/www/data/domain/] strip per-dir prefix: /usr/local/www/data/domain/textpattern/index.php -> textpattern/index.php
127.0.0.X - - [24/Apr/2006:21:35:30 +0400] [domain.ru/sid#817ec80][rid#826b9b8/initial/redir#1] (3) [perdir /usr/local/www/data/domain/] applying pattern '^(.+)' to uri 'textpattern/index.php'
127.0.0.X - - [24/Apr/2006:21:35:30 +0400] [domain.ru/sid#817ec80][rid#826b9b8/initial/redir#1] (2) [perdir /usr/local/www/data/domain/] forcing '/usr/local/www/data/domain/textpattern/index.php' to get passed through to next API URI-to-filename handler
127.0.0.X - - [24/Apr/2006:21:35:30 +0400] [domain.ru/sid#817ec80][rid#826b9b8/initial/redir#1] (1) [perdir /usr/local/www/data/domain/] initial URL equal rewritten URL: /usr/local/www/data/domain/textpattern/index.php [IGNORING REWRITE]

Неактивен

 

Board footer

RSS   Rambler's Top100
Powered by PunBB
Textpattern.ru