|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Ilya Lavrinenko 2:478/90 26 Oct 2004 18:01:30 To : Sergey N Osipov Subject : apache2+php -------------------------------------------------------------------------------- 25 Oct 04 09:01, you wrote to me: SO>>> AddType application/x-httpd-php .php SO>>> AddType application/x-httpd-php-source .phps IL>> конечно все это есть SO> А что пишется в лог при старте...apache или php-ный error_log, SO> может ошибка какая... -=-=-=-=-=-=-=-=-=-=- begin error_log -=-=-=-=-=-=-=-=-=-=- [Tue Oct 26 18:01:10 2004] [notice] Apache/2.0.51 (Gentoo/Linux) PHP/4.3.9 configured -- resuming normal operations -=-=-=-=-=-=-=-=-=-=- end error_log -=-=-=-=-=-=-=-=-=-=- SO> P.S. Как собирал... и конфиг может покажешь(apache и php) ??? ок, скипаю то, что не нужно -- для уменьшения веса: -=-=-=-=-=-=-=-=-=-=- begin php.ini -=-=-=-=-=-=-=-=-=-=- engine = On short_open_tag = On asp_tags = Off precision = 12 y2k_compliance = On output_buffering = Off ;output_handler = zlib.output_compression = Off ;zlib.output_handler = implicit_flush = Off unserialize_callback_func= serialize_precision = 100 allow_call_time_pass_reference = On safe_mode = Off safe_mode_gid = Off safe_mode_include_dir = safe_mode_exec_dir = safe_mode_allowed_env_vars = PHP_ safe_mode_protected_env_vars = LD_LIBRARY_PATH ;open_basedir = disable_functions = disable_classes = expose_php = On max_execution_time = 30 ; Maximum execution time of each script, in seconds max_input_time = 60 ; Maximum amount of time each script may spend parsing request data memory_limit = 8M ; Maximum amount of memory a script may consume (8MB) error_reporting = E_ALL & ~E_NOTICE display_errors = On display_startup_errors = Off log_errors = Off log_errors_max_len = 1024 ignore_repeated_errors = Off ignore_repeated_source = Off report_memleaks = On track_errors = Off variables_order = "EGPCS" register_globals = Off register_argc_argv = On post_max_size = 8M gpc_order = "GPC" magic_quotes_gpc = On magic_quotes_runtime = Off magic_quotes_sybase = Off auto_prepend_file = auto_append_file = default_mimetype = "text/html" ;default_charset = "iso-8859-1" ;always_populate_raw_post_data = On include_path = ".:/usr/lib/php" doc_root = user_dir = extension_dir = /usr/lib/php/extensions/no-debug-non-zts-20020429 enable_dl = On file_uploads = On upload_max_filesize = 2M allow_url_fopen = On default_socket_timeout = 60 define_syslog_variables = Off SMTP = localhost smtp_port = 25 sendmail_path = /usr/sbin sql.safe_mode = Off odbc.allow_persistent = On odbc.check_persistent = On odbc.max_persistent = -1 odbc.max_links = -1 odbc.defaultlrl = 4096 odbc.defaultbinmode = 1 mysql.allow_persistent = On mysql.max_persistent = -1 mysql.max_links = -1 mysql.default_port = mysql.default_socket = mysql.default_host = mysql.default_user = mysql.default_password = mysql.connect_timeout = 60 mysql.trace_mode = Off msql.allow_persistent = On msql.max_persistent = -1 msql.max_links = -1 pgsql.allow_persistent = On pgsql.auto_reset_persistent = Off pgsql.max_persistent = -1 pgsql.max_links = -1 pgsql.ignore_notice = 0 pgsql.log_notice = 0 sybase.allow_persistent = On sybase.max_persistent = -1 sybase.max_links = -1 ;sybase.interface_file = "/usr/sybase/interfaces" sybase.min_error_severity = 10 sybase.min_message_severity = 10 sybase.compatability_mode = Off sybct.allow_persistent = On sybct.max_persistent = -1 sybct.max_links = -1 sybct.min_server_severity = 10 sybct.min_client_severity = 10 dbx.colnames_case = "unchanged" bcmath.scale = 0 ;browscap = extra/browscap.ini ifx.default_host = ifx.default_user = ifx.default_password = ifx.allow_persistent = On ifx.max_persistent = -1 ifx.max_links = -1 ifx.textasvarchar = 0 ifx.byteasvarchar = 0 ifx.charasvarchar = 0 ifx.blobinfile = 0 ifx.nullformat = 0 session.save_handler = files ;session.save_path = /tmp session.use_cookies = 1 ; session.use_only_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = session.serialize_handler = php session.gc_probability = 1 session.gc_divisor = 100 session.gc_maxlifetime = 1440 session.bug_compat_42 = 1 session.bug_compat_warn = 1 session.referer_check = session.entropy_length = 0 session.entropy_file = ;session.entropy_length = 16 ;session.entropy_file = /dev/urandom session.cache_limiter = nocache session.cache_expire = 180 session.use_trans_sid = 0 url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset=" mssql.allow_persistent = On mssql.max_persistent = -1 mssql.max_links = -1 mssql.min_error_severity = 10 mssql.min_message_severity = 10 mssql.compatability_mode = Off ;mssql.connect_timeout = 5 ;mssql.timeout = 60 ;mssql.textlimit = 4096 ;mssql.textsize = 4096 ;mssql.batchsize = 0 ;mssql.datetimeconvert = On mssql.secure_connection = Off ;mssql.max_procs = 25 ;assert.active = On ;assert.warning = On ;assert.bail = Off ;assert.callback = 0 ;assert.quiet_eval = 0 ingres.allow_persistent = On ingres.max_persistent = -1 ingres.max_links = -1 ingres.default_database = ingres.default_user = ingres.default_password = pfpro.defaulthost = "test-payflow.verisign.com" pfpro.defaultport = 443 pfpro.defaulttimeout = 30 ;pfpro.proxyaddress = ;pfpro.proxyport = ;pfpro.proxylogon = ;pfpro.proxypassword = sockets.use_system_read = On ;com.typelib_file = ;com.allow_dcom = true ;com.autoregister_typelib = true ;com.autoregister_casesensitive = false ;com.autoregister_verbose = true ;fbsql.allow_persistent = On ;fbsql.autocommit = On ;fbsql.default_database = ;fbsql.default_database_password = ;fbsql.default_host = ;fbsql.default_password = ;fbsql.default_user = "_SYSTEM" ;fbsql.generate_warnings = Off ;fbsql.max_connections = 128 ;fbsql.max_links = 128 ;fbsql.max_persistent = -1 ;fbsql.max_results = 128 ;fbsql.batchSize = 1000 -=-=-=-=-=-=-=-=-=-=- end php.ini -=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=- begin apache2.conf -=-=-=-=-=-=-=-=-=-=- ServerRoot /usr/lib/apache2 ServerName localhost LockFile /etc/apache2/apache2.lock PidFile /var/run/apache2.pid ErrorLog logs/error_log LogLevel warn DocumentRoot /var/www/localhost 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 include_module modules/mod_include.so LoadModule log_config_module modules/mod_log_config.so LoadModule env_module modules/mod_env.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule expires_module modules/mod_expires.so LoadModule headers_module modules/mod_headers.so LoadModule usertrack_module modules/mod_usertrack.so LoadModule unique_id_module modules/mod_unique_id.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule proxy_module modules/mod_proxy.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so #LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule mime_module modules/mod_mime.so LoadModule status_module modules/mod_status.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule asis_module modules/mod_asis.so LoadModule info_module modules/mod_info.so LoadModule cgi_module modules/mod_cgi.so LoadModule cgid_module modules/mod_cgid.so LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule dir_module modules/mod_dir.so LoadModule imap_module modules/mod_imap.so LoadModule actions_module modules/mod_actions.so LoadModule speling_module modules/mod_speling.so LoadModule userdir_module modules/mod_userdir.so LoadModule alias_module modules/mod_alias.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule php4_module extramodules/libphp4.so LoadModule file_cache_module modules/mod_file_cache.so LoadModule echo_module modules/mod_echo.so LoadModule charset_lite_module modules/mod_charset_lite.so LoadModule cache_module modules/mod_cache.so LoadModule disk_cache_module modules/mod_disk_cache.so LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule ext_filter_module modules/mod_ext_filter.so LoadModule case_filter_module modules/mod_case_filter.so LoadModule case_filter_in_module modules/mod_case_filter_in.so LoadModule deflate_module modules/mod_deflate.so #LoadModule optional_hook_export_module modules/mod_optional_hook_export.so #LoadModule optional_hook_import_module modules/mod_optional_hook_import.so #LoadModule optional_fn_import_module modules/mod_optional_fn_import.so #LoadModule optional_fn_export_module modules/mod_optional_fn_export.so #LoadModule bucketeer_module modules/mod_bucketeer.so LoadModule logio_module modules/mod_logio.so Include conf/modules.d/*.conf Include conf/commonapache2.conf Listen 80 <IfModule mod_log_config.c> CustomLog logs/access_log combined env=!VLOG </IfModule> #Include conf/vhosts/vhosts.conf #Include conf/vhosts/dynamic-vhosts.conf #Include conf/vhosts/virtual-homepages.conf Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 <IfModule prefork.c> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0 </IfModule> <IfModule worker.c> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule> <IfModule perchild.c> NumServers 5 StartThreads 5 MinSpareThreads 5 MaxSpareThreads 10 MaxThreadsPerChild 20 MaxRequestsPerChild 0 </IfModule> -=-=-=-=-=-=-=-=-=-=- end apache2.conf -=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=- begin commonapache2.conf -=-=-=-=-=-=-=-=-=-=- User apache Group apache ServerAdmin root@localhost DocumentRoot /var/www/localhost <Directory /> Options -All -Multiviews AllowOverride None <IfModule mod_access.c> Order deny,allow allow from 127.0.0.1 </IfModule> </Directory> <IfModule mod_userdir.c> UserDir public_html </IfModule> <IfModule mod_dir.c> DirectoryIndex index.html index.html.var index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm </IfModule> #AccessFileName .htaccess <IfModule mod_access.c> <Files ~ "^\.ht"> Order allow,deny allow from 127.0.0.1 </Files> </IfModule> UseCanonicalName On <IfModule mod_mime.c> TypesConfig conf/mime.types </IfModule> DefaultType text/plain <IfModule mod_mime_magic.c> MIMEMagicFile conf/magic </IfModule> HostnameLookups Off EnableMMAP on <IfModule mod_log_config.c> 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 LogFormat "%v %h %l %u %t \"%r\" %>s %b %T" script LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" VLOG=%{VLOG}e" vhost <IfModule mod_logio.c> # You need to enable mod_logio.c to use %I and %O LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio </IfModule> </IfModule> ServerTokens Full ServerSignature On <IfModule mod_alias.c> Alias /icons/ /var/www/localhost/icons/ Alias /doc /usr/share/doc ScriptAlias /cgi-bin/ /var/www/localhost/cgi-bin/ ScriptAlias /protected-cgi-bin/ /var/www/localhost/protected-cgi-bin/ ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/public_html/cgi-bin/$2 <IfModule mod_perl.c> Alias /perl/ /var/www/localhost/perl/ Alias /cgi-perl/ /var/www/localhost/perl/ </IfModule> </IfModule> <IfModule mod_autoindex.c> IndexOptions FancyIndexing VersionSort NameWidth=* AddIconByEncoding (CMP,/icons/compressed.png) x-compress x-gzip AddIconByType (VID,/icons/movie.png) video/* AddIcon /icons/blank.gif ^^BLANKICON^^ DefaultIcon /icons/unknown.gif ReadmeName README.html HeaderName HEADER.html IndexIgnore .??* *~ *# HEADER* RCS CVS *,v *,t </IfModule> <IfModule mod_mime.c> AddEncoding x-compress Z AddEncoding x-gzip gz tgz AddLanguage en .en AddLanguage ru .ru AddDefaultCharset ISO-8859-1 <IfModule mod_negotiation.c> LanguagePriority ru en fr de es it da nl et el ja kr no pl pt pt-br ltz ca sv tw </IfModule> <IfModule mod_negotiation.c> ForceLanguagePriority Prefer Fallback </IfModule> AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru AddCharset WINDOWS-1251 .cp-1251 .win-1251 AddCharset CP866 .cp866 AddCharset KOI8-r .koi8-r .koi8-ru 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-tar .tgz AddType image/x-icon .ico AddHandler cgi-script .cgi AddHandler type-map var AddType text/html .shtml AddOutputFilter INCLUDES .shtml AddHandler imap-file map </IfModule> <Location /manual> Options Multiviews ErrorDocument 404 "The document you requested has not been installed on your system." </Location> <IfModule mod_setenvif.c> 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 "^gnome-vfs" redirect-carefully BrowserMatch "^WebDAVFS" redirect-carefully </IfModule> <IfModule mod_status.c> <Location /server-status> SetHandler server-status <IfModule mod_access.c> Order deny,allow allow from 127.0.0.1 </IfModule> </Location> </IfModule> <IfModule mod_info.c> <Location /server-info> SetHandler server-info <IfModule mod_access.c> Order deny,allow allow from 127.0.0.1 </IfModule> </Location> </IfModule> <IfModule mod_perl.c> <Location /perl-status> SetHandler perl-script <IfDefine MODPERL2> PerlResponseHandler Apache::Status </IfDefine> <IfDefine !MODPERL2> PerlResponseHandler ModPerl::Status </IfDefine> <IfModule mod_access.c> Order deny,allow Allow from 127.0.0.1 </IfModule> </Location> </IfModule> <IfModule mod_php4.c> php_value include_path ".:/usr/lib/php" php_admin_flag safe_mode on </IfModule> <IfModule mod_php3.c> php3_include_path ".:/usr/lib/php" php3_safe_mode on </IfModule> <IfModule mod_include.c> </IfModule> <IfModule mod_deflate.c> <Directory "/var/www/localhost/htdocs/manual"> AddOutputFilterByType DEFLATE text/html </Directory> common_with_deflate_info </IfModule> <Directory /var/www/localhost/htdocs> Options -Indexes FollowSymLinks MultiViews AllowOverride All <IfModule mod_access.c> Order allow,deny Allow from all </IfModule> </Directory> <Directory /var/www/localhost/perl> AllowOverride All Options -Indexes FollowSymLinks MultiViews ExecCGI <IfModule mod_access.c> Order allow,deny Allow from all </IfModule> </Directory> <IfModule mod_cgid.c> </IfModule> <Directory /var/www/localhost/cgi-bin> AllowOverride All Options ExecCGI <IfModule mod_access.c> Order allow,deny Allow from all </IfModule> </Directory> <Directory /var/www/localhost/protected-cgi-bin> AllowOverride All Options ExecCGI <IfModule mod_access.c> Order deny,allow Allow from 127.0.0.1 #allow from .your_domain.com </IfModule> </Directory> <Directory /home/*/public_html> AllowOverride All Options MultiViews -Indexes Includes FollowSymLinks <IfModule mod_access.c> Order allow,deny Allow from all </IfModule> </Directory> <Directory /home/*/public_html/cgi-bin> Options +ExecCGI -Includes -Indexes SetHandler cgi-script </Directory> <IfModule mod_perl.c> <Directory /home/*/public_html/perl> SetHandler perl-script PerlResponseHandler ModPerl::PerlRun Options -Indexes ExecCGI <IfDefine MODPERL2> PerlOptions +ParseHeaders </IfDefine> <IfDefine !MODPERL2> PerlSendHeader On </IfDefine> </Directory> </IfModule> <Directory /var/www/localhost/icons> Options -Indexes MultiViews AllowOverride None <IfModule mod_access.c> Order allow,deny Allow from all </IfModule> </Directory> <Directory /usr/share/doc> <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html </IfModule> Options Indexes FollowSymLinks <IfModule mod_access.c> Order deny,allow Allow from 127.0.0.1 </IfModule> </Directory> <Location /index.shtml> Options +Includes </Location> <IfModule mod_perl.c> PerlModule Apache2::ModPerl::Registry <Location "^/perl/*.pl> SetHandler perl-script <IfDefine MODPERL2> PerlResponseHandler Apache2::ModPerl::Registry </IfDefine> <IfDefine !MODPERL2> PerlResponseHandler ModPerl::Registry </IfDefine> Options -Indexes ExecCGI PerlSendHeader On </Location> <Location /cgi-perl/*.pl> SetHandler perl-script PerlResponseHandler ModPerl::PerlRun Options -Indexes ExecCGI PerlSendHeader On </Location> </IfModule> <IfModule mod_alias.c> AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/localhost/htdocs/manual/$1" </IfModule> <Directory "/var/www/localhost/htdocs/manual"> Options Indexes AllowOverride None Order allow,deny Allow from all <Files *.html> SetHandler type-map </Files> SetEnvIf Request_URI ^/manual/de/ prefer-language=de SetEnvIf Request_URI ^/manual/en/ prefer-language=en SetEnvIf Request_URI ^/manual/fr/ prefer-language=fr SetEnvIf Request_URI ^/manual/ja/ prefer-language=ja SetEnvIf Request_URI ^/manual/ko/ prefer-language=ko SetEnvIf Request_URI ^/manual/ru/ prefer-language=ru RedirectMatch 301 ^/manual(?:/(de|en|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2 </Directory> -=-=-=-=-=-=-=-=-=-=- end commonapache2.conf -=-=-=-=-=-=-=-=-=-=- м-да, теперь меня безумцем считать будут за этот пост :) ЗЫ: собирал из портежей .. CTuLL/CRC .. ... /*ctull[!at!]mail.ru*/ /ICQ: [95806772]/ _/http://ctull.h12.ru/_ --- Written under: __ * Origin: Remember, speed kills! Try Windows to relax.. (2:478/90) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/1464417e960e.html, оценка из 5, голосов 10
|