http //localhost/~username/ 403 a szyfrowany /home

Tutaj można zadać pytanie, jeśli Linuksa widzi się pierwszy raz w życiu ;)
?unreal?
Piegowaty Guziec
Piegowaty Guziec
Posty: 12
Rejestracja: 09 cze 2010, 18:39
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86_64

http //localhost/~username/ 403 a szyfrowany /home

Post autor: ?unreal? »

Przy instalacji ubuntu 12 LTS zaznaczyłem szyfrowany katalog domowy. Teraz nie chce mi działać public_html. Czy to ma jakieś znaczenie i co robić ??

Zwykle to wystarczało i zawsze działało wszystko.

Kod: Zaznacz cały

sudo a2enmod userdir
Nie piesze więcej bo w /var/www wszystko działa ok i po wpisaniu samego http //localhost/ wszystko śmiga.

Prosił bym o szybką pomoc.
Awatar użytkownika
ethanak
Wygnańcy
Posty: 3054
Rejestracja: 04 gru 2007, 13:19
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86
Lokalizacja: Bielsko-Biała
Kontakt:

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ethanak »

Chcę oglądać twoje logi
(chór: logi, logi!)
?unreal?
Piegowaty Guziec
Piegowaty Guziec
Posty: 12
Rejestracja: 09 cze 2010, 18:39
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86_64

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ?unreal? »

a dokładniej jakie w /var/log jest masa plików


apache2 ?

Kod: Zaznacz cały

cat error.log


PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sun Jun 09 08:15:19 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations

Awatar użytkownika
ethanak
Wygnańcy
Posty: 3054
Rejestracja: 04 gru 2007, 13:19
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86
Lokalizacja: Bielsko-Biała
Kontakt:

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ethanak »

w którymś errorlogu będzie informacja o tym co się nie powiodło i dlaczego apacz nie ma dostępu do tego katalogu.
ja bym jeszcze sprawdził prawa dostępu katalogu domowego użytkownika - częstym błędem jest nadanie uprawnień typu 750, poczas gdy minimalne to 751. więcej teraz nie powiem bo już nie mam kompa przed nosem a na telefonie ciężko się sprawdza...
?unreal?
Piegowaty Guziec
Piegowaty Guziec
Posty: 12
Rejestracja: 09 cze 2010, 18:39
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86_64

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ?unreal? »

tez coś znalazłem zanim założyłem temat o prawach dostępu i nadałem jak pisali 711 z opcją -R (że niby rekurencyjnie) i to mi nic nie pomogło. Natomiast przed założeniem tematu znalazłem coś o szyfrowanym katalogu domowym i że podobno to jest problemem stąd moje pytanie.

może error.log.1 <- to pewnie ten stary bo przed założeniem tematu była reinstalacja

Kod: Zaznacz cały

nemox@desktop:/var/log/apache2$ cat error.log.1
[Sun Jun 02 13:05:29 2013] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
[Sun Jun 02 13:08:36 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Sun Jun 02 13:08:36 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Sun Jun 02 13:09:13 2013] [notice] caught SIGTERM, shutting down
[Sun Jun 02 13:09:19 2013] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
[Sun Jun 02 13:09:27 2013] [notice] caught SIGTERM, shutting down
[Sun Jun 02 13:09:28 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sun Jun 02 13:09:42 2013] [notice] caught SIGTERM, shutting down
[Sun Jun 02 13:09:43 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sun Jun 02 13:21:04 2013] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sun Jun 02 13:21:04 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sun Jun 02 13:45:46 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sun Jun 02 13:45:47 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sun Jun 02 13:46:10 2013] [error] [client 127.0.0.1] File does not exist: /var/www/phpmyadmin
[Sun Jun 02 13:47:29 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sun Jun 02 13:47:30 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sun Jun 02 17:50:26 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sun Jun 02 18:58:13 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Mon Jun 03 00:05:46 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Mon Jun 03 07:20:58 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Mon Jun 03 07:24:26 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Mon Jun 03 07:25:08 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Mon Jun 03 07:35:56 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Mon Jun 03 17:16:30 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Mon Jun 03 20:01:44 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Mon Jun 03 20:03:22 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Mon Jun 03 23:52:20 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Tue Jun 04 09:16:36 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Tue Jun 04 23:13:54 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Wed Jun 05 07:25:47 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Wed Jun 05 22:46:12 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Thu Jun 06 07:31:08 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Thu Jun 06 22:21:31 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Fri Jun 07 07:55:56 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Fri Jun 07 11:05:57 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Fri Jun 07 12:31:35 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Fri Jun 07 12:52:06 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Fri Jun 07 12:52:49 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Fri Jun 07 15:38:09 2013] [error] [client 127.0.0.1] File does not exist: /var/www/blog
[Fri Jun 07 15:38:09 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Jun 07 15:38:09 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Jun 07 15:38:31 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox/blog denied
[Fri Jun 07 16:21:29 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox/ denied
[Fri Jun 07 16:21:39 2013] [error] [client 127.0.0.1] File does not exist: /var/www/nemox
[Fri Jun 07 16:22:53 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Fri Jun 07 16:23:06 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox/ denied
[Fri Jun 07 16:25:26 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Fri Jun 07 16:25:27 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Fri Jun 07 16:25:31 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /nemox/ denied
[Fri Jun 07 16:25:44 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Fri Jun 07 16:26:32 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Fri Jun 07 16:26:39 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /nemox denied
[Fri Jun 07 16:26:51 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Fri Jun 07 16:26:52 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Fri Jun 07 17:24:43 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox/ denied
[Fri Jun 07 17:26:09 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox/ denied
[Fri Jun 07 17:26:18 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /blog denied
[Fri Jun 07 20:50:03 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Fri Jun 07 21:02:18 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /testphp.php denied
[Fri Jun 07 21:02:26 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Fri Jun 07 23:21:25 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sat Jun 08 05:22:47 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sat Jun 08 05:26:43 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sat Jun 08 05:27:25 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sat Jun 08 05:27:40 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sat Jun 08 05:28:21 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sat Jun 08 17:52:52 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sat Jun 08 21:16:14 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sat Jun 08 21:54:53 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Sat Jun 08 21:54:53 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Sat Jun 08 21:55:02 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Sat Jun 08 22:07:56 2013] [notice] caught SIGTERM, shutting down
[Sat Jun 08 22:07:57 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sat Jun 08 22:12:49 2013] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mysql.so' - /usr/lib/php5/20090626/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mysqli.so' - /usr/lib/php5/20090626/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/pdo_mysql.so' - /usr/lib/php5/20090626/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Sat Jun 08 22:12:49 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sat Jun 08 22:24:03 2013] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sat Jun 08 22:24:03 2013] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
[Sat Jun 08 22:30:54 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mysql.so' - /usr/lib/php5/20090626/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mysql.so' - /usr/lib/php5/20090626/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mysqli.so' - /usr/lib/php5/20090626/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/pdo_mysql.so' - /usr/lib/php5/20090626/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Sat Jun 08 22:30:55 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sat Jun 08 22:34:43 2013] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sat Jun 08 22:34:43 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sat Jun 08 22:36:57 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sat Jun 08 22:36:58 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sat Jun 08 22:39:03 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sat Jun 08 22:39:04 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sat Jun 08 22:39:15 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Sat Jun 08 22:40:34 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox/ denied
[Sat Jun 08 22:41:20 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Sat Jun 08 22:41:23 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Sat Jun 08 22:45:16 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox/test.php denied
[Sat Jun 08 22:47:53 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sat Jun 08 22:47:54 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sat Jun 08 22:48:02 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox/test.php denied
[Sat Jun 08 22:48:06 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox/ denied
[Sat Jun 08 22:48:20 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /a denied
[Sat Jun 08 22:48:28 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /testphp.php denied
[Sat Jun 08 22:48:45 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /test.php denied
[Sat Jun 08 22:48:56 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /a denied
[Sat Jun 08 22:49:01 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /a.php denied
[Sat Jun 08 22:50:33 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sat Jun 08 22:50:34 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sat Jun 08 22:53:41 2013] [error] [client 127.0.0.1] File does not exist: /var/www/nemox
[Sat Jun 08 22:53:51 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Sat Jun 08 22:54:53 2013] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sat Jun 08 22:54:53 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sat Jun 08 22:54:57 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Sat Jun 08 22:54:58 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Sat Jun 08 22:55:00 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Sat Jun 08 23:00:20 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Sat Jun 08 23:00:21 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Sat Jun 08 23:00:23 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Sat Jun 08 23:03:12 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Sat Jun 08 23:03:24 2013] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sat Jun 08 23:03:24 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sat Jun 08 23:03:29 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Sat Jun 08 23:03:30 2013] [error] [client 127.0.0.1] (13)Permission denied: access to /~nemox denied
[Sat Jun 08 23:05:38 2013] [crit] [client 127.0.0.1] (13)Permission denied: /home/nemox/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Sat Jun 08 23:05:38 2013] [crit] [client 127.0.0.1] (13)Permission denied: /home/nemox/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Sat Jun 08 23:05:39 2013] [crit] [client 127.0.0.1] (13)Permission denied: /home/nemox/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Sat Jun 08 23:05:40 2013] [crit] [client 127.0.0.1] (13)Permission denied: /home/nemox/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Sat Jun 08 23:52:39 2013] [notice] caught SIGTERM, shutting down
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sun Jun 09 07:47:40 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sun Jun 09 08:09:38 2013] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
[Sun Jun 09 08:09:38 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Sun Jun 09 08:10:00 2013] [error] [client 127.0.0.1] File does not exist: /var/www/nemox
[Sun Jun 09 08:10:00 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Sun Jun 09 08:10:05 2013] [error] [client 127.0.0.1] (13)Permission denied: file permissions deny server access: /home/nemox/public_html/index.html
[Sun Jun 09 08:15:19 2013] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

Awatar użytkownika
ka_o_3991
Przyjaciel
Przyjaciel
Posty: 864
Rejestracja: 01 wrz 2007, 13:34
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: Xfce
Architektura: x86_64

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ka_o_3991 »

Kod: Zaznacz cały

[Sun Jun 09 08:10:05 2013] [error] [client 127.0.0.1] (13)Permission denied: file permissions deny server access: /home/nemox/public_html/index.html
I to jest Twój problem. pokaż jeszcze

Kod: Zaznacz cały

ls -l /home/nemox/public_html
i

Kod: Zaznacz cały

ls -l /home/nemox | grep public_html
Dzięki temu zobaczymy uprawnienia jakie masz ustawione do tych plików, bo z logu wynika że to w tym leży przyczyna.
?unreal?
Piegowaty Guziec
Piegowaty Guziec
Posty: 12
Rejestracja: 09 cze 2010, 18:39
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86_64

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ?unreal? »

Kod: Zaznacz cały

nemox@desktop:/var/log/apache2$ ls -l /home/nemox/public_html
razem 36
-rwx--x--x 1 nemox nemox 131 cze  8 22:44 index.html
-rwx--x--x 1 nemox nemox  32 cze  8 22:44 index.html~
-rwx--x--x 1 nemox nemox  20 cze  8 22:45 test.php

i

Kod: Zaznacz cały

nemox@desktop:/var/log/apache2$ ls -l /home/nemox | grep public_html
drwx--x--x 2 nemox nemox 4096 cze  8 22:45 public_html
nemox@desktop:/var/log/apache2$ 
dzięki za zainteresowanie tematem.
Awatar użytkownika
ethanak
Wygnańcy
Posty: 3054
Rejestracja: 04 gru 2007, 13:19
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86
Lokalizacja: Bielsko-Biała
Kontakt:

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ethanak »

bo zrobiłeś - wybacz określenie - największy możliwy idiotyzm, czyli rekurencyjną zmianę uprawnień.
pisałem wyraźnie o katalogu domowym użytkownika, a nie o wszystkim.
teraz musisz przywrócić stan normalny -
czyli przywrócić uprawnienia sprzed wydania owego niewątpliwie odkrywczego polecenia.
katalogi mają mieć rx dla wszystkich, pliki co najmniej r dla wszystkich (x nie powinuen teoretycznie zaszkodzić)
?unreal?
Piegowaty Guziec
Piegowaty Guziec
Posty: 12
Rejestracja: 09 cze 2010, 18:39
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86_64

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ?unreal? »

Kod: Zaznacz cały

nemox@desktop:/home$ sudo chmod -R -rx nemox
po poleceniu połowa stron www się wysypała grafika lata jak chce po całej stronie np. http://ubuntu.pl a problem dalej nie zniknął


teraz dopiero namieszałem :/ prosze dajcie mi gotowe polcenie po którym wróci wszystko do normy.
Awatar użytkownika
ethanak
Wygnańcy
Posty: 3054
Rejestracja: 04 gru 2007, 13:19
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86
Lokalizacja: Bielsko-Biała
Kontakt:

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ethanak »

bo teraz to już dokończyłeś dzieła i skopałeś tę resztę, która nie była skopana. naprawdę ciężko pomóc komuś, kto czyta połowę zdania z posta, drugą połowę dopowiada sobie sam na podstawie kamasutry i nostradamusa a potem się dziwi że mu nie wyszło.
masz z czego odtworzyć uprawnienia każdego elementu w katalogu użytkownika? bo tu nie wystarczy jedno proste polecenie.
inaczej powiem: przywaliłeś młotkiem w serwis stołowy, potem potłukłeś ostatnie talerzyki a teraz chcesz kupić magiczną kropelkę która sama wszystko sklei.
?unreal?
Piegowaty Guziec
Piegowaty Guziec
Posty: 12
Rejestracja: 09 cze 2010, 18:39
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86_64

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ?unreal? »

na szczeście to ubuntu i cos sobie wyklikałem jest lepiej ale czy dobrze ? [http://localhost/~nemox/ dalej 403]

Kod: Zaznacz cały

 nemox@desktop:/home$ sudo ls -l /home/nemox | grep public_html
drwxrwx--- 2 nemox nemox 4096 cze  8 22:45 public_html
nemox@desktop:/home$ sudo  ls -l /home/nemox/public_html
razem 36
-rw-r----- 1 nemox nemox 131 cze  8 22:44 index.html
-rw-r----- 1 nemox nemox  32 cze  8 22:44 index.html~
-rw-r----- 1 nemox nemox  20 cze  8 22:45 test.php
nemox@desktop:/home$
Awatar użytkownika
ethanak
Wygnańcy
Posty: 3054
Rejestracja: 04 gru 2007, 13:19
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86
Lokalizacja: Bielsko-Biała
Kontakt:

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ethanak »

rozumiem że masz tam tylko te pliki?
piszę z telefonu więc mogę się pomylić, sprawdź sto razy zanim zaaplikujesz:

Kod: Zaznacz cały

sudo su -
chmod 751 ~nemox
chmod 755 ~nemox/public_html
chmod 644 ~nemox/public_html/*
zobacz co się stanie
?unreal?
Piegowaty Guziec
Piegowaty Guziec
Posty: 12
Rejestracja: 09 cze 2010, 18:39
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86_64

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ?unreal? »

działa dzięki jeszcze jak by Ci się chciało wytłumaczyć dlaczego takie chmod-y a nie inne było by już całkiem super niby z głupoty mnie to nie wyleczy ale będzie dobry początek
Awatar użytkownika
ethanak
Wygnańcy
Posty: 3054
Rejestracja: 04 gru 2007, 13:19
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86
Lokalizacja: Bielsko-Biała
Kontakt:

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ethanak »

tak na szybko:
katalog domowy nemox musi być dostępny dla użytkownika bez ograniczeń, dla grupy bez ograniczeń ale wyłącznie do odczytu, dla reszty świata ma pozostać możliwość dobrania się do znanego elementu (ale nie wylistowania zawartości) - bo apacz wie że tam jest public_html i musi się tam dostać;
katalog public_html bez ograniczeń dla właściciela, do odczytu bez ograniczeń dla wszystkich - bo apacz musi zarówno go odczytać,jak i odczytać dowolny element wewnątrz;
pliki w public_html mają być dostępne do odczytu i zapisu (ale bez prawa wykonania) dla właściciela, tylko do odczytu dla reszty świata - bo apacz musi je odczytać aby je zaserwować.
jak masz jeszcze wątpliwości to odpowiem jak będę przy kompie.

-- 09 cze 2013 11:19 --

tak na szybko:
katalog domowy nemox musi być dostępny dla użytkownika bez ograniczeń, dla grupy bez ograniczeń ale wyłącznie do odczytu, dla reszty świata ma pozostać możliwość dobrania się do znanego elementu (ale nie wylistowania zawartości) - bo apacz wie że tam jest public_html i musi się tam dostać;
katalog public_html bez ograniczeń dla właściciela, do odczytu bez ograniczeń dla wszystkich - bo apacz musi zarówno go odczytać,jak i odczytać dowolny element wewnątrz;
pliki w public_html mają być dostępne do odczytu i zapisu (ale bez prawa wykonania) dla właściciela, tylko do odczytu dla reszty świata - bo apacz musi je odczytać aby je zaserwować.
jak masz jeszcze wątpliwości to odpowiem jak będę przy kompie.
?unreal?
Piegowaty Guziec
Piegowaty Guziec
Posty: 12
Rejestracja: 09 cze 2010, 18:39
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86_64

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ?unreal? »

to skoro moge jeszcze pytać to czemu katalog nemox musi być dostępny dla użytkownika bez ograniczeń, dla grupy bez ograniczeń ale wyłącznie do odczytu ?
Czemu użytkownik nemox nie może mieć full uprawnień do swojego katalogu ?
Awatar użytkownika
ethanak
Wygnańcy
Posty: 3054
Rejestracja: 04 gru 2007, 13:19
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86
Lokalizacja: Bielsko-Biała
Kontakt:

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ethanak »

ale przecież ma (pierwsza siódemka)!
grupami się na razie nie przejmuj, możesz bezpiecznie założyć że grupa ma takie same prawa jak właściciel z wyjątkiem odczytu.
inaczej: jeśli masz innego użytkownika w tej samej grupie to nie powinien mieć z automatu dostępu do wszystkich twoich danych - ustalasz to indywidualnie dla każdego pliku czy katalogu.
?unreal?
Piegowaty Guziec
Piegowaty Guziec
Posty: 12
Rejestracja: 09 cze 2010, 18:39
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86_64

Re: http //localhost/~username/ 403 a szyfrowany /home

Post autor: ?unreal? »

aha no to troszke już rozumie dzięki
ODPOWIEDZ

Wróć do „Przedszkole Linuksa”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 20 gości