![]() |
![]() ![]() |
![]() |
-jumanji- |
![]()
Post
#1
|
Goście ![]() |
Witam!
problem nietypowy, stoje na debianie, mam apache1.3.33-3 z php4, mysql itd... wsyzstko wyglada na dobrze skonfigurowane, ale... przesylam httpd.conf Kod ## ## httpd.conf -- Apache HTTP server configuration file ## ServerType standalone ServerRoot /etc/apache LockFile /var/lock/apache.lock PidFile /var/run/apache.pid ScoreBoardFile /var/run/apache.scoreboard Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 150 MaxRequestsPerChild 100 Include /etc/apache/modules.conf <IfModule mod_status.c> ExtendedStatus On </IfModule> Port 80 User www-data Group www-data ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options SymLinksIfOwnerMatch AllowOverride None </Directory> <Directory /var/www/> Options Indexes Includes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> <IfModule mod_userdir.c> UserDir public_html <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Order deny,allow Deny from all </Limit> </Directory> </IfModule> <IfModule mod_dir.c> DirectoryIndex index.html index.htm index.shtml index.cgi index.php </IfModule> AccessFileName .htaccess <Files ~ "^\.ht"> Order allow,deny Deny from all </Files> UseCanonicalName Off TypesConfig /etc/mime.types DefaultType text/plain <IfModule mod_mime_magic.c> MIMEMagicFile /usr/share/misc/file/magic.mime </IfModule> HostnameLookups Off ErrorLog /var/log/apache/error.log LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{forensic-id}n\" %T %v" full LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{forensic-id}n\" %P %T" debug LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{forensic-id}n\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b \"%{forensic-id}n\"" forensic LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog /var/log/apache/access.log combined <IfModule mod_log_forensic.c> ForensicLog /var/log/apache/forensic.log </IfModule> <IfModule mod_backtrace.c> EnableExceptionHook On </IfModule> <IfModule mod_whatkilledus.c> EnableExceptionHook On </IfModule> ServerSignature On <IfModule mod_alias.c> Alias /icons/ /usr/share/apache/icons/ <Directory /usr/share/apache/icons> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> Alias /images/ /usr/share/images/ <Directory /usr/share/images> Options MultiViews AllowOverride None Order allow,deny Allow from all </Directory> </IfModule> <IfModule mod_alias.c> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory /usr/lib/cgi-bin/> AllowOverride None Options ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> </IfModule> <IfModule mod_autoindex.c> AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/* AddIcon /icons/binary.gif .bin .exe AddIcon /icons/binhex.gif .hqx AddIcon /icons/tar.gif .tar AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip AddIcon /icons/a.gif .ps .ai .eps AddIcon /icons/layout.gif .html .shtml .htm .pdf AddIcon /icons/text.gif .txt AddIcon /icons/c.gif .c AddIcon /icons/p.gif .pl .py AddIcon /icons/f.gif .for AddIcon /icons/dvi.gif .dvi AddIcon /icons/uuencoded.gif .uu AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /icons/tex.gif .tex AddIcon /icons/bomb.gif core AddIcon /icons/deb.gif .deb AddIcon /icons/back.gif .. AddIcon /icons/hand.right.gif README AddIcon /icons/folder.gif ^^DIRECTORY^^ AddIcon /icons/blank.gif ^^BLANKICON^^ DefaultIcon /icons/unknown.gif ReadmeName README.html HeaderName HEADER.html IndexIgnore . ![]() </IfModule> <IfModule mod_mime.c> AddEncoding x-compress Z AddEncoding x-gzip gz tgz AddLanguage da .dk AddLanguage nl .nl AddLanguage en .en AddLanguage et .ee AddLanguage fr .fr AddLanguage de .de AddLanguage el .el AddLanguage it .it AddLanguage ja .ja AddCharset ISO-2022-JP .jis AddLanguage pl .po AddCharset ISO-8859-2 .iso-pl AddLanguage pt .pt AddLanguage pt-br .pt-br AddLanguage lb .lu AddLanguage ca .ca AddLanguage es .es AddLanguage sv .se AddLanguage cs .cz <IfModule mod_negotiation.c> LanguagePriority en da nl et fr de el it ja pl pt pt-br lb ca es sv </IfModule> AddType application/x-tar .tgz AddType image/bmp .bmp # hdml AddType text/x-hdml .hdml <IfModule mod_include.c> AddType text/html .shtml AddHandler server-parsed .shtml </IfModule> </IfModule> AddDefaultCharset on <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 </IfModule> <IfModule mod_perl.c> <IfModule mod_alias.c> Alias /perl/ /var/www/perl/ </IfModule> <Location /perl> SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI </Location> </IfModule> <IfModule mod_alias.c> Alias /doc/ /usr/share/doc/ </IfModule> <Location /doc> order deny,allow deny from all allow from 127.0.0.0/255.0.0.0 Options Indexes FollowSymLinks MultiViews </Location> <IfModule mod_proxy.c> </IfModule> Include /etc/apache/conf.d bede dzwieczny za podpowiedzi pozdro jum4n7i@o2.pl |
|
|
![]()
Post
#2
|
|
![]() Administrator serwera Grupa: Przyjaciele php.pl Postów: 909 Pomógł: 0 Dołączył: 12.08.2003 Skąd: /var/www/wroclaw.php Ostrzeżenie: (0%) ![]() ![]() |
A co zawiera plik /etc/apache/modules.conf odpowiedzialny za przechowywanie informacji o wczytywanych modułach?
-------------------- Powrót do przeszłości :)
![]() |
|
|
-jumanji- |
![]()
Post
#3
|
Goście ![]() |
modules.conf
Kod # /usr/sbin/apache-modconf apache
ClearModuleList AddModule mod_so.c AddModule mod_macro.c LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so LoadModule status_module /usr/lib/apache/1.3/mod_status.so LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so LoadModule access_module /usr/lib/apache/1.3/mod_access.so LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so LoadModule php4_module /usr/lib/apache/1.3/libphp4.so |
|
|
![]()
Post
#4
|
|
![]() Grupa: Zarejestrowani Postów: 1 597 Pomógł: 30 Dołączył: 19.02.2003 Skąd: Tychy Ostrzeżenie: (0%) ![]() ![]() |
Hm, a gdzie masz AddType application/x-httpd-php .php ? Pozatym jak wchodzisz na stronę *.php to jaki bład jest w logach apache? ;]
-------------------- Zapraszam na mój php blog, tworzenie stron.
|
|
|
-jumanji- |
![]()
Post
#5
|
Goście ![]() |
addtype dodalem do httpd.conf ale dalej nie dziala, to sa logi error
Kod [Thu Feb 17 20:30:18 2005] [notice] Apache/1.3.33 (Debian GNU/Linux) php/4.3.10-2 configured -- resuming normal operations [Thu Feb 17 20:30:18 2005] [notice] Accept mutex: sysvsem (Default: sysvsem) [Thu Feb 17 23:21:18 2005] [notice] SIGHUP received. Attempting to restart [Thu Feb 17 23:21:19 2005] [notice] Apache/1.3.33 (Debian GNU/Linux) php/4.3.10-2 configured -- resuming normal operations [Thu Feb 17 23:21:19 2005] [notice] Accept mutex: sysvsem (Default: sysvsem) [Thu Feb 17 23:26:36 2005] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico [Thu Feb 17 23:26:51 2005] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico [Thu Feb 17 23:26:59 2005] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico [Thu Feb 17 23:28:42 2005] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico [Thu Feb 17 23:28:42 2005] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico [Thu Feb 17 23:28:44 2005] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico [Thu Feb 17 23:28:45 2005] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico [Thu Feb 17 23:28:46 2005] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico prosze o pomoc... pozdrawiam jumanji |
|
|
![]()
Post
#6
|
|
![]() Grupa: Przyjaciele php.pl Postów: 2 196 Pomógł: 2 Dołączył: 17.01.2004 Skąd: Sosnowiec Ostrzeżenie: (0%) ![]() ![]() |
Cytat(jumanji) wsyzstko wyglada na dobrze skonfigurowane, ale... Ale co? Wkleiłeś cały konfig i nie napisałeś co Ci nie działa. W logu widać, że obsługa php jest włączona, więc w czym problem? -------------------- |
|
|
-jumanji- |
![]()
Post
#7
|
Goście ![]() |
no wlasnie to jest bardzo dobre pytanie!
zaden kod nie jest interpretowany! nie dziala nawet glupie echo "hello world" jakies pomysly?? |
|
|
![]()
Post
#8
|
|
![]() Grupa: Przyjaciele php.pl Postów: 2 196 Pomógł: 2 Dołączył: 17.01.2004 Skąd: Sosnowiec Ostrzeżenie: (0%) ![]() ![]() |
Po wejsciu na stronę pokaż co jest w ostatniej linii access.log
-------------------- |
|
|
-jumanji- |
![]()
Post
#9
|
Goście ![]() |
to jest po wejsciu na localhost:
Kod Firefox/1.0 (Debian package 1.0+dfsg.1-2)" "-" 127.0.0.1 - - [18/Feb/2005:10:09:50 +0100] "GET /favicon.ico HTTP/1.1" 404 283 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.7.5) Gecko/20050110 Firefox/1.0 (Debian package 1.0+dfsg.1-2)" "-" to samo jest po wejsciu na localhost/~login, ale po probie wykonania skrytpu php dostaje: Kod 127.0.0.1 - - [18/Feb/2005:10:19:16 +0100] "GET /~jumanji/news321.php?temat=asd&news=asd HTTP/1.1" 200 17 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.7.5) Gecko/20050110 Firefox/1.0 (Debian package 1.0+dfsg.1-2)" "-" 127.0.0.1 - - [18/Feb/2005:10:19:16 +0100] "GET /favicon.ico HTTP/1.1" 404 283 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.7.5) Gecko/20050110 Firefox/1.0 (Debian package 1.0+dfsg.1-2)" "-" pozdrawiam |
|
|
-jumanji- |
![]()
Post
#10
|
Goście ![]() |
ok. przesiadlem sie na apache2 mialem nadzieje ze teraz bedzie lepiej, ale na poczatek dostaje komunikat:
Cytat apache2: Could not determine the server's fully qualified domain name, using 192.168.132.3 for ServerName o jaka nazwe mu do ciezkiej cholery chodzi? gdzie to poustawiac? w apache2.conf tego nie znalazlem, w httpd takze... |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 18.07.2025 - 00:55 |