Thx , do you have a link I tried it with google but I found nothing usefull so far …… I am not sure if I answered correctly it´s my first time with a mailinglist
Greetz Stephan
There is a maintenance script which, IIRC, dumps the entire content of the wiki as a massive XML file. You could use this, and just back up the users tables if you wanted to cut down on the size of the file. Never tried this, however, so I don't know if it works; I'd guess it does, but...
Rob Church
On 27/09/05, Weishaupt, Stephan weishaupt@ramada.de wrote:
Hello i have a big problem:
(version in my own forum with screenshots http://forum.darklevel.org/viewtopic.php?p=15195#15195)
i backup via phpmyadmin and everything seems to be fine ....
Than i try to import the sql file via phpmyadmin and getting first trouble cause i have a 2mb limit but than i tried a diffrent host and there i get a error 1071 - Specified key was too long; max key length is 1000 bytes
The third thing i tried is:
I set up an sql server at my workstation via xampp than than i created via command line a new table and than i loaded the sql file in it.
I had a few errors but first everything look fine all 26 tables were build ..... than i tried to acess the wiki and just the headlines are there everything else is gone :-(
Greetz Stephan
It's in the /maintenance folder.
Rob Church
On 27/09/05, Stephan Weishaupt stephan.weishaupt@gmail.com wrote:
Thx , do you have a link I tried it with google but I found nothing usefull so far …… I am not sure if I answered correctly it´s my first time with a mailinglist
Greetz Stephan
There is a maintenance script which, IIRC, dumps the entire content of the wiki as a massive XML file. You could use this, and just back up the users tables if you wanted to cut down on the size of the file. Never tried this, however, so I don't know if it works; I'd guess it does, but...
Rob Church
On 27/09/05, Weishaupt, Stephan weishaupt@ramada.de wrote:
Hello i have a big problem:
(version in my own forum with screenshots http://forum.darklevel.org/viewtopic.php?p=15195#15195)
i backup via phpmyadmin and everything seems to be fine ....
Than i try to import the sql file via phpmyadmin and getting first trouble cause i have a 2mb limit but than i tried a diffrent host and there i get a error 1071 - Specified key was too long; max key length is 1000 bytes
The third thing i tried is:
I set up an sql server at my workstation via xampp than than i created via command line a new table and than i loaded the sql file in it.
I had a few errors but first everything look fine all 26 tables were build ..... than i tried to acess the wiki and just the headlines are there everything else is gone :-(
Greetz Stephan
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
oh yes i found it too bad that i ve no ssh acces to my webserver ..... is it possible that thre is a bug if i export via Special:Export and paste all pages in there the script builds not a valid xml file if i export via Special:Export/Name everything is fine
thx a lot so far
greetz Stephan
2005/9/27, Rob Church robchur@gmail.com:
It's in the /maintenance folder.
Rob Church
On 27/09/05, Stephan Weishaupt stephan.weishaupt@gmail.com wrote:
Thx , do you have a link I tried it with google but I found nothing usefull so far …… I am not sure if I answered correctly it´s my first time with a mailinglist
Greetz Stephan
There is a maintenance script which, IIRC, dumps the entire content of the wiki as a massive XML file. You could use this, and just back up the users tables if you wanted to cut down on the size of the file. Never tried this, however, so I don't know if it works; I'd guess it does, but...
Rob Church
On 27/09/05, Weishaupt, Stephan weishaupt@ramada.de wrote:
Hello i have a big problem:
(version in my own forum with screenshots http://forum.darklevel.org/viewtopic.php?p=15195#15195)
i backup via phpmyadmin and everything seems to be fine ....
Than i try to import the sql file via phpmyadmin and getting first trouble cause i have a 2mb limit but than i tried a diffrent host and there i get a error 1071 - Specified key was too long; max key length is 1000 bytes
The third thing i tried is:
I set up an sql server at my workstation via xampp than than i created via command line a new table and than i loaded the sql file in it.
I had a few errors but first everything look fine all 26 tables were build ..... than i tried to acess the wiki and just the headlines are there everything else is gone :-(
Greetz Stephan
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Somewhere I suggested to someone else that you could mash up the scripts to allow them to be run over the web. My recommendations for this would then be:
* Take out the requirement for command-line parameters and use $_GET variables to pass instructions to the script * Also require a nonadvertised secret value via $_GET, e.g. the script must be called with &mysecretkey=9509450-93059094503-90 in order to work * Only ever have the maintenance folder uploaded when it's needed OR protect it with HTTP folder protection under Apache, etc.
Rob Church
On 28/09/05, Stephan Weishaupt stephan.weishaupt@gmail.com wrote:
oh yes i found it too bad that i ve no ssh acces to my webserver ..... is it possible that thre is a bug if i export via Special:Export and paste all pages in there the script builds not a valid xml file if i export via Special:Export/Name everything is fine
thx a lot so far
greetz Stephan
2005/9/27, Rob Church robchur@gmail.com:
It's in the /maintenance folder.
Rob Church
On 27/09/05, Stephan Weishaupt stephan.weishaupt@gmail.com wrote:
Thx , do you have a link I tried it with google but I found nothing usefull so far …… I am not sure if I answered correctly it´s my first time with a mailinglist
Greetz Stephan
There is a maintenance script which, IIRC, dumps the entire content of the wiki as a massive XML file. You could use this, and just back up the users tables if you wanted to cut down on the size of the file. Never tried this, however, so I don't know if it works; I'd guess it does, but...
Rob Church
On 27/09/05, Weishaupt, Stephan weishaupt@ramada.de wrote:
Hello i have a big problem:
(version in my own forum with screenshots http://forum.darklevel.org/viewtopic.php?p=15195#15195)
i backup via phpmyadmin and everything seems to be fine ....
Than i try to import the sql file via phpmyadmin and getting first trouble cause i have a 2mb limit but than i tried a diffrent host and there i get a error 1071 - Specified key was too long; max key length is 1000 bytes
The third thing i tried is:
I set up an sql server at my workstation via xampp than than i created via command line a new table and than i loaded the sql file in it.
I had a few errors but first everything look fine all 26 tables were build ..... than i tried to acess the wiki and just the headlines are there everything else is gone :-(
Greetz Stephan
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 9/28/05 1:14 PM, "Rob Church" robchur@gmail.com wrote:
Somewhere I suggested to someone else that you could mash up the
scripts to
allow them to be run over the web. My recommendations for
this would then
be:
- Take out the requirement for command-line parameters and use
$_GET
variables to pass instructions to the script
- Also require a
nonadvertised secret value via $_GET, e.g. the script
must be called with
&mysecretkey=9509450-93059094503-90 in order to
work
- Only ever have the
maintenance folder uploaded when it's needed OR
protect it with HTTP folder
protection under Apache, etc.
The second bullet is not very secure with regard to (e.g.) net snooping. This problem can be alleviated if you can run the site (or at least the maintenance scripts) via SSL.
If not SSL, you could use this plan (more secure than passing a key in the open, but more work):
A) Select a shared secret value (string).
B) Write a script to run locally on the desktop to create a Message Authentication Code (MAC) by doing an MD5 hash on the parameters, plus a timestamp, plus the shared secret. Pass the parameters, the timestamp and the MAC in the query string (but NOT the shared secret... Duh!).
C) Include at the top of the maintenance script a step that recreates the MAC using the parameters, the timestamp, and the shared secret (hard-coded in the script, read in from a server-based file, etc.) If the recreated MAC does not match the passed MAC, the message is inauthentic and execution should stop. This step assures that whatever system prepared the MAC knew the shared secret (which should be only your system, right?), or if not (stolen token), that the whole query string was passed with no values altered.
D) If the MAC's match, the timestamp should be checked against the current time for a reasonable delay (we often use 90 seconds). This helps protect against "replay" attacks, where a MAC is stolen and re-used.
It's really not that much code if you have an MD5-creating library available (check Google). We have done it for other systems, but have no need for MediaWiki (we just "ssh" in -- so lucky!).
-- Joshua
mediawiki-l@lists.wikimedia.org