Na FreeHostingu Endora běží desítky tisíc webů. Přidejte se ještě dnes!
Vytvořit web zdarmaNa FreeHostingu Endora běží desítky tisíc webů. Přidejte se ještě dnes!
Vytvořit web zdarma
DocumentRoot "E:/server/Apache/htdocs"
na
DocumentRoot "E:/server/www"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
na
<Directory "E:/server/www">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "E:/server/apache/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
na
<Directory "E:/server/www">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes Includes FollowSymLinks MultiViews
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
na
<IfModule dir_module>
DirectoryIndex index.html index.htm index.php index.php5
</IfModule>
na konec vložíme
LoadModule php5_module "e:/server/php/php5apache2_2.dll" AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps AddType application/x-httpd-php phtml php PHPIniDir "E:\server\php\php.ini"
short_open_tag = Off
na
short_open_tag = On
;extension_dir = "./"
na
extension_dir = "E:\server/php/ext"
a odstraníme středníky před řádkami:
extension=php_bz2.dll extension=php_curl.dll extension=php_fileinfo.dll extension=php_gd2.dll extension=php_gettext.dll extension=php_gmp.dll extension=php_mbstring.dll extension=php_exif.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_openssl.dll extension=php_pdo_mysql.dll extension=php_pdo_odbc.dll extension=php_soap.dll extension=php_sockets.dll extension=php_tidy.dll extension=php_xmlrpc.dll extension=php_xsl.dllnastávíme čas
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =
; http://php.net/date.default-latitude
;date.default_latitude = 31.7667
; http://php.net/date.default-longitude
;date.default_longitude = 35.2333
; http://php.net/date.sunrise-zenith
;date.sunrise_zenith = 90.583333
; http://php.net/date.sunset-zenith
;date.sunset_zenith = 90.583333
na
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Europe/Prague
date.default_latitude = 49.475000
date.default_longitude = 17.116667
date.sunrise_zenith = 90.583333
date.sunset_zenith = 90.583333
$cfg['blowfish_secret'] = 'abcd'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
/*
* Servers configuration
*/
$i = 0;
/*
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '********'; // use here your password
$cfg['Servers'][$i]['auth_type'] = 'config';
//$cfg['Servers'][$i]['auth_type'] = 'cookie';
Doplňime 3 řádky se jménem, heslem a způsobem připojeni.
Jméno nechejte root, v pole password zadejte heslo,
které jste zadávali při instalaci MySQL a způsob bude
config, to znamená, že budeme furt připojeni k serveru.
Nakonec zakomentujeme auth_type cookie, to udělame dvěma lomítkami na začátku řádku.
Uložíme tento soubor jako config.inc.php, do stejného adresáře.