Joomla.it Forum
Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => Installazione, migrazione e aggiornamento => : Vulpiani 08 Feb 2009, 15:40:12
-
Ciao ragazzi, ho dovuto trasferire un dominio da helloweb.eu, che è gratutio a un host a pagamento che è un dot com.
Ora purtroppo però mi da Errore 500, credo che la causa sia Htaccess, potreste dirmi come configurarlo?
Ve lo posto qui
##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##
#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
RewriteBase /
########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
Vi ringrazio
Francesco
-
Ciao,
non capisco, se il tuo sito e' .com o .org o .eu, dipende unicamente da come lo hai registrato, non dall'host.
Comunque, hai tolto il '#' dalla riga "Rewrite base" per un motivo preciso? Prova a commentarla di nuovo (diventa # RewriteBase /".
E' una direttiva importante per la formazione degli indirizzi, non ndrebbe usata se non in configurazioni molto particolari...
-
si si, infatti, ho tolto quel commento per fare delle prove, ma in realtà anche commentando il rewrite base continua a restituire errore 500.
Il dominio è Com, può dipendere da questo?
-
Sai anche tu che l'Error 500 dice poco...
Puoi vedere (e postare) l'errore che ti da nell'error log (da CPanel)?
-
purtroppo non ho accesso al cpanel...non è mio il server, ho solo i dati ftp, c'è qualche modo per ottenere quel log per altre vie?
-
No, i file di log del server sono fuori dal campo d'azione ftp...
Controlla pero' una cosa, apri il configuration.php (e' scrivibile, vero? Diritti a 777...) e verifica queste variabili:
var $sef = '0';
var $sef_rewrite = '0';
var $sef_suffix = '0';
var $log_path = '[percorso assoluto]/logs';
var $tmp_path = '[percorso assoluto]/tmp';
var $force_ssl = '0';
var $caching = '0';
Il percorso assoluto lo vedi sulla barra del titolo dell'ftp quando sei nella cartella principale, comincia sempre con una "/" (ad esempio /home/user/public_html).
-
si si, ovviamente è già configurato così...appena viene il padrone mi faccio passare il log...speriamo sia in tempi superbrevi! :(
-
Ecco il log degli errori
[Sun Feb 08 02:58:20 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 02:58:20 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/internal_error.html
[Sun Feb 08 02:58:21 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/favicon.ico
[Sun Feb 08 02:58:21 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/missing.html
[Sun Feb 08 02:58:24 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/favicon.ico
[Sun Feb 08 02:58:24 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/missing.html
[Sun Feb 08 02:59:27 2009] [error] [client 79.37.53.83] Premature end of script headers: index.php
[Sun Feb 08 02:59:27 2009] [error] [client 79.37.53.83] File does not exist: /home/cromatiste/cromatiste.com/internal_error.html
[Sun Feb 08 02:59:28 2009] [error] [client 79.37.53.83] File does not exist: /home/cromatiste/cromatiste.com/favicon.ico
[Sun Feb 08 02:59:28 2009] [error] [client 79.37.53.83] File does not exist: /home/cromatiste/cromatiste.com/missing.html
[Sun Feb 08 02:59:31 2009] [error] [client 79.37.53.83] File does not exist: /home/cromatiste/cromatiste.com/favicon.ico
[Sun Feb 08 02:59:31 2009] [error] [client 79.37.53.83] File does not exist: /home/cromatiste/cromatiste.com/missing.html
[Sun Feb 08 03:15:50 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 03:15:50 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/internal_error.html
[Sun Feb 08 03:15:51 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/favicon.ico
[Sun Feb 08 03:15:51 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/missing.html
[Sun Feb 08 03:15:54 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/favicon.ico
[Sun Feb 08 03:15:54 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/missing.html
[Sun Feb 08 03:16:31 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 03:16:31 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/internal_error.html
[Sun Feb 08 04:01:54 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 04:02:35 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 04:22:04 2009] [alert] [client 87.6.151.69] /home/cromatiste/cromatiste.com/.htaccess: Invalid command 'mod_rewrite', perhaps misspelled or defined by a module not included in the server configuration
[Sun Feb 08 04:22:04 2009] [alert] [client 87.6.151.69] /home/cromatiste/cromatiste.com/.htaccess: Invalid command 'mod_rewrite', perhaps misspelled or defined by a module not included in the server configuration
[Sun Feb 08 04:22:06 2009] [alert] [client 87.6.151.69] /home/cromatiste/cromatiste.com/.htaccess: Invalid command 'mod_rewrite', perhaps misspelled or defined by a module not included in the server configuration
[Sun Feb 08 04:22:06 2009] [alert] [client 87.6.151.69] /home/cromatiste/cromatiste.com/.htaccess: Invalid command 'mod_rewrite', perhaps misspelled or defined by a module not included in the server configuration
[Sun Feb 08 04:24:02 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 04:24:02 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/internal_error.html
[Sun Feb 08 04:25:24 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 04:26:05 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 04:31:46 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 04:32:27 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 04:51:38 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 04:52:19 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 06:45:20 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 06:46:01 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 06:54:14 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 06:54:55 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 07:04:18 2009] [error] [client 193.86.238.33] Premature end of script headers: index.php
[Sun Feb 08 07:04:59 2009] [error] [client 193.86.238.33] Premature end of script headers: index.php
[Sun Feb 08 07:06:44 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 07:07:25 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 07:16:13 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 07:16:54 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 07:34:33 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 07:34:33 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/internal_error.html
[Sun Feb 08 10:39:44 2009] [error] [client 87.6.151.69] Premature end of script headers: index.php
[Sun Feb 08 10:39:44 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/internal_error.html
[Sun Feb 08 10:39:48 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/favicon.ico
[Sun Feb 08 10:39:48 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/missing.html
[Sun Feb 08 10:39:49 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/favicon.ico
[Sun Feb 08 10:39:49 2009] [error] [client 87.6.151.69] File does not exist: /home/cromatiste/cromatiste.com/missing.html
[Sun Feb 08 10:40:50 2009] [error] [client 81.208.74.187] Premature end of script headers: index.php
[Sun Feb 08 10:40:50 2009] [error] [client 81.208.74.187] File does not exist: /home/cromatiste/cromatiste.com/internal_error.html
-
Ciao,
per
Premature end of script headers: index.php
controllerei i permessi delle cartelle che siano a 755 e dei files a 644
Per
File does not exist:etc etc
è solo l'avvertimento che favicon.ico ed alcune pagine che immagino di default dell'hosting tipo internal_error.html sono mancanti.
Per prima cosa comunque disabiliterei le friendly urls, rinominerei .htaccess in htaccess.txt e controllerei che la configurazione funzioni a dovere per essere sicuro che il problema possa essere riferito all'.htaccess.
-
uhm...non avendo a disposizione l'amministrazione (visto che non mi fa entrare) come posso fare a disabilitare le friendly urls?
speriamo sia quello...
-
uhm...non avendo a disposizione l'amministrazione (visto che non mi fa entrare) come posso fare a disabilitare le friendly urls?
speriamo sia quello...
Eh ,
ti serve l'accesso come superadmin nel backend di joomla per le friendly urls e l'accesso ftp per rinominare l'.htaccess.
Altri modi non ne conosco, purtroppo.
-
è che non mi fa entrare nemmeno nel backend...
-
Ciao,
ho visto che hai risolto.
Che problemi erano?
-
Database a quanto pare...ho reinstallato joomla ed è filato tutto liscio.