Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2011-09-05 20:28:45

  alex011251 - Użytkownik

alex011251
Użytkownik
Zarejestrowany: 2011-09-03

Problem z plikami php w /var/www

Mam problem z wyświetleniem jakich kolwiek plików php. Chodzi tu o uprawnienia bądź błąd serwera. Gdy wrzucam je do katalogu /var/www/ to po odpalenu z 127.0.0.1 wyświetla się pusty plik zamiast to co ma on wykonać. Wydaje mi się że chodzi o uprawnienia. Ale zmieniałem je za pomocą chmod 777 i mogłem esytować/usuwać itp. Ale dalej nie widzi.
Gdy wcześniej instalowałem joomla to wszystko działało oprócz właśnie uprawnień. Wyświetlało w informacjach o serwerze Unwritable. I to wszędzie. Chmod nie pomaga.

Offline

 

#2  2011-09-05 20:40:40

  torrentow - Członek Sejmowej Komisji Śledczej

torrentow
Członek Sejmowej Komisji Śledczej
Skąd: z GNU
Zarejestrowany: 2009-11-23

Re: Problem z plikami php w /var/www

Chowny sprawdziłeś?


Każdy sam sobie szkodzi :)
[img]http://img715.imageshack.us/img715/7104/apt.png[/img]

Offline

 

#3  2011-09-05 21:00:10

  alex011251 - Użytkownik

alex011251
Użytkownik
Zarejestrowany: 2011-09-03

Re: Problem z plikami php w /var/www

Mam cos takiego dla pliku index.php ktory nie dziala

Kod:

-rwxrwxrwx 1 alexxx alexxx 671 09-05 15:56 index.php

Ostatnio edytowany przez alex011251 (2011-09-05 21:02:04)

Offline

 

#4  2011-09-05 21:02:15

  hello_world - Członek DUG

hello_world
Członek DUG
Skąd: Rymanów Zdrój
Zarejestrowany: 2010-06-03
Serwis

Re: Problem z plikami php w /var/www

Tu masz 100% rozwiązanie tylko sobie wklej pamiętaj.

Kod:

# lighttpd configuration file
#
# use it as a base for lighttpd 1.0.0 and above
#
# $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $

############ Options you really have to take care of ####################

## modules to load
# at least mod_access and mod_accesslog should be loaded
# all other module should only be loaded if really neccesary
# - saves some time
# - saves memory
server.modules              = (
#                               "mod_rewrite",
#                               "mod_redirect",
#                               "mod_alias",
                                "mod_access",
#                               "mod_cml",
#                               "mod_trigger_b4_dl",
#                               "mod_auth",
#                               "mod_status",
#                               "mod_setenv",
                                "mod_fastcgi",
#                               "mod_proxy",
#                               "mod_simple_vhost",
#                               "mod_evhost",
#                               "mod_userdir",
#                               "mod_cgi",
#                               "mod_compress",
#                               "mod_ssi",
#                               "mod_usertrack",
#                               "mod_expire",
#                               "mod_secdownload",
#                               "mod_rrdtool",
                                "mod_accesslog" )

## a static document-root, for virtual-hosting take look at the
## server.virtual-* options
server.document-root        = "/var/www/htdocs-lighttpd"

## where to send error-messages to
server.errorlog             = "/var/log/lighttpd/error.log"

# files to check for if .../ is requested
index-file.names            = ( "index.php", "index.html",
                                "index.htm", "default.htm" )

## set the event-handler (read the performance section in the manual)
# server.event-handler = "freebsd-kqueue" # needed on OS X

# mimetype mapping
mimetype.assign             = (
  ".pdf"          =>      "application/pdf",
  ".sig"          =>      "application/pgp-signature",
  ".spl"          =>      "application/futuresplash",
  ".class"        =>      "application/octet-stream",
  ".ps"           =>      "application/postscript",
  ".torrent"      =>      "application/x-bittorrent",
  ".dvi"          =>      "application/x-dvi",
  ".gz"           =>      "application/x-gzip",
  ".pac"          =>      "application/x-ns-proxy-autoconfig",
  ".swf"          =>      "application/x-shockwave-flash",
  ".tar.gz"       =>      "application/x-tgz",
  ".tgz"          =>      "application/x-tgz",
  ".tar"          =>      "application/x-tar",
  ".zip"          =>      "application/zip",
  ".mp3"          =>      "audio/mpeg",
  ".m3u"          =>      "audio/x-mpegurl",
  ".wma"          =>      "audio/x-ms-wma",
  ".wax"          =>      "audio/x-ms-wax",
  ".ogg"          =>      "application/ogg",
  ".wav"          =>      "audio/x-wav",
  ".gif"          =>      "image/gif",
  ".jpg"          =>      "image/jpeg",
  ".jpeg"         =>      "image/jpeg",
  ".png"          =>      "image/png",
  ".xbm"          =>      "image/x-xbitmap",
  ".xpm"          =>      "image/x-xpixmap",
  ".xwd"          =>      "image/x-xwindowdump",
  ".css"          =>      "text/css",
  ".html"         =>      "text/html",
  ".htm"          =>      "text/html",
  ".js"           =>      "text/javascript",
  ".asc"          =>      "text/plain",
  ".c"            =>      "text/plain",
  ".cpp"          =>      "text/plain",
  ".log"          =>      "text/plain",
  ".conf"         =>      "text/plain",
  ".text"         =>      "text/plain",
  ".txt"          =>      "text/plain",
  ".dtd"          =>      "text/xml",
  ".xml"          =>      "text/xml",
  ".mpeg"         =>      "video/mpeg",
  ".mpg"          =>      "video/mpeg",
  ".mov"          =>      "video/quicktime",
  ".qt"           =>      "video/quicktime",
  ".avi"          =>      "video/x-msvideo",
  ".asf"          =>      "video/x-ms-asf",
  ".asx"          =>      "video/x-ms-asf",
  ".wmv"          =>      "video/x-ms-wmv",
  ".bz2"          =>      "application/x-bzip",
  ".tbz"          =>      "application/x-bzip-compressed-tar",
  ".tar.bz2"      =>      "application/x-bzip-compressed-tar"
 )

# Use the "Content-Type" extended attribute to obtain mime type if possible
#mimetype.use-xattr        = "enable"


## send a different Server: header
## be nice and keep it at lighttpd
# server.tag                 = "lighttpd"

#### accesslog module
accesslog.filename          = "/var/log/lighttpd/access.log"

## deny access the file-extensions
#
# ~    is for backupfiles from vi, emacs, joe, ...
# .inc is often used for code includes which should in general not be part
#      of the document-root
url.access-deny             = ( "~", ".inc" )

$HTTP["url"] =~ "\.pdf$" {
  server.range-requests = "disable"
}

##
# which extensions should not be handle via static-file transfer
#
# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

######### Options that are good to be but not neccesary to be changed #######

## bind to port (default: 80)
#server.port                = 81

## bind to localhost (default: all interfaces)
#server.bind                = "grisu.home.kneschke.de"

## error-handler for status 404
#server.error-handler-404   = "/error-handler.html"
#server.error-handler-404   = "/error-handler.php"

## to help the rc.scripts
server.pid-file            = "/var/run/lighttpd/lighttpd.pid"


###### virtual hosts
##
##  If you want name-based virtual hosting add the next three settings and load
##  mod_simple_vhost
##
## document-root =
##   virtual-server-root + virtual-server-default-host + virtual-server-docroot
## or
##   virtual-server-root + http-host + virtual-server-docroot
##
#simple-vhost.server-root   = "/home/weigon/wwwroot/servers/"
#simple-vhost.default-host  = "grisu.home.kneschke.de"
#simple-vhost.document-root = "/pages/"


##
## Format: <errorfile-prefix><status-code>.html
## -> ..../status-404.html for 'File not found'
#server.errorfile-prefix    = "/home/weigon/projects/lighttpd/doc/status-"

## virtual directory listings
#dir-listing.activate       = "enable"

## enable debugging
#debug.log-request-header   = "enable"
#debug.log-response-header  = "enable"
#debug.log-request-handling = "enable"
#debug.log-file-not-found   = "enable"

### only root can use these options
#
# chroot() to directory (default: no chroot() )
#server.chroot              = "/"

## change uid to <uid> (default: don't care)
server.username            = "lighttpd"

## change uid to <uid> (default: don't care)
server.groupname           = "lighttpd"

#### compress module
#compress.cache-dir         = "/tmp/lighttpd/cache/compress/"
#compress.filetype          = ("text/plain", "text/html")

#### proxy module
## read proxy.txt for more info
#proxy.server               = ( ".php" =>
#                               ( "localhost" =>
#                                 (
#                                   "host" => "192.168.0.101",
#                                   "port" => 80
#                                 )
#                               )
#                             )

#### fastcgi module
## read fastcgi.txt for more info
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
fastcgi.server             = ( ".php" =>
                               ( "localhost" =>
                                 (
                                   "socket" => "/var/run/lighttpd/php-fastcgi.socket",
                                   "bin-path" => "/usr/bin/php-cgi"
                                 )
                               )
                            )

#### CGI module
#cgi.assign                 = ( ".pl"  => "/usr/bin/perl",
#                               ".cgi" => "/usr/bin/perl" )
#

#### SSL engine
#ssl.engine                 = "enable"
#ssl.pemfile                = "server.pem"

#### status module
#status.status-url          = "/server-status"
#status.config-url          = "/server-config"

#### auth module
## read authentication.txt for more info
#auth.backend               = "plain"
#auth.backend.plain.userfile = "lighttpd.user"
#auth.backend.plain.groupfile = "lighttpd.group"

#auth.backend.ldap.hostname = "localhost"
#auth.backend.ldap.base-dn  = "dc=my-domain,dc=com"
#auth.backend.ldap.filter   = "(uid=$)"

#auth.require               = ( "/server-status" =>
#                               (
#                                 "method"  => "digest",
#                                 "realm"   => "download archiv",
#                                 "require" => "user=jan"
#                               ),
#                               "/server-config" =>
#                               (
#                                 "method"  => "digest",
#                                 "realm"   => "download archiv",
#                                 "require" => "valid-user"
#                               )
#                             )

#### url handling modules (rewrite, redirect, access)
#url.rewrite                = ( "^/$"             => "/server-status" )
#url.redirect               = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
#### both rewrite/redirect support back reference to regex conditional using %n
#$HTTP["host"] =~ "^www\.(.*)" {
#  url.redirect            = ( "^/(.*)" => "http://%1/$1" )
#}

#
# define a pattern for the host url finding
# %% => % sign
# %0 => domain name + tld
# %1 => tld
# %2 => domain name without tld
# %3 => subdomain 1 name
# %4 => subdomain 2 name
#
#evhost.path-pattern        = "/home/storage/dev/www/%3/htdocs/"

#### expire module
#expire.url                 = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")

#### ssi
#ssi.extension              = ( ".shtml" )

#### rrdtool
#rrdtool.binary             = "/usr/bin/rrdtool"
#rrdtool.db-name            = "/var/www/lighttpd.rrd"

#### setenv
#setenv.add-request-header  = ( "TRAV_ENV" => "mysql://user@host/db" )
#setenv.add-response-header = ( "X-Secret-Message" => "42" )

## for mod_trigger_b4_dl
# trigger-before-download.gdbm-filename = "/home/weigon/testbase/trigger.db"
# trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
# trigger-before-download.trigger-url = "^/trigger/"
# trigger-before-download.download-url = "^/download/"
# trigger-before-download.deny-url = "http://127.0.0.1/index.html"
# trigger-before-download.trigger-timeout = 10

## for mod_cml
## don't forget to add index.cml to server.indexfiles
# cml.extension               = ".cml"
# cml.memcache-hosts          = ( "127.0.0.1:11211" )

#### variable usage:
## variable name without "." is auto prefixed by "var." and becomes "var.bar"
#bar = 1
#var.mystring = "foo"

## integer add
#bar += 1
## string concat, with integer cast as string, result: "www.foo1.com"
#server.name = "www." + mystring + var.bar + ".com"
## array merge
#index-file.names = (foo + ".php") + index-file.names
#index-file.names += (foo + ".php")

#### include
#include /etc/lighttpd/lighttpd-inc.conf
## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf"
#include "lighttpd-inc.conf"

#### include_shell
#include_shell "echo var.a=1"
## the above is same as:
#var.a=1

Skąd mamy wiedzieć co używasz?

Offline

 

#5  2011-09-05 21:13:05

  alex011251 - Użytkownik

alex011251
Użytkownik
Zarejestrowany: 2011-09-03

Re: Problem z plikami php w /var/www

Co to ma być?

Nie używam teraz joomla. Chodzi mi o to że nie mogę odpalić zadnego pliku php z 127.0.0.1


Jak usuwałem ręcznie joomla poprzez delete to może usunąłem jakiś ważny plik z /www?


// Gdy przywróciłem z kosza pliki joomla to wyswietlao index joomla. Ale gdy podmieniłem to apache sygnalizuje że nie ma takiego pliku ^^


Delete=przycisk.

Ostatnio edytowany przez alex011251 (2011-09-05 21:18:51)

Offline

 

#6  2011-09-05 21:15:18

  hello_world - Członek DUG

hello_world
Członek DUG
Skąd: Rymanów Zdrój
Zarejestrowany: 2010-06-03
Serwis

Re: Problem z plikami php w /var/www

A to w linuksie jest komenda delete ?

Offline

 

#7  2011-09-05 21:19:30

  alex011251 - Użytkownik

alex011251
Użytkownik
Zarejestrowany: 2011-09-03

Re: Problem z plikami php w /var/www

Przycisk delete

Offline

 

#8  2011-09-05 21:22:30

  kamikaze - Administrator

kamikaze
Administrator
Zarejestrowany: 2004-04-16

Re: Problem z plikami php w /var/www

Proponuje zajrzeć do logów.

Offline

 

#9  2011-09-05 21:23:46

  alex011251 - Użytkownik

alex011251
Użytkownik
Zarejestrowany: 2011-09-03

Re: Problem z plikami php w /var/www

A gdzie one są? :P

Offline

 

#10  2011-09-05 21:28:23

  svL - Użytkownik

svL
Użytkownik
Zarejestrowany: 2007-06-17

Re: Problem z plikami php w /var/www

/var/log/apache2


"God, root, what is difference?"

Offline

 

#11  2011-09-05 21:36:04

  alex011251 - Użytkownik

alex011251
Użytkownik
Zarejestrowany: 2011-09-03

Re: Problem z plikami php w /var/www

Error.log

Kod:

[Sun Sep 04 11:29:31 2011] [error] python_init: Python version mismatch, expected '2.6.5+', found '2.6.6'.
[Sun Sep 04 11:29:31 2011] [error] python_init: Python executable found '/usr/bin/python'.
[Sun Sep 04 11:29:31 2011] [error] python_init: Python path being used '/usr/lib/python2.6/:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-dynload'.
[Sun Sep 04 11:29:31 2011] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Sun Sep 04 11:29:31 2011] [notice] mod_python: using mutex_directory /tmp 
[Sun Sep 04 11:29:31 2011] [notice] Apache/2.2.16 (Debian) mod_fcgid/2.3.6 PHP/5.3.3-7+squeeze1 with Suhosin-Patch mod_python/3.3.1 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Sep 04 14:36:47 2011] [error] [client 127.0.0.1] PHP Warning:  fopen(/var/www/logs/error.php): failed to open stream: Permission denied in /var/www/libraries/joomla/log/loggers/formattedtext.php on line 237, referer: http://127.0.0.1/administrator/
[Sun Sep 04 14:36:47 2011] [error] [client 127.0.0.1] PHP Warning:  fputs() expects parameter 1 to be resource, boolean given in /var/www/libraries/joomla/log/loggers/formattedtext.php on line 241, referer: http://127.0.0.1/administrator/
[Sun Sep 04 14:36:48 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Sun Sep 04 14:36:48 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Sun Sep 04 14:36:55 2011] [error] [client 127.0.0.1] PHP Warning:  fopen(/var/www/logs/error.php): failed to open stream: Permission denied in /var/www/libraries/joomla/log/loggers/formattedtext.php on line 237, referer: http://127.0.0.1/administrator/
[Sun Sep 04 14:36:55 2011] [error] [client 127.0.0.1] PHP Warning:  fputs() expects parameter 1 to be resource, boolean given in /var/www/libraries/joomla/log/loggers/formattedtext.php on line 241, referer: http://127.0.0.1/administrator/
[Sun Sep 04 21:50:45 2011] [warn] child process 3719 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:45 2011] [warn] child process 3721 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:45 2011] [warn] child process 3722 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:45 2011] [warn] child process 3723 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:45 2011] [warn] child process 6183 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:45 2011] [warn] child process 6189 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:45 2011] [warn] child process 6190 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:45 2011] [warn] child process 6192 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:45 2011] [warn] child process 6193 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:45 2011] [warn] child process 6194 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:47 2011] [warn] child process 3719 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:47 2011] [warn] child process 3721 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:47 2011] [warn] child process 3722 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:47 2011] [warn] child process 3723 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:47 2011] [warn] child process 6183 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:47 2011] [warn] child process 6189 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:47 2011] [warn] child process 6190 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:47 2011] [warn] child process 6192 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:47 2011] [warn] child process 6193 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:47 2011] [warn] child process 6194 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:49 2011] [warn] child process 3719 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:49 2011] [warn] child process 3721 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:49 2011] [warn] child process 3722 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:49 2011] [warn] child process 3723 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:49 2011] [warn] child process 6183 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:49 2011] [warn] child process 6189 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:49 2011] [warn] child process 6190 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:49 2011] [warn] child process 6192 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:49 2011] [warn] child process 6193 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:49 2011] [warn] child process 6194 still did not exit, sending a SIGTERM
[Sun Sep 04 21:50:51 2011] [error] child process 3719 still did not exit, sending a SIGKILL
[Sun Sep 04 21:50:52 2011] [error] child process 3722 still did not exit, sending a SIGKILL
[Sun Sep 04 21:50:52 2011] [error] child process 3723 still did not exit, sending a SIGKILL
[Sun Sep 04 21:50:52 2011] [error] child process 6189 still did not exit, sending a SIGKILL
[Sun Sep 04 21:50:52 2011] [error] child process 6190 still did not exit, sending a SIGKILL
[Sun Sep 04 21:50:52 2011] [error] child process 6192 still did not exit, sending a SIGKILL
[Sun Sep 04 21:50:52 2011] [error] child process 6193 still did not exit, sending a SIGKILL
[Sun Sep 04 21:50:52 2011] [error] child process 6194 still did not exit, sending a SIGKILL
[Sun Sep 04 21:50:53 2011] [notice] caught SIGTERM, shutting down
[Sun Sep 04 21:52:12 2011] [error] python_init: Python version mismatch, expected '2.6.5+', found '2.6.6'.
[Sun Sep 04 21:52:12 2011] [error] python_init: Python executable found '/usr/bin/python'.
[Sun Sep 04 21:52:12 2011] [error] python_init: Python path being used '/usr/lib/python2.6/:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-dynload'.
[Sun Sep 04 21:52:12 2011] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Sun Sep 04 21:52:12 2011] [notice] mod_python: using mutex_directory /tmp 
[Sun Sep 04 21:52:14 2011] [notice] Apache/2.2.16 (Debian) mod_fcgid/2.3.6 PHP/5.3.3-7+squeeze1 with Suhosin-Patch mod_python/3.3.1 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Sep 04 21:55:52 2011] [notice] caught SIGTERM, shutting down
[Sun Sep 04 21:57:01 2011] [error] python_init: Python version mismatch, expected '2.6.5+', found '2.6.6'.
[Sun Sep 04 21:57:02 2011] [error] python_init: Python executable found '/usr/bin/python'.
[Sun Sep 04 21:57:02 2011] [error] python_init: Python path being used '/usr/lib/python2.6/:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-dynload'.
[Sun Sep 04 21:57:02 2011] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Sun Sep 04 21:57:02 2011] [notice] mod_python: using mutex_directory /tmp 
[Sun Sep 04 21:57:02 2011] [notice] Apache/2.2.16 (Debian) mod_fcgid/2.3.6 PHP/5.3.3-7+squeeze1 with Suhosin-Patch mod_python/3.3.1 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Sep 04 21:57:52 2011] [notice] caught SIGTERM, shutting down
[Mon Sep 05 08:35:06 2011] [error] python_init: Python version mismatch, expected '2.6.5+', found '2.6.6'.
[Mon Sep 05 08:35:06 2011] [error] python_init: Python executable found '/usr/bin/python'.
[Mon Sep 05 08:35:06 2011] [error] python_init: Python path being used '/usr/lib/python2.6/:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-dynload'.
[Mon Sep 05 08:35:06 2011] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Mon Sep 05 08:35:06 2011] [notice] mod_python: using mutex_directory /tmp 
[Mon Sep 05 08:35:06 2011] [notice] Apache/2.2.16 (Debian) mod_fcgid/2.3.6 PHP/5.3.3-7+squeeze1 with Suhosin-Patch mod_python/3.3.1 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Mon Sep 05 12:10:13 2011] [notice] caught SIGTERM, shutting down
[Mon Sep 05 12:20:38 2011] [error] python_init: Python version mismatch, expected '2.6.5+', found '2.6.6'.
[Mon Sep 05 12:20:40 2011] [error] python_init: Python executable found '/usr/bin/python'.
[Mon Sep 05 12:20:40 2011] [error] python_init: Python path being used '/usr/lib/python2.6/:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-dynload'.
[Mon Sep 05 12:20:40 2011] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Mon Sep 05 12:20:40 2011] [notice] mod_python: using mutex_directory /tmp 
[Mon Sep 05 12:20:40 2011] [notice] Apache/2.2.16 (Debian) mod_fcgid/2.3.6 PHP/5.3.3-7+squeeze1 with Suhosin-Patch mod_python/3.3.1 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Mon Sep 05 13:56:26 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected $end in /var/www/connect.php on line 14
[Mon Sep 05 13:56:26 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Mon Sep 05 13:56:26 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Mon Sep 05 13:58:32 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 13:58:37 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 13:59:07 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected $end in /var/www/connect.php on line 14
[Mon Sep 05 14:00:39 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:00:40 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:00:41 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:01:37 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:01:38 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:01:38 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:01:39 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:01:40 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:02:47 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:02:47 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:02:49 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:02:49 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:02:50 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:02:50 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:02:50 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:03:09 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:07:55 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:07:56 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:07:57 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:07:58 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:08:01 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:08:44 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 14:08:44 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/index.php on line 3
[Mon Sep 05 15:03:52 2011] [error] [client 127.0.0.1] PHP Warning:  mysql_connect(): Unknown MySQL server host 'adres_hosta' (1) in /var/www/index.php on line 8
[Mon Sep 05 15:03:52 2011] [error] [client 127.0.0.1] PHP Warning:  mysql_select_db(): Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/index.php on line 9
[Mon Sep 05 15:03:52 2011] [error] [client 127.0.0.1] PHP Warning:  mysql_select_db(): A link to the server could not be established in /var/www/index.php on line 9
[Mon Sep 05 15:03:52 2011] [error] [client 127.0.0.1] PHP Warning:  mysql_query(): Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/index.php on line 15
[Mon Sep 05 15:03:52 2011] [error] [client 127.0.0.1] PHP Warning:  mysql_query(): A link to the server could not be established in /var/www/index.php on line 15
[Mon Sep 05 15:36:05 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_CLASS in /var/www/index.php on line 2
[Mon Sep 05 15:36:07 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_CLASS in /var/www/index.php on line 2
[Mon Sep 05 15:36:12 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_CLASS in /var/www/index.php on line 2
[Mon Sep 05 15:37:03 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_CLASS in /var/www/index.php on line 2
[Mon Sep 05 15:37:25 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_CLASS in /var/www/index.php on line 2
[Mon Sep 05 15:40:24 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_CLASS in /var/www/index.php on line 2
[Mon Sep 05 15:40:27 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_CLASS in /var/www/index.php on line 2
[Mon Sep 05 15:40:36 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected T_CLASS in /var/www/index.php on line 2
[Mon Sep 05 15:56:19 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected '}', expecting T_STRING in /var/www/index.php on line 9
[Mon Sep 05 15:56:20 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected '}', expecting T_STRING in /var/www/index.php on line 9
[Mon Sep 05 15:56:21 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected '}', expecting T_STRING in /var/www/index.php on line 9
[Mon Sep 05 15:56:21 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected '}', expecting T_STRING in /var/www/index.php on line 9
[Mon Sep 05 15:56:21 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected '}', expecting T_STRING in /var/www/index.php on line 9
[Mon Sep 05 15:56:21 2011] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected '}', expecting T_STRING in /var/www/index.php on line 9
[Mon Sep 05 15:56:56 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico, referer: http://127.0.0.1/
[Mon Sep 05 15:57:02 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico, referer: http://127.0.0.1/
[Mon Sep 05 15:57:03 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico, referer: http://127.0.0.1/
[Mon Sep 05 18:07:57 2011] [warn] child process 2242 still did not exit, sending a SIGTERM
[Mon Sep 05 18:07:57 2011] [warn] child process 2243 still did not exit, sending a SIGTERM
[Mon Sep 05 18:07:57 2011] [warn] child process 2244 still did not exit, sending a SIGTERM
[Mon Sep 05 18:07:57 2011] [warn] child process 2245 still did not exit, sending a SIGTERM
[Mon Sep 05 18:07:57 2011] [warn] child process 2246 still did not exit, sending a SIGTERM
[Mon Sep 05 18:07:57 2011] [warn] child process 3981 still did not exit, sending a SIGTERM
[Mon Sep 05 18:07:58 2011] [notice] caught SIGTERM, shutting down
[Mon Sep 05 18:51:24 2011] [error] python_init: Python version mismatch, expected '2.6.5+', found '2.6.6'.
[Mon Sep 05 18:51:24 2011] [error] python_init: Python executable found '/usr/bin/python'.
[Mon Sep 05 18:51:24 2011] [error] python_init: Python path being used '/usr/lib/python2.6/:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-dynload'.
[Mon Sep 05 18:51:24 2011] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Mon Sep 05 18:51:24 2011] [notice] mod_python: using mutex_directory /tmp 
[Mon Sep 05 18:51:25 2011] [notice] Apache/2.2.16 (Debian) mod_fcgid/2.3.6 PHP/5.3.3-7+squeeze1 with Suhosin-Patch mod_python/3.3.1 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Mon Sep 05 19:26:28 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico, referer: http://127.0.0.1/
[Mon Sep 05 21:14:25 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:26 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:27 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:28 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:29 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:30 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:47 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:48 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:48 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:49 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:49 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:49 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:50 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:50 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:50 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:50 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:51 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:52 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:52 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:53 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:54 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:14:54 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:16:56 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat
[Mon Sep 05 21:16:57 2011] [error] [client 127.0.0.1] script '/var/www/index.php' not found or unable to stat

Dodam że podbno wejscie do katalogow przez filezilla i nadanie 777 rozwiazuje ten problem. Ale u mnie wyskakuje błąd gdy próbuje odpalić localhosta. Chyba zapora blokuje.

Ostatnio edytowany przez alex011251 (2011-09-05 21:36:26)

Offline

 

#12  2011-09-06 08:06:43

  hello_world - Członek DUG

hello_world
Członek DUG
Skąd: Rymanów Zdrój
Zarejestrowany: 2010-06-03
Serwis

Re: Problem z plikami php w /var/www

Nie zrozumiałeś mnie.
Po pierwsze jak chcesz uzyskać odpowiedź to musisz przekazać najbardziej podstawowe informacje, Ty ich nie podałeś stąd moje podanie pliku konfiguracji lighttpd.
Po drugie jak już wiemy że to Apache pokaż:
apache2 -T
apache2 -V
apachectl configtest
nestata -lantp | grep apache

Dodam że podbno wejscie do katalogow przez filezilla i nadanie 777 rozwiazuje ten problem. Ale u mnie wyskakuje błąd gdy próbuje odpalić localhosta. Chyba zapora blokuje[/quote]
jaki to błąd(numer)

Ostatnio edytowany przez hello_world (2011-09-06 08:16:34)

Offline

 

#13  2011-09-07 15:28:50

  ponury_kostek - Użytkownik

ponury_kostek
Użytkownik
Skąd: Wałbrzych
Zarejestrowany: 2007-01-02
Serwis

Re: Problem z plikami php w /var/www

W pliku "/etc/php5/apache2/php.ini" jest opcja "display_errors" jeśli ma wartość "Off" to zmień ją na "On" i zobacz czy dalej się nic nie pokazuje na stronie.

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Nas ludzie lubią po prostu, a nie klikając w przyciski ;-)

[ Generated in 0.015 seconds, 9 queries executed ]

Informacje debugowania

Time (s) Query
0.00014 SET CHARSET latin2
0.00004 SET NAMES latin2
0.00151 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.145.59.165' WHERE u.id=1
0.00142 UPDATE punbb_online SET logged=1716054173 WHERE ident='3.145.59.165'
0.00060 SELECT * FROM punbb_online WHERE logged<1716053873
0.00116 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=19638 AND t.moved_to IS NULL
0.00006 SELECT search_for, replace_with FROM punbb_censoring
0.00391 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=19638 ORDER BY p.id LIMIT 0,25
0.00213 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=19638
Total query time: 0.01097 s