PDA

Visualizza la versione completa : problema configurare Apache


Ratatuia
22-05-2005, 11:51
Ciao a tutti, in questi giorni mi trovo a combattere con Apache su un server dedicato che sto configurando. Il server in housing negli Stati Uniti quindi non l'ho configurato io dal principio...

Fino a due giorni fa ho provato a configurare contemporaneamente il server principale e i virtualhosts: dato che ho scomodato tutti i santi sul calendario ho deciso di provare a configurare il solo server principale, quello che risponderebbe al solo indirizzo ip...

ebbene, nonostante mi par di aver fatto le cose minime indispensabili, quando apro l'indirizzo ip ottengo

"Forbidden

You don't have permission to access / on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."


:nonlodire


la parte di configurazione attinente sarebbe questa (ditemi se manca qualcosa)




Listen *:80
DocumentRoot "/var/www"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/www">
Options Indexes FollowSymLinks MultiViews
Options FileInfo AuthConfig Limit
AllowOverride All
Order allow,deny
Allow from all
</Directory>


e questo tutto...penso che i miei problemi siano tutti qui, giusto? idee? suggerimenti?
grazie
ratatuia

l.golinelli
22-05-2005, 13:03
Non che hai dei permessi ad accedere alla DocumentRoot del virtualhost?

Guarda l'error_log di apache

Ratatuia
22-05-2005, 13:08
ho provato a dare chmod 777 a www e cambiare owner e gruppo portandoli ad apache (utente e gruppo con il quale viene eseguito apache), ma...niente! :dh:

l.golinelli
22-05-2005, 13:08
L'error_log?

Ratatuia
22-05-2005, 13:16
ho trovato questo...per nn riesco a capire cosa diamine siano...[aldil delle favicon.ico]

[Sun May 22 18:48:06 2005] [notice] caught SIGTERM, shutting down
[Sun May 22 18:48:07 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun May 22 18:48:07 2005] [notice] Digest: generating secret for digest authentication ...
[Sun May 22 18:48:07 2005] [notice] Digest: done
[Sun May 22 18:48:07 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Sun May 22 18:48:07 2005] [notice] LDAP: SSL support unavailable
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/mysql.so' - libmysqlclient.so.10: cannot open shared object file: No such file or directory in Unknown on line 0
[Sun May 22 18:48:07 2005] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Sun May 22 18:48:07 2005] [notice] Apache/2.0.52 (Fedora) configured -- resuming normal operations
[Sun May 22 18:48:53 2005] [notice] caught SIGTERM, shutting down
[Sun May 22 18:48:55 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun May 22 18:48:55 2005] [notice] Digest: generating secret for digest authentication ...
[Sun May 22 18:48:55 2005] [notice] Digest: done
[Sun May 22 18:48:55 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Sun May 22 18:48:55 2005] [notice] LDAP: SSL support unavailable
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/mysql.so' - libmysqlclient.so.10: cannot open shared object file: No such file or directory in Unknown on line 0
[Sun May 22 18:48:55 2005] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Sun May 22 18:48:55 2005] [notice] Apache/2.0.52 (Fedora) configured -- resuming normal operations
[Sun May 22 18:54:18 2005] [notice] caught SIGTERM, shutting down
[Sun May 22 18:54:31 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun May 22 18:54:31 2005] [notice] Digest: generating secret for digest authentication ...
[Sun May 22 18:54:31 2005] [notice] Digest: done
[Sun May 22 18:54:31 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Sun May 22 18:54:31 2005] [notice] LDAP: SSL support unavailable
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/mysql.so' - libmysqlclient.so.10: cannot open shared object file: No such file or directory in Unknown on line 0
[Sun May 22 18:54:31 2005] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Sun May 22 18:54:31 2005] [notice] Apache/2.0.52 (Fedora) configured -- resuming normal operations
[Sun May 22 19:05:51 2005] [notice] caught SIGTERM, shutting down
[Sun May 22 19:05:52 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun May 22 19:05:52 2005] [notice] Digest: generating secret for digest authentication ...
[Sun May 22 19:05:52 2005] [notice] Digest: done
[Sun May 22 19:05:52 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Sun May 22 19:05:52 2005] [notice] LDAP: SSL support unavailable
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/mysql.so' - libmysqlclient.so.10: cannot open shared object file: No such file or directory in Unknown on line 0
[Sun May 22 19:05:52 2005] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Sun May 22 19:05:52 2005] [notice] Apache/2.0.52 (Fedora) configured -- resuming normal operations
[Sun May 22 19:06:32 2005] [error] [client 81.208.36.82] Directory index forbidden by rule: /var/www
[Sun May 22 19:06:32 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwerror
[Sun May 22 19:06:33 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwfavicon.ico
[Sun May 22 19:07:30 2005] [error] [client 81.208.36.82] Directory index forbidden by rule: /var/www
[Sun May 22 19:07:30 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwerror
[Sun May 22 19:07:31 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwfavicon.ico
[Sun May 22 19:12:41 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwerror
[Sun May 22 19:12:42 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwfavicon.ico
[Sun May 22 19:12:47 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwerror
[Sun May 22 19:12:48 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwfavicon.ico
[Sun May 22 19:14:27 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwlogs
[Sun May 22 19:14:28 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwfavicon.ico

l.golinelli
22-05-2005, 13:20
Questo un problema:

PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/mysql.so' - libmysqlclient.so.10: cannot open shared object file: No such file or directory in Unknown on line

Ma il dramma qui:

[Sun May 22 19:06:32 2005] [error] [client 81.208.36.82] Directory index forbidden by rule: /var/www
[Sun May 22 19:06:32 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwerror
[Sun May 22 19:06:33 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwfavicon.ico
[Sun May 22 19:07:30 2005] [error] [client 81.208.36.82] Directory index forbidden by rule: /var/www
[Sun May 22 19:07:30 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwerror
[Sun May 22 19:07:31 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwfavicon.ico
[Sun May 22 19:12:41 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwerror
[Sun May 22 19:12:42 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwfavicon.ico
[Sun May 22 19:12:47 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwerror
[Sun May 22 19:12:48 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwfavicon.ico
[Sun May 22 19:14:27 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwlogs
[Sun May 22 19:14:28 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwfavicon.ico

C' sicuramente quqlcosa che non va nel file di config...

Prova a mettere la / dopo /var/www nel file di config...

Ratatuia
22-05-2005, 13:59
nada...niente di niente...

per quanto riguarda il problema di mysql nn saprei proprio dato che questo server ce lo hanno consegnato "chiavi in mano" per quanto riguarda il software...



intanto grazie per le risposte...

l.golinelli
22-05-2005, 14:30
Metti una DocumentRoot diversa per il virtualhost

Ratatuia
22-05-2005, 14:33
Originariamente inviato da l.golinelli
Metti una DocumentRoot diversa per il virtualhost


per ora nn c' nessun virtual host...

l.golinelli
22-05-2005, 14:39
La DirectoryIndex qual'?

Cmq il prob questo:

[Sun May 22 19:06:32 2005] [error] [client 81.208.36.82] Directory index forbidden by rule: /var/www
[Sun May 22 19:06:32 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwerror
[Sun May 22 19:06:33 2005] [error] [client 81.208.36.82] File does not exist: /var/wwwfavicon.ico
[Sun May 22 19:07:30 2005] [error] [client 81.208.36.82] Directory index forbidden by rule: /var/www

La cosa strana che dopo www non mette la /
Come far mai a funzionare?

Loading