Project:Support desk
Welcome to MediaWiki.org's Support desk, the central on-wiki place to ask MediaWiki questions!
The greater purpose of this page is to make our Manual and other available help so good that you do not have to come here to ask questions, or making them easier to find.
There are other ways for of communication as well (IRC, mailing lists etc.). Read more here.
Before you post
- Please read through our technical manual and end-user help.
- Project:Current issues is where you should discuss issues about the mediawiki.org website itself.
- If your question is about an extension, consider posting your question at that extension's talk page instead.
- Project:Sandbox: Test wiki editing.
Post a new question
- To help us answer your questions, please always indicate which versions you are using:
- MediaWiki (reported by your wiki's Special:Version page)
- PHP (likewise)
- Database (likewise, e.g. MySQL 5.5)
- Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
- To start a new thread, click "Start a new discussion".
Archiving topics
Topics are automatically archived when they have been inactive for three weeks. If a question you have asked is approaching this limit and still has not been answered, please 'bump' it to prevent it being archived. However do not 'bump' for other reasons.
- [View source↑]
- [History↑]
Contents
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |
Hello,
I am inexperienced with Vuze but have been reading through everything on the website to try to get my files to seed. I did see seeds available but all files were simply waiting in the queue for days. The instructions that I have found give information based on what type of smiley face is shown, but I had no face at all. In an attempt to follow instructions, I went under Advanced settings and clicked on Connections>Proxy>Enable proxying of tracker communication. This finally prompted some files to begin seeding, but for every one I received the error message "Invalid port." Eventually, all files went back into the queue. Is there something I need to alter with my firewall to get files to seed?
Thanks for any assistance you can offer.
Sorry but i searched now a lot on this pages and didnt find any hint. How can i delete my account?
Thanks for help!
newshenk
Since mediawiki does not support user deletion, you can't delete user account in pure mediawiki setups. User deletion may cause many problem with wiki's historic features, like page history or recent changes and logs etc. But if you really want to remove an account, you may use Extension:UserMerge. A detailed information is in extension's page.
I use mediawiki through a Bitnami stack on a Win 8.1 machine. I have an old mysql database (from March 2014) and I am trying to access it after installing a fresh mediawiki stack.
Everything seems to be working fine(Apache and Mysql servers are running), I have changed all the paths/variables (or so I believe). Yet, when I try to access my wiki (http://127.0.0.1:1070/mediawiki/index.php) I get the
(Cannot contact the database server)
page.
What is the best way to troubleshoot this?
I don't even know where the error logs for this type of trouble get stored in my stack.
Thanks.
This error happens when MediaWiki has a problem with the database credentials. The database credentials are saved in LocalSettings.php. I guess that one of them is wrong.
Well, that's the weird thing.
I looked at all the settings in the LocalSettings from my March2014 archive - especially $wgDBuser $wgDBpassword and made sure they were matched.
Now I tried to actually copy over the LocalSettings from March2014 to my new install to see what would happen. Interestingly enough, I started seeing it trying to do "Login Required" then "Waiting" and finally getting to HTTP 500 Internal Server Error, not the (cannot contact the database server)
Ok, let me be thoroughː There are various differences between this LocalSettings file and the old one.
The old LocalSettings Contains (but the new one doesn't)ː
# Disable reading by anonymous users $wgGroupPermissions['*']['read'] = false; $wgWhitelistRead = array ("Special:Userlogin", "MediaWiki:Common.css", "MediaWiki:Common.js", "MediaWiki:Monobook.css", "MediaWiki:Monobook.js", "-"); $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createaccount'] = false;
The new LocalSettings contains (but the old one doesn't)ː
require_once "$IP/skins/Vector/Vector.php"; ... $wgPhpCli = "C:/Bitnami/mediawiki-1.24.1-0/php\php.exe";
Ah... Found one important difference - done due to my tired state, no doubt.
$wgDBname = "mediawiki_bitnami";
I accidentally reversed it to "bitnami_mediawiki" in the new LocalSettings.
So, now at least I get HTTP 500 page with the new LocalSettings.
I also don't know if this matters
Old LocalSettingsː
$wgSitename = "Fred's Wiki!"; $wgMetaNamespace = "Fred's Wiki!";
new LocalSettingsː
$wgSitename = "fred's Wiki!"; $wgMetaNamespace = "fred's Wiki!";
Certainly, no difference either way.
so, how would I now troubleshoot HTTP500?
A server error 500 actually does not look better than the MediaWiki error message (Cannot contact the database server), but worse.
For database access, of the variables you posted, only $wgDBname is relevant. The others do not matter.
Important for DB access are $wgDBserver, $wgDBname, $wgDBpassword and $wgDBuser. See the according manual pages here on mediawiki.org for more informaton on those variables and their correct values! Note that these values depend on the MySQL server. So if you are using another server, the servername, the databasename, the DB username and the password will most likely be different from what you used before.
After double-checking/fixing these variables, what do you get?
For some strange reason I keep getting different error pages, without having touched anything myself overnightː
This page can’t be displayed
•Make sure the web address http://127.0.0.1:1070 is correct.
I looked in my .err file inside mysql/data/ folder and noticed that the last set of error messages are as followsː
150214 9:44:53 [ERROR] Missing system table mysql.proxies_priv; please run mysql_upgrade to create it 150214 9:44:53 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist 150214 9:44:53 [ERROR] Column count of mysql.db is wrong. Expected 22, found 20. Created with MySQL 50130, now running 50540. Please use mysql_upgrade to fix this error. 150214 9:44:53 [ERROR] mysql.user has no `Event_priv` column at position 29 150214 9:44:53 [ERROR] Cannot open mysql.event 150214 9:44:53 [ERROR] Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
So, i figured, let me try to run "mysql_upgrade".
I did and it tried to use mysqlcheck.exe but my bitnami stack doesn't provide this binary, so the upgrade failed.
C:\Bitnami\mediawiki-1.24.1-0\mysql\bin>mysql_upgrade.exe Looking for 'mysql.exe' as: C:\Bitnami\mediawiki-1.24.1-0\mysql\bin\mysql.exe Looking for 'mysqlcheck.exe' as: C:\Bitnami\mediawiki-1.24.1-0\mysql\bin\mysqlcheck.exe FATAL ERROR: Upgrade failed
So in fact your MySQL installation is broken and mysql_upgrade.exe does not tell you anything helpful as to why it fails.
If you have nothing else in the MySQL server I guess this is the case as it is broken anyway), then I would do the following: Use the old MySQL server to export your database. Result should be a database dump file. Then set up the new MySQL server just doing a new install. This should give you a working MySQL server without having to upgrade anything. Afterwards import your DB again from the dump.
Good morning. I seem to be having some issues. I get the following when trying to upload a file: Internal Error [3a9c03ba] 2015-02-15 15:37:53: Fatal exception of type MWException
Any help would be appreciated.
Please add $wgShowExceptionDetails = true;
to your LocalSettings.php to see the ful error message and a stack trace. This error message and stack trace you should post here :)
I just got that enabled: [94bbdfd6] /index.php/Special:Upload Exception from line 1871 of /var/www/html/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'Doink.png.'
Backtrace:
- 0 /var/www/html/includes/filerepo/file/LocalFile.php(1174): LocalFile->lock()
- 1 /var/www/html/includes/upload/UploadBase.php(738): LocalFile->upload(string, string, string, integer, array, boolean, User)
- 2 /var/www/html/includes/specials/SpecialUpload.php(467): UploadBase->performUpload(string, string, boolean, User)
- 3 /var/www/html/includes/specials/SpecialUpload.php(186): SpecialUpload->processUpload()
- 4 /var/www/html/includes/specialpage/SpecialPage.php(363): SpecialUpload->execute(NULL)
- 5 /var/www/html/includes/specialpage/SpecialPageFactory.php(584): SpecialPage->run(NULL)
- 6 /var/www/html/includes/MediaWiki.php(275): SpecialPageFactory::executePath(Title, RequestContext)
- 7 /var/www/html/includes/MediaWiki.php(584): MediaWiki->performRequest()
- 8 /var/www/html/includes/MediaWiki.php(435): MediaWiki->main()
- 9 /var/www/html/index.php(46): MediaWiki->run()
- 10 {main}
On the Vector skin I would like to hide the Toolbox for Anonymous users. How can I do that? Also is there any way to decide which links appear in the Toolbox as for exmaple I don't need the print link to show.
Thanks but that doesn't stop the Toolbox links appearing in the source code. Those links are hurtful to Search Engine Optimization. I would like to completely remove the Toolbox for users not logged in.
Any idea how? I found a tip on how to to that for the Monobook skin but that method doesn't work for Vector.
skins/Vector.php: I guess it's added via
private function renderPortals( $portals ) { ... if ( !isset( $portals['TOOLBOX'] ) ) { $portals['TOOLBOX'] = true; }
Try
private function renderPortals( $portals ) { global $wgUser; ... if ( !isset( $portals['TOOLBOX'] ) && $wgUser->isAllowed('move') ) { $portals['TOOLBOX'] = true; }
Adjust 'move' to the userright which loggedin users are allowed to and anons not.
In our wiki exists several updated files. By example File:myfile.jpg. Then myfile.jpg is located in ../images/c/cf/myfile.jpg. I need to open (or download) directly (from a php program) the myfile.jpg. How the program can get the full path for myfile.jpg (../images/c/cf/myfile.jpg)?.
To access the physical path from the same server, it should be as simple as construct it from your upload directory, the /c/cf/ part, and the filename.
The /c/cf/ part is the first and 2 first (respectively) md5 sum hash characters of the filename (myfile.jpg). This can be done with the md5() function.
@Ricordisamoa: Wonderful!, but the correct is:
http://path-to-your-wiki/index.php?title=Special:Redirect/file/myfile.jpg
Only if you don't have Short URLs set up.
A note to anyone else considering using this: The redirect will make it take longer for the file to start loading, and won't be cached (although the file which it redirects to will be).
Alternative, create Template:DirectFileOpen, with:
[http://path-to-your-wiki/index.php?title=Special:Redirect/file/{{{1}}} {{{2}}}]
That doesn't make any sense to do in a template. If you want a link directly to a file, you can just use [[Media:File.png]]
, and if you just want the URL you can use {{filepath:File.png}}
.
Thank you!
I changed: Template:DirectFileOpen:
[{{filepath:{{{1}}}}} {{{2}}}]
Because, perhaps it's easier write: {{DirectFileOpen|Filename|TextForFilename}} than [{{filepath:Filename}} TextForFilename].
Hi.
I know it may sound weird, but is it possible to configure/extend MediaWiki somehow so make it add categories out of certain linked articles? Let's say, if I refer [[Alice]] and [[Bob]], then [[Category:Alice]] and [[Category:Bob]] categories are added automatically. This question is a result of our wiki team discussion, where some teammates consider that "What links here" is not enough or visible enough for a regular user, and categories are better for navigation (IMHO, categorization may be considered a Sisyphus' work, whereas "What links here" is a zero-cost thing).
Your help is really appreciated. Thank you in advance.
In MW 1.24 variable styles which is defined in includes/OutputPage.php has been changed from public to protected. Because of this there is now a problem with extension wysiwyg where onBeforePageDisplay hook is trying to use $out->styles variable.
Only workaround which I have been able to find is to change type of variable "styles" back to "public". Does this cause some kind of security issues with MW ?
So far I have been unsuccessful with my attempts to "extend" visibility of protected variable "styles" from OutputPage.php to wysiwyg. Could some of you php experts give me a hint how this could be solved properly?
You should file a bug against MW for this. That way whatever is needed to fix it will be more likely to stick around in the future.
That said, you'll probably need to create an accessor and use it in the CKEditor code.
If you file a bug for this, I'll work on helping you fix it.
Alguna novedad sobre el tema, algún tio que pueda enviar paso a paso toda la instalación para mitigar esto.
I have opened this in MW bug tracker T76461.
Issue in github repo of wysiwyg.
Function onBeforePageDisplay of wysiwyg extension is trying to:
- read certain .css definitons from the page
- extract contents of each .css file and place it as inline style definition on page
- delete orginal -css definition from page
I was trying to debug this with MW1.24.
- For issue 1. I used function buildCssLinksArray of OutputPage.php. With my limited skills of php programming I was able to extract names of style sheets but unable to get all the other data needed (f.ex type of css).
- Issue 2. is not a problem because public function addInlineStyle is available in OutputPage.php.
- For issue 3. I was unable to find a solution.
Is it still possible to have above procedure in MW 1.24?
On the other hand... comments of code block (function onBeforePageDisplay, lines ~194-214) in wysiwyg is referring to some limitation of IE (after max.31 style sheets IE hangs). I do not know if this has been some limitation of some older version of IE or perhaps caused by old version of IE + old CKeditor together. So is this kind of reformatting for style sheets of page necessary at all?
Related code:
public static function onBeforePageDisplay( &$out, &$text ) { global $wgRequest, $wgScriptPath; //var_dump($out->styles); $action = $wgRequest->getText( 'action' ); if (! in_array($action, array('edit', 'submit'))) return $out; $inlineStyles = array(); foreach ( $out->styles as $key => $val ) { if (count($out->styles[$key]) > 0) { if (isset($out->styles[$key]['condition']) || isset($out->styles[$key]['dir']) || strpos($key, '?') !== false || strpos($key, 'jquery.fancybox') !== false) continue; $count = 1; $cssFile = dirname(__FILE__) . '/../../' . str_replace($wgScriptPath, '', $key, $count); $cssFile = str_replace('//', '/', $cssFile); if (isset($out->styles[$key]['media']) && file_exists($cssFile)) { $cssCont = file_get_contents($cssFile); if ($cssCont !== false) { if (! isset($inlineStyles[$out->styles[$key]['media']])) $inlineStyles[$out->styles[$key]['media']] = ''; $inlineStyles[$out->styles[$key]['media']] .= $cssCont."\n"; unset($out->styles[$key]); } } } } foreach($inlineStyles as $media => $css ) { $out->addInlineStyle( $css ); } return $out; }
I guess CKeditor should use ResourceLoader, which already concatenates all styles in a single request
I received a like error after installing the latest version of the WYSIWYG CK editor on MW 1.24. As suggested, changing the "$style" variable from "protected" to "public" solves the problem. So I would also be interested to know whether this presents a security issue.
The change from protected/private to public in a variable is not a security risk. The visibility of variables is just a coding practice to restrict the usage of such variables from external classes, so if you need to make a breaking change on a variable that's private or protected, you can be certain that it won't break external classes because they can't be using it directly.
But you should think about, that the maintainer of the code doesn't changed the visibility without any thoughts about it :) Maybe the variable changes unexpectedly if something happens, or will be set to null somewhere or will be renamed in a future version of the code. A private/protected variable is, mostly, private or protected because it shouldn't be (needed) to use outside the class (private) or in classes, that inherits this class.
But, like Ciencia Al Poder wrote, not really a security risk :)
Hey All,
I'am looking for a kind of TextInputField without any button. For instance the extension mediawiki Extension:Quiz comes with a TextInputField BUT with a button. I would like to youse this TextInputFields (or something similar) as a scratchpad for the language student (for my projects in de:wikibooks and es:wikilibros) - here is some example where I would like to integrate it. The input in the TextInputField must not be evaluated or further processed. it should just be possible for the reader (student) so type his inputs (befor he opens the solution to look for the correct results). Maybe some kind of mw:Extension:InputBox will do the same thing, BUT they all come with a button (that I am not able to suppress. Outside Wikipedia-world some kind of easy HTML-text would do this. Can somebody help me please.
Thanks, -Thiruna
It's less than optimal, but you can use CSS to hide buttons, for example, adding in MediaWiki:Common.css the following code:
.nobuttons input.searchboxSearchButton {display:none;}
And wrap the code of InputBox inside a div with class="nobuttons"
, the buttons will be hidden.
That, at least would be easy to do on a WMF wiki where they may not want to add extensions just for this.
I need this InputBoxes for spanisch wikilibros (and german wikibooks) ([1]). As far as I understand does a CSS-modifikation only function when every user writes it in his CSS. But there are many readers (especially IP-users) who can't do that stuff. Or does not every user have to change his CSS-settings?
Maybe it is possible to implement the Quiz-template from en:Wikiversity to es:Wikilibros and make the modifications that you suggested into the code. (I didn't really understood your code. sorry!) I had asked on es:Wikipedia for migration of the Quiz-template ([2]), but that's a problem too ([3]). (talk)
If you put that code in MediaWiki:Common.css, every user on the wiki would load it. Of course, you should ask a local sysop on those projects to add this CSS. See Manual:Interface/Stylesheets
How can I find certain URLs within my articles via the search?
I suppose that the search engine only finds URLs that are not included in [ ]
.
[1] for example finds the article. Whereas [2] doesn't find the URL - probably because it is included in [ ]
.
Any way to find an URL regardless of the surrounding wikitext?
Try insource:"URL" [1]
Hiya,
FreeBSD 10.1, apache 2.4.12, mysql 5.6.23, php 5.4.37. I upgraded from 1.16 to 1.19 (just installed newer mysql which allowed for the upgrade). Worked great. Upgraded from 1.19 to 1.23 and now when I load the wiki I get:
The requested URL /Main_Page was not found on this server.
Is this a simple change I missed in LocalSettings.php? I read a bunch of upgrade and release docs first. I don't see anything obvious in my apache error log..
The old wiki is up now, but it's a tad wonky since I believe the dbases were changed for the 1.23.
wiki.homedistiller.org
I can put the new/broken one in place if need be.
First: If you upgraded a dtabase, make sure that it no longer gets used by an older MediaWiki version. Using it wth an older version can (will?!) create wrong entries, which will only cause trouble!
As for the "Main_Page not found" issue, I can only guess:
From seeing the URL fragment "/Main_Page" I guess that you had short URLs set up, right? This is usually done in the .htaccess file. Have you moved this file to the according new location? I think that currently just the redirect to index.php is no longer happening. With other word: You still can access your-domain/index.php?title=Main_Page and it shows you a wiki page. Is that right?
Yes you are right that the full URL with index.php?title=Main_Page works just fine.
I have checked all my .htaccess files and the only one with anything other than deny statements is:
- cat images/.htaccess
- Protect against bug 28235
<IfModule rewrite_module>
RewriteEngine On RewriteCond %{QUERY_STRING} \.[a-z0-9]{1,4}(#|\?|$) [nocase] RewriteRule . - [forbidden]
</IfModule>
I have this set up as a vhost in httpd-vhosts.conf as wiki.homedistiller.org. My vhost entry:
<VirtualHost *:80>
ServerAdmin [email protected] DocumentRoot /usr/local/www/apache24/data/wiki ServerName wiki.homedistiller.org ErrorLog /var/log/httpd-error.log CustomLog /var/log/httpd-access.log combined ScriptAlias /cgi-bin/ "data/cgi-bin/"
</VirtualHost>
<Directory "/usr/local/www/apache24/data/wiki">
AllowOverride FileInfo Require all granted
</Directory>
What am I missing? I read the shorturl info and it seems maybe I have embedded bogus info into my wiki pages by using an old and not recommended method inadvertently? I've had this wiki up for years and am just now trying to bring it current.
No bogus, just a few lines of code, which are missing. Where exactly you had them before is hard to tell: They could have been inside the Apache server configuration or inside an .htaccess file.
So basically what you now have to do is set up short URLs as explained on that page: Manual:Short_URL/Apache. The .htaccess file for that has to be located outside of the wiki folder or with other words: In the parent of the parent of the images/ folder. It's all explained in Manual:Short_URL/Apache.
Hi, I was customizing the vector skin on my website, but I have a little problem to complete my design. I've been struggling with the tabs a lot of times. I want to change the border of the tabs, but when I've finally changed it, it change the background of the tabs as well. I've tried multiple things, and was even trying to figure it out at the map were the borders of the tabs are, but it ends up even worse. I hope you guys can help me out with this.
Thank you for your time.
This can simply be done with CSS. Vector is setting a background-image for div.vectorTabs span. This background image contains these blue lines, which are fading out towards the top. So this is what you have to change.
You can for example upload your own background image with dimensions 1x46px and set up according CSS rules in the wiki page MediaWiki:Vector inside your wiki to use it.
MediaWiki:Vector.css(!) is the actual name of the page. I would have fixed it, but mediawiki.org does not save changes to my previous post.
Tried that, but it takes the whole tab if the blue line is edited.
I got ten about 10k page level wiki using a "common" image wiki. Image files will be sent to "common" wiki server by nfs. However, thumbnail are actually render locally then send to "common". We would like the thumbnail request sent to "common" by $wgUploadStashScalerBaseUrl. But don't know how to set up a point to receive the requests.
I notice wikipedia using following configuration: $wgUploadStashScalerBaseUrl = "//{$wmfHostnames['upload']}/$site/$lang/thumb/temp";
But how the receive side receive and process the request? $wgThumbnailScriptPath to thumb.php?
Hello,
Is it possible to export some datas from wiki database as label and definitions (descriptions) and insert it directly inside my joomla wiki website? I've download the an API here, but It doesn't look like being develop for this usage. Now first, can you tell me more abour this possibility and how to proceed if possible.
Thanks in advance for assistance.
Win2k8 - IIS7
NTLM Auth extension with Honza's SpecialUserLogin.php fix - Extension_talk:Windows_NTLM_LDAP_Auto_Auth
MediaWiki 1.16.2
PHP 5.2.17 (isapi)
MySQL 5.5.9
I am getting a 500 response, and have run out of ideas for troubleshooting. The problem only shows up when I enable my config for LDAP authentication, but my ldap_debug.log file show authentication completing successfully
$wgShowExceptionDetails = true; is set in LocalSettings.php
I created a new account with DOMAINNAME\username (while my ldap stuff was disabled), and then recreated it, and now it just continuously redirects me to the login page (which is not used / does nothing while my ldap extension is on)
Again, if I authenticate (windows auth - NTLM) as any account which I have not explicity defined, I get http 500 response.
So it appears that there are 2 problems:
- Account auto creation with the NTLM extension is not working
- Something isn't being recognized during login, and it keeps redirecting me to the login page
Hello, I'm trying to add some information about my music career. How can I be accepted?
If you are speaking about "adding to the English Wikipedia", then you have to become noticable as per en:Wikipedia:Notability.
Also, it is not advisable to write about yourself, as per en:Wikipedia:Conflict of interest.
Hi..Box-header which used to work in earlier versions not working 1.24.1 ..Please help if any syntax change to done.
Hello!
I am little bit new in media wiki and now I am developing a extension. I would like to print a JSON response when it’s makes a request for one of my special pages, that the extension creates. The JSON response is not a content of Wikipedia page, it’s a public key that I want to print, and only that. I find for solutions but I don’t find nothing. What it’s the best way to print that? API, Jquery, Special pages?
Thanks in advance, David
What do you want to do exactly? What content you want to get from where and when? How do you want to get the JSON response?
I just want to do a "echo(json_encode($var));" but working correctly. I want to print a dinamic content that my extension creates, and the header must be set to application/json.
I still don't know, where you want to output this content and why? If you want to use it in another application, maybe it would be better to write a real Api module, instead of using a Specialpage (i think you will do that in the special page?) for it.
It sounds to me like you are writing your own custom script. When a web browser visits some particular url, you want your custom script to run, and *only* the stuff printed by your script returned to the browser, with the header "application/json".
If I understand you correctly, there are 2 things you need to do: (1) write a script that sets the header and prints out the JSON text, and (2) set things up so that script gets run when a user enters the special URI in his web browser.
Part 1 is pretty simple. Here's an example with "bash". I hope you will find it simple to translate to Python or PHP or your favorite language:
begin file "hello.sh":
#!/bin/bash # 2015-02-12: started by David Cary # for a question at # https://www.mediawiki.org/wiki/Project:Support_desk # released under CC0 1.0 License or later. echo 'Content-type: application/json' echo # empty line here is important for CGI echo '{' echo '"text": "Hello, world!"' echo '}' exit 0
end file "hello.sh".
Part 2 is not as complicated as you might think. Put your script in some convenient location on your web server -- perhaps in the same directory as your "LocalSettings.php" file.
The default ".htaccess" file that comes with Mediawiki already tells the Apache web server to run the Mediawiki "index.php" or "thumb.php" scripts only if a file does *not* already exist at that location. (That's what the "!-f" and "!-d" options do).
If you are lucky, this will "just work" -- test by typing the URI that corresponds to that file in some web browser.
If that web browser shows you a copy of that script, you know that you've typed the right URI; but you'll have to diddle with some settings (set the execute permission, etc.) to get Apache to *run* your script and send the output to the web browser, rather than simply *copy* your script to the web browser.
A while ago, my old computer died, killing my localhost wiki along with it. Luckily, I have a backup, but unfortunately it was made about a year before my wiki died (whoops). So here's the thing: my hard drive still works fine, and I've turned it into an external hard drive. Is it possible for me to restore the most recent version of my wiki based on the files in my old HDD? The only thing I'm not really sure about is MySQL. How would I restore those tables?
Old
OS: Windows XP
XAMPP (On My C: Drive): 1.7.4
Apache: 2.2.17
MediaWiki: Probably 1.18.5, but I can't check Special:Version until it's up and running again
PHP: 5.3.5
MySQL: 5.3.8
URL: N/A, Private wiki on localhost
Current
OS: Windows 8.1
XAMPP-Portable: 5.6.3
Apache: 2.2.4
MediaWiki: N/A
PHP: 5.6.3 (apache2handler)
MySQL: 5.6.21
URL: N/A, Private wiki on localhost
If you can still run the MySQL server on that harddisc, then you should just export the database. That also works with external tools like mysqldump.exe.
I can't seem to be able to run XAMPP (and thus Apache and MySQL) from the external hard drive, I guess because it's installed to the external hard drive (my old computer's C: Drive) but not to my new computer's C: Drive?
I already have XAMPP Portable running on a different external hard drive, and I'm currently using it to run a few other wikis, and the year-old backup of my main wiki.
If I try installing the old XAMPP containing my dead wiki to my new computer's C: Drive, will that installation conflict with the new XAMPP Portable that's connected from my other external hard drive?
Also, would I even be able to install my old XAMPP onto my new computer's C: Drive (considering that it's not XAMPP Portable)? If it helps, I could just install Apache and everything without using XAMPP, but I'm not sure if that would involve creating an entirely new instance of MySQL Community Server, in which case, I'd still need to import the old MySQL database into it.
And sorry if I'm being unclear on anything, I don't mind elaborating.
You could try to install XAMPP and copy (not move, so you have a backup intact in case of necessity) the mysql data files over the new installation, and pray for it to just work. Note that connecting to mysql will require you to use the old passwords, since passwords are in the old files.
This may not work at all, since someone told me mysql stores stupid things like OS and machine-specific information in the datafiles, making the move of datafiles from one computer to other impossible. I don't know if this has changed, though.
If you have further problems trying to make XAMPP recognize the old mysql data, you should probably ask on a XAMPP/mysql forum where people may have more specialized knowledgement about this than here.
Thanks, I'll give that a try! I've been looking around on Stack Overflow and similar sites, and it seems like it MAY be possible, but I'll definitely have to do some more reading up on it to make sure I do it right.
I really appreciate the help, guys!
So, I just want to mention for anyone else that ever has the same issue that I was successful, and managed to retrieve my old mysql database by following the process described here:
http://dustindavis.me/restoring-mysql-innodb-files-on-windows/
I didn't need to change the size of my log file because the new log file was as big as the old log file, but I followed everything else and it worked great.
![]() First page |
![]() Previous page |
![]() Next page |
![]() Last page |