Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache2+mod_php5
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
_Nikolas_
n00b
n00b


Joined: 01 Apr 2005
Posts: 18
Location: Russia

PostPosted: Mon Jul 11, 2005 7:28 pm    Post subject: apache2+mod_php5 Reply with quote

Помогите настроить, ничего не получается :(
В файле /etc/conf.d/apache2 поставил опции -D PHP5 и ничего не работает(
вот файл /etc/conf.d/apache2
Code:

APACHE2_OPTS="-D PHP5"

а вот файл /etc/apache2/httpd.conf
Code:

ServerRoot "/usr/lib/apache2"
<IfModule !perchild.c>
</IfModule>
PidFile "/var/run/apache2.pid"
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
</IfModule>
<IfModule worker.c>
</IfModule>
<IfModule perchild.c>
</IfModule>
<IfModule peruser.c>
</IfModule>
Listen 80
LoadModule access_module                 modules/mod_access.so
LoadModule auth_module                   modules/mod_auth.so
LoadModule auth_anon_module              modules/mod_auth_anon.so
LoadModule auth_dbm_module               modules/mod_auth_dbm.so
LoadModule auth_digest_module            modules/mod_auth_digest.so
LoadModule charset_lite_module           modules/mod_charset_lite.so
LoadModule env_module                    modules/mod_env.so
LoadModule expires_module                modules/mod_expires.so
LoadModule headers_module                modules/mod_headers.so
LoadModule mime_module                   modules/mod_mime.so
LoadModule negotiation_module            modules/mod_negotiation.so
LoadModule setenvif_module               modules/mod_setenvif.so
LoadModule log_config_module             modules/mod_log_config.so
LoadModule logio_module                  modules/mod_logio.so
LoadModule cgi_module                    modules/mod_cgi.so
LoadModule cgid_module                   modules/mod_cgid.so
LoadModule suexec_module                 modules/mod_suexec.so
LoadModule alias_module                  modules/mod_alias.so
LoadModule rewrite_module                modules/mod_rewrite.so
<IfDefine USERDIR>
</IfDefine>
LoadModule actions_module                modules/mod_actions.so
LoadModule autoindex_module              modules/mod_autoindex.so
LoadModule dir_module                    modules/mod_dir.so
LoadModule status_module                 modules/mod_status.so
LoadModule ext_filter_module             modules/mod_ext_filter.so
LoadModule deflate_module                modules/mod_deflate.so
LoadModule include_module                modules/mod_include.so
<IfDefine PROXY>
</IfDefine>
Include conf/modules.d/*.conf
User apache
Group apache
ServerAdmin root@localhost
UseCanonicalName Off
<Directory />
</Directory>
<IfModule mod_userdir.c>
</IfModule>
DirectoryIndex index.html index.html.var index.php
AccessFileName .htaccess
<Files ~ "^\.ht">
</Files>
TypesConfig /etc/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
</IfModule>
HostnameLookups Off
ErrorLog logs/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access_log common
ServerTokens Full
ServerSignature On
Alias /icons/ "/var/www/localhost/icons/"
<Directory "/var/www/localhost/icons/">
</Directory>
ScriptAlias /cgi-bin/ /var/www/localhost/cgi-bin/
ScriptAlias /protected-cgi-bin/ /var/www/localhost/protected-cgi-bin/
<IfModule mod_cgid.c>
</IfModule>
<Directory "/var/www/localhost/cgi-bin/">
</Directory>
<IfModule mod_autoindex.c>
</IfModule>
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
ForceLanguagePriority Prefer Fallback
AddDefaultCharset KOI8-r
AddCharset ISO-8859-1  .iso8859-1  .latin1
AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
AddCharset ISO-8859-3  .iso8859-3  .latin3
AddCharset ISO-8859-4  .iso8859-4  .latin4
AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru
AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb
AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk
AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb
AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5        .Big5       .big5
AddCharset WINDOWS-1251 .cp-1251   .win-1251
AddCharset CP866       .cp866
AddCharset KOI8-r      .koi8-r .koi8-ru
AddCharset KOI8-ru     .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8       .utf8
AddCharset GB2312      .gb2312 .gb
AddCharset utf-7       .utf7
AddCharset utf-8       .utf8
AddCharset big5        .big5 .b5
AddCharset EUC-TW      .euc-tw
AddCharset EUC-JP      .euc-jp
AddCharset EUC-KR      .euc-kr
AddCharset shift_jis   .sjis
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddHandler type-map var
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
NameVirtualHost *:80
<VirtualHost *:80>
</VirtualHost>
Include conf/vhosts.d/*.conf


В чем может быть проблема? Php никак не хочет работать, если указываю ссылку на страницу она просто начинает скачиваться.
Back to top
View user's profile Send private message
IFL
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2005
Posts: 117

PostPosted: Mon Jul 11, 2005 7:35 pm    Post subject: Reply with quote

emerge -av =mod_php-5.0* ? :lol:
Back to top
View user's profile Send private message
_Nikolas_
n00b
n00b


Joined: 01 Apr 2005
Posts: 18
Location: Russia

PostPosted: Wed Jul 13, 2005 8:36 am    Post subject: Reply with quote

Все разобрался, все работает)))
Извиняюсь за беспокойство.:oops:
Back to top
View user's profile Send private message
napalm
n00b
n00b


Joined: 11 Nov 2003
Posts: 18
Location: Kiev, Ukraine

PostPosted: Thu Jul 14, 2005 12:28 pm    Post subject: Reply with quote

Та же лажа с PHP4. Что у тебя было? Может и мне поможет.:oops:

2IFL:
Code:
# emerge -av =mod_php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-php/mod_php-4.4.0_rc2  +X +apache2 +berkdb +crypt +curl -debug -doc -fdftk -firebird -flash -freetds +gd +gd-external +gdbm -gmp -hardenedphp +imap -informix -ipv6 +java +jpeg -kerberos -ldap -mcal -memlimit -mssql +mysql +nls -oci8 -odbc +pam +pdflib +png +postgres +qt -snmp +spell +ssl +tiff +truetype +xml2 -yaz 0 kB

Total size of downloads: 0 kB

Do you want me to merge these packages? [Yes/No] n

Quitting.
Чем это может помочь?
Back to top
View user's profile Send private message
_Nikolas_
n00b
n00b


Joined: 01 Apr 2005
Posts: 18
Location: Russia

PostPosted: Fri Jul 15, 2005 7:25 am    Post subject: Reply with quote

Да у меня чето само заработало после перезагрузки.
Еще в файле /etc/apache2/modules... там модуль который для пхп был как-то коряво написан, взял из другого места - все запахало.:wink:
Back to top
View user's profile Send private message
napalm
n00b
n00b


Joined: 11 Nov 2003
Posts: 18
Location: Kiev, Ukraine

PostPosted: Fri Jul 15, 2005 9:08 am    Post subject: Reply with quote

Ох и бред.

Делал
/etc/init.d/apache2 restart
0 на массу.

После
/etc/init.d/apache2 stop
/etc/init.d/apache2 start
Вкурило.

Solved.
Back to top
View user's profile Send private message
hlroad
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2004
Posts: 105

PostPosted: Sun Jul 17, 2005 1:14 am    Post subject: Reply with quote

napalm wrote:
Ох и бред.

Делал
/etc/init.d/apache2 restart
0 на массу.

После
/etc/init.d/apache2 stop
/etc/init.d/apache2 start
Вкурило.

А чего вы хотели, собственно ? Gracefull restart неспособен сменить список модулей...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum