Fórum Ubuntu CZ/SK

Ostatní => Ubuntu Server => Téma založeno: hoffmann 14 Srpna 2011, 10:29:33

Název: instalace MediaWiki
Přispěvatel: hoffmann 14 Srpna 2011, 10:29:33
Zdravim Vas!
Uz nekolik tydnu si nemuzu poradit s instalaci MediaWiki na server (Debian). Nebezi ani na lokalnim serveru ani na pronajatem v datacentru. MediaWiki system otestuje a napise, ze system vyhovuje, potom vyplnim potrebne udaje, MediaWiki se pripoji k databazi a vytvori potrebne tabulky. Kdyz chce v zaveru vytvorit soubor LocalSettings.php tak hodi chybu, ze se nelze k databazi pripojit! Zkousel jsem co se dalo. Do pole adresa databazoveho serveru jsem zadaval localhost, ip adresu, marne. Mam stazenych poslednich nekolik verzi a nejede ani jedna. Stale stejny problem. Prestashop, Joomla, wordpress atd. naprosto bez problemu. Zajimave je, ze tabulky vytvori a kdyz dam spravne prihlasovaci udaje k databazi tak hodi chybu

Kód: [Vybrat]
(Can't contact the database server: Unknown error (localhost))

Kdyz dam chybne udaje tak napise spravne, ze
Kód: [Vybrat]
DB connection error: Access denied for user 'domena'@'localhost' (using password: NO) (localhost).
Check the host, username and password and try again.


Vedel by nekdo kde je zakopany pes? Uz mi ten produkt leze krkem!  :'(  Predem dekuji.

PHP Version 5.2.6-1+lenny13
Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g
MySql 5.0.51a

Zkousene verze MediaWiki
1.17.0
1.16.12
1.16.2
1.16.0
1.5.8
1.5.5
1.5.3
Název: Re: instalace MediaWiki
Přispěvatel: starenka 14 Srpna 2011, 10:56:56
ted jsem to nainstaloval u sebe naprosto bez problemu s default nastavenima

Kód: [Vybrat]
$wgDBtype           = "mysql";
$wgDBserver         = "localhost";
$wgDBname           = "my_wiki";
$wgDBuser           = "root";
$wgDBpassword       = "";

# MySQL specific settings
$wgDBprefix         = "";

# MySQL table options to use during installation or update
$wgDBTableOptions   = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = false;

Kód: [Vybrat]
starenka@kosmik1:/junk$ dpkg -l php5-cli
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                               Version                            Description
+++-==================================-==================================-====================================================================================
ii  php5-cli                           5.3.6-13                           command-line interpreter for the php5 scripting language
starenka@kosmik1:/junk$ dpkg -l mysql-server
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                               Version                            Description
+++-==================================-==================================-====================================================================================
ii  mysql-server                       5.1.58-1                           MySQL database server (metapackage depending on the latest version)

Nemas treba omezenej pocet spojeni na db? (ale to by ta hlaska snad rekla)
Název: Re: instalace MediaWiki
Přispěvatel: starenka 14 Srpna 2011, 11:04:29
chtel sem to vycmuchat ve zdrojaku, ale je to docela bastl, takze jsme to po 5 minutach vzdal. Kdyby ses chtel pobavit tak, includes/db/Database.php a DatabaseMysql.php
Název: Re: instalace MediaWiki
Přispěvatel: hoffmann 14 Srpna 2011, 11:08:18
Kód: [Vybrat]
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}

## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;

$wgSitename      = "Test";

## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath       = "/wiki";
$wgScriptExtension  = ".php";

## The relative URL path to the skins directory
$wgStylePath        = "$wgScriptPath/skins";

## The relative URL path to the logo.  Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo             = "$wgStylePath/common/images/wiki.png";

## UPO means: this is also a user preference option

$wgEnableEmail      = true;
$wgEnableUserEmail  = true; # UPO

$wgEmergencyContact = "apache@localhost";
$wgPasswordSender   = "apache@localhost";

$wgEnotifUserTalk      = false; # UPO
$wgEnotifWatchlist     = false; # UPO
$wgEmailAuthentication = true;

## Database settings
$wgDBtype           = "mysql";
$wgDBserver         = "localhost";
$wgDBname           = "test";
$wgDBuser           = "test";
$wgDBpassword       = "";

# MySQL specific settings
$wgDBprefix         = "wiki_";

# MySQL table options to use during installation or update
$wgDBTableOptions   = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = false;

Pokud vim tak pocet pripojeni omezen nemam. Ja proste nechapu, ze tabulky vytvori, ale potom je to v ... Kdyby ani tabulky nevytvoril tak je problem u mne.
Název: Re: instalace MediaWiki
Přispěvatel: starenka 14 Srpna 2011, 11:12:38
blbej dotaz, ale musi padnout: ten user test NAHODOU nema nahodou spatne nastaveny prava (ale to by mysql melo zarvat jinou hlasku tusim)...
Název: Re: instalace MediaWiki
Přispěvatel: hoffmann 14 Srpna 2011, 11:18:45
Blbej dotaz to neni. Prava jsou ok. Instaloval jsem tam ted jine aplikace a v pohode, jen tady ten nerad nejede.  :-\