sq7jzi
12-01-2008, 19:48
Serwer hostingpro.pl
domena, podkatalog joomla, skopiowałem tam pliki z najnowszej wersji.
Wchodzę w MozillaFilrefox hostingpro.pl/joomla
Od razu dostaje komunikat "Restricted access"
Wiem, gdzie to jest zapisane, ale, co powoduje jego wyświetlenie ?
Skąd ten komunikat ?
Coś źle wgrałem ? Ale TC nie zgłaszał żadnych błędów, a 'zamień na małe litery' było wyłączone.
Gdy z INSTALL.php wyłączyłem linię:
defined( '_VALID_MOS' ) or die( 'Restricted access' );
pojawił się komunikat:
404 Not Found
The request /installation/index.php was not found on this server.
Znalazłem rozwiązanie edytując plik index.php
trzeba zmienić tak:
//checks for configuration file, if none found loads installation page
if (!file_exists( 'configuration.php' ) || filesize( 'configuration.php' ) < 10) {
$self = rtrim( dirname( $_SERVER['PHP_SELF'] ), '/\\' ) . '/';
header("Location: http://" . $_SERVER['HTTP_HOST'] . $self . "installation/index.php" );
exit();
}
zmienić na:
//checks for configuration file, if none found loads installation page
if (!file_exists( 'configuration.php' ) || filesize( 'configuration.php' ) < 10) {
$self = rtrim( dirname( $_SERVER['PHP_SELF'] ), '/\\' ) . '/';
header("Location: http://" . $_SERVER['HTTP_HOST'] . $self . "/joomla/installation/index.php" );
exit();
}
domena, podkatalog joomla, skopiowałem tam pliki z najnowszej wersji.
Wchodzę w MozillaFilrefox hostingpro.pl/joomla
Od razu dostaje komunikat "Restricted access"
Wiem, gdzie to jest zapisane, ale, co powoduje jego wyświetlenie ?
Skąd ten komunikat ?
Coś źle wgrałem ? Ale TC nie zgłaszał żadnych błędów, a 'zamień na małe litery' było wyłączone.
Gdy z INSTALL.php wyłączyłem linię:
defined( '_VALID_MOS' ) or die( 'Restricted access' );
pojawił się komunikat:
404 Not Found
The request /installation/index.php was not found on this server.
Znalazłem rozwiązanie edytując plik index.php
trzeba zmienić tak:
//checks for configuration file, if none found loads installation page
if (!file_exists( 'configuration.php' ) || filesize( 'configuration.php' ) < 10) {
$self = rtrim( dirname( $_SERVER['PHP_SELF'] ), '/\\' ) . '/';
header("Location: http://" . $_SERVER['HTTP_HOST'] . $self . "installation/index.php" );
exit();
}
zmienić na:
//checks for configuration file, if none found loads installation page
if (!file_exists( 'configuration.php' ) || filesize( 'configuration.php' ) < 10) {
$self = rtrim( dirname( $_SERVER['PHP_SELF'] ), '/\\' ) . '/';
header("Location: http://" . $_SERVER['HTTP_HOST'] . $self . "/joomla/installation/index.php" );
exit();
}