Autor Téma: problém s podsložkami v php  (Přečteno 3511 krát)

Offline tribalcz

  • Začátečník
  • **
  • Příspěvků: 101
    • Zobrazit profil
problém s podsložkami v php
« kdy: 08. 07. 2014, 10:29:25 »
Zdravím mám menší problém s php. Funguje dobře ale jen do chvíle dokud ho nenutím koukat do podsložek. Mám linux server na debianu wheezy.

server sem instaloval jednoduš pomocí příkazu
Kód: [Vybrat]
aptitude install apache2 libapache2-mod-php5 php5 php5-mysql mysql-server

když libovolný soubor php uloží do kořenu localhostu tedy /var/www tak funguje ale jakmile ho vložím například do /var/www/neco tak už se nic nezobrazí

Offline Petr Krčmář

  • Administrátor
  • Aktivní­ uživatel
  • *****
  • Příspěvků: 448
    • Zobrazit profil
    • Debian-linux.cz
Re:problém s podsložkami v php
« Odpověď #1 kdy: 08. 07. 2014, 15:16:44 »
Chtělo by to znát konfiguraci toho web serveru. Měnil jsi něco nebo to je ve výchozím stavu? Pokud ve výchozím, tak mě napadají takhle z voleje jen práva k tomu adresáři. Může tam to PHP číst soubory?

Offline tribalcz

  • Začátečník
  • **
  • Příspěvků: 101
    • Zobrazit profil
Re:problém s podsložkami v php
« Odpověď #2 kdy: 08. 07. 2014, 16:43:20 »
konfigurace je nezměněná a práva to má dostatečný

Offline Petr Krčmář

  • Administrátor
  • Aktivní­ uživatel
  • *****
  • Příspěvků: 448
    • Zobrazit profil
    • Debian-linux.cz
Re:problém s podsložkami v php
« Odpověď #3 kdy: 08. 07. 2014, 18:58:05 »
V tom případě je na čase se podívat do logu PHP.

Offline tribalcz

  • Začátečník
  • **
  • Příspěvků: 101
    • Zobrazit profil
Re:problém s podsložkami v php
« Odpověď #4 kdy: 08. 07. 2014, 19:18:27 »
No error log mi říká že dochází k nějaké fatal error
Kód: [Vybrat]
[Sun Jul 06 17:43:29 2014] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations
[Sun Jul 06 20:26:51 2014] [notice] caught SIGTERM, shutting down
[Sun Jul 06 20:26:52 2014] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations
[Sun Jul 06 20:27:51 2014] [notice] caught SIGTERM, shutting down
[Sun Jul 06 20:27:57 2014] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations
[Sun Jul 06 20:28:08 2014] [notice] caught SIGTERM, shutting down
[Sun Jul 06 20:28:09 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Sun Jul 06 20:31:20 2014] [notice] Graceful restart requested, doing restart
[Sun Jul 06 20:31:20 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Sun Jul 06 20:31:20 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Sun Jul 06 20:31:46 2014] [notice] Graceful restart requested, doing restart
[Sun Jul 06 20:31:46 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Sun Jul 06 20:31:46 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Sun Jul 06 20:32:47 2014] [notice] Graceful restart requested, doing restart
[Sun Jul 06 20:32:47 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Sun Jul 06 20:32:47 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Sun Jul 06 20:32:47 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Sun Jul 06 20:32:52 2014] [notice] Graceful restart requested, doing restart
[Sun Jul 06 20:32:52 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Sun Jul 06 20:32:52 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Sun Jul 06 20:32:52 2014] [notice] Graceful restart requested, doing restart
[Sun Jul 06 20:32:52 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Sun Jul 06 20:32:52 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Sun Jul 06 20:32:52 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Sun Jul 06 20:33:12 2014] [error] [client ::1] File does not exist: /var/www/externals, referer: http://localhost/adminer/
[Sun Jul 06 20:33:34 2014] [error] [client ::1] File does not exist: /var/www/externals, referer: http://localhost/adminer/
[Sun Jul 06 21:01:27 2014] [notice] caught SIGTERM, shutting down
[Sun Jul 06 21:02:33 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Mon Jul 07 09:06:34 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 09:06:34 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/blog/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 09:07:42 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 09:07:42 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/e85/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 09:07:54 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 09:07:54 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/e85/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 09:07:54 2014] [error] [client ::1] File does not exist: /var/www/favicon.ico
[Mon Jul 07 09:07:54 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 09:07:54 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/e85/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 09:07:55 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 09:07:55 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/e85/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 09:07:55 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 09:07:55 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/e85/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 09:07:55 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 09:07:55 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/e85/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 09:08:24 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 09:08:24 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/e85/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 09:16:00 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/js/script.js, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:00 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/fonts/font-awesome/css/font-awesome.min.css, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:00 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/css/style.css, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:00 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/img/logo.png, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:00 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/img/logo.png, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:06 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/css/style.css, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:47 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/js/script.js, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:47 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/fonts/font-awesome/css/font-awesome.min.css, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:47 2014] [error] [client ::1] (13)Permission denied: access to /blog/css/style.css denied, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:47 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/img/logo.png, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:47 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/img/logo.png, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:48 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/js/script.js, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:48 2014] [error] [client ::1] (13)Permission denied: access to /blog/css/style.css denied, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:48 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/fonts/font-awesome/css/font-awesome.min.css, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:48 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/img/logo.png, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:48 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/img/logo.png, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:50 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/css/style.css, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:51 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/css/style.css, referer: http://localhost/blog/prew/
[Mon Jul 07 09:16:51 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/css/style.css, referer: http://localhost/blog/prew/
[Mon Jul 07 09:17:04 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/css/style.css, referer: http://localhost/blog/prew/
[Mon Jul 07 09:17:04 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/css/style.css, referer: http://localhost/blog/prew/
[Mon Jul 07 09:17:05 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/js/script.js, referer: http://localhost/blog/prew/
[Mon Jul 07 09:17:05 2014] [error] [client ::1] File does not exist: /var/www/css, referer: http://localhost/blog/prew/
[Mon Jul 07 09:17:05 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/fonts/font-awesome/css/font-awesome.min.css, referer: http://localhost/blog/prew/
[Mon Jul 07 09:17:05 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/img/logo.png, referer: http://localhost/blog/prew/
[Mon Jul 07 09:17:05 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/img/logo.png, referer: http://localhost/blog/prew/
[Mon Jul 07 09:17:54 2014] [error] [client ::1] (13)Permission denied: access to /blog/prew/js/script.js denied, referer: http://localhost/blog/prew/
[Mon Jul 07 09:17:54 2014] [error] [client ::1] (13)Permission denied: access to /blog/prew/img/logo.png denied, referer: http://localhost/blog/prew/
[Mon Jul 07 09:17:54 2014] [error] [client ::1] File does not exist: /var/www/blog/prew/fonts, referer: http://localhost/blog/prew/
[Mon Jul 07 09:17:54 2014] [error] [client ::1] File does not exist: /var/www/css, referer: http://localhost/blog/prew/
[Mon Jul 07 09:17:54 2014] [error] [client ::1] (13)Permission denied: access to /blog/prew/img/logo.png denied, referer: http://localhost/blog/prew/
[Mon Jul 07 09:17:56 2014] [error] [client ::1] (13)Permission denied: access to /blog/prew/css/style.css denied, referer: http://localhost/blog/prew/
[Mon Jul 07 09:17:57 2014] [error] [client ::1] (13)Permission denied: access to /blog/prew/css/style.css denied, referer: http://localhost/blog/prew/
[Mon Jul 07 09:18:26 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 09:18:26 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/blog/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 21:59:15 2014] [notice] caught SIGTERM, shutting down
[Mon Jul 07 22:00:23 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Mon Jul 07 22:25:50 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 22:25:50 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/e85/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 22:27:36 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 22:27:36 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/blog/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 22:33:44 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 22:33:44 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/blog/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 22:33:53 2014] [error] [client ::1] script '/var/www/blog/phpindex.php' not found or unable to stat
[Mon Jul 07 22:34:05 2014] [error] [client ::1] PHP Parse error:  syntax error, unexpected end of file in /var/www/blog/phpinfo.php on line 2
[Mon Jul 07 22:40:24 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 22:40:24 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 22:40:25 2014] [error] [client ::1] File does not exist: /var/www/favicon.ico
[Mon Jul 07 22:40:25 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 22:40:25 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 22:40:25 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 22:40:25 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 22:40:26 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 22:40:26 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 22:40:26 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 22:40:26 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 22:40:26 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 22:40:26 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 22:40:26 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 22:40:26 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 22:40:35 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Mon Jul 07 22:40:35 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
[Mon Jul 07 22:49:47 2014] [notice] Graceful restart requested, doing restart
[Mon Jul 07 22:49:47 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Mon Jul 07 22:49:47 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Mon Jul 07 22:49:48 2014] [notice] Graceful restart requested, doing restart
[Mon Jul 07 22:49:48 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Mon Jul 07 22:49:48 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Mon Jul 07 22:50:41 2014] [notice] caught SIGTERM, shutting down
[Mon Jul 07 22:50:42 2014] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations
[Mon Jul 07 22:50:59 2014] [error] [client ::1] (13)Permission denied: file permissions deny server access: /var/www/blog/index.php, referer: http://localhost/
[Mon Jul 07 22:51:58 2014] [notice] caught SIGTERM, shutting down
[Mon Jul 07 22:51:59 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Mon Jul 07 22:52:06 2014] [notice] Graceful restart requested, doing restart
[Mon Jul 07 22:52:06 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Mon Jul 07 22:52:06 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Mon Jul 07 22:52:07 2014] [notice] Graceful restart requested, doing restart
[Mon Jul 07 22:52:07 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Mon Jul 07 22:52:07 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Mon Jul 07 22:52:14 2014] [error] [client ::1] File does not exist: /var/www/favicon.ico
[Mon Jul 07 22:52:28 2014] [error] [client ::1] File does not exist: /var/www/externals, referer: http://localhost/adminer/
[Mon Jul 07 22:52:59 2014] [notice] caught SIGTERM, shutting down
[Mon Jul 07 22:53:00 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Mon Jul 07 22:53:11 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0, referer: http://localhost/
[Mon Jul 07 22:53:11 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/blog/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0, referer: http://localhost/
[Tue Jul 08 07:44:06 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0, referer: http://localhost/
[Tue Jul 08 07:44:06 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/blog/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0, referer: http://localhost/
[Tue Jul 08 09:52:23 2014] [error] [client ::1] PHP Parse error:  syntax error, unexpected end of file in /var/www/blog/phpinfo.php on line 2
[Tue Jul 08 16:42:21 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0, referer: http://localhost/
[Tue Jul 08 16:42:21 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/blog/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0, referer: http://localhost/
[Tue Jul 08 16:42:55 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0, referer: http://localhost/
[Tue Jul 08 16:42:55 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/blog/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0, referer: http://localhost/
[Tue Jul 08 19:17:07 2014] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
[Tue Jul 08 19:17:07 2014] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/var/www/blog/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0