Sorry, another question on batch uploading images using "rebuildImages.php"

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Sorry, another question on batch uploading images using "rebuildImages.php"

Ken McDonald-2
Given that we have full access to our server, it appears to me that we
should be able to batch upload the images from our Moin wiki using the
"rebuildImages.php" script. Here are a few lines of comments from the
start of this script:

 * Script to update image metadata records
 *
 * Usage: php rebuildImages.php [--missing] [--dry-run]
 * Options:
 *   --missing  Crawl the uploads dir for images without records, and
 *              add them only.
 *

Unfortunately, I have no idea what or where the "uploads dir" is. To put
it more accurately, I don't know where or how on the commandline to
specify the location of the images to upload. I've looked through both
of the other files imported into this script, but without enlightenment
:-(. Could anyone tell me how to get past this problem?

Thanks,
Ken
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Sorry, another question on batch uploading images using "rebuildImages.php"

Elliott F. Cable
Dir = directory = folder. The 'Uploads' folder, in you're mediawiki  
root folder (the main folder with the 'index.php' file directly in  
it) is where the images go.

On May 16, 2006, at 1:28 PM, Ken McDonald wrote:

> Given that we have full access to our server, it appears to me that we
> should be able to batch upload the images from our Moin wiki using the
> "rebuildImages.php" script. Here are a few lines of comments from the
> start of this script:
>
>  * Script to update image metadata records
>  *
>  * Usage: php rebuildImages.php [--missing] [--dry-run]
>  * Options:
>  *   --missing  Crawl the uploads dir for images without records, and
>  *              add them only.
>  *
>
> Unfortunately, I have no idea what or where the "uploads dir" is.  
> To put
> it more accurately, I don't know where or how on the commandline to
> specify the location of the images to upload. I've looked through both
> of the other files imported into this script, but without  
> enlightenment
> :-(. Could anyone tell me how to get past this problem?
>
> Thanks,
> Ken
> _______________________________________________
> MediaWiki-l mailing list
> [hidden email]
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Yet another question on batch uploading images using "rebuildImages.php"

Ken McDonald-2
Many thanks, this wasn't clear because there was no 'uploads' directory
in the main MW directory. Presumably it doesn't get created unless
necessary :-) I created the appropriate directory and moved the images
into it.

Having gotten past this difficult, the next one is a permissions
problem. Here is the command and resulting output:

-------------
172:~/Sites/mediawiki-1.6.5 Ken$ sudo php maintenance/rebuildImages.php
--missing

<h1><img src='/~Ken/mediawiki-1.6.5/skins/common/images/wiki.png'
style='float:left;margin-right:1em' alt=''>ZBrushInfo has a
problem</h1><p><strong>Sorry! This site is experiencing technical
difficulties.</strong></p><p>Try waiting a few minutes and
reloading.</p><p><small>(Can't contact the database server: Access
denied for user 'root'@'localhost' (using password: NO)
(127.0.0.1))</small></p>17
--------------

I've inserted a blank line to make clear the delineation between the
input and output. Also note that I tried it both with and without
'sudo', and issued the command from both the main directory and from the
'maintenance' directory. To make it clear, the directory containing the
images was maintenance/../uploads

I do of course know my name and password for the site (actually it's a
test site running on my own machine), but I have no idea where the
rebuildImages script would get this information from. There don't seem
to be any command-line args. Again, could someone be kind enough to
provide suggestions?


Your obvious newbie,
Ken McDonald

Elliott F. Cable wrote:

> Dir = directory = folder. The 'Uploads' folder, in you're mediawiki  
> root folder (the main folder with the 'index.php' file directly in  
> it) is where the images go.
>
> On May 16, 2006, at 1:28 PM, Ken McDonald wrote:
>
>  
>> Given that we have full access to our server, it appears to me that we
>> should be able to batch upload the images from our Moin wiki using the
>> "rebuildImages.php" script. Here are a few lines of comments from the
>> start of this script:
>>
>>  * Script to update image metadata records
>>  *
>>  * Usage: php rebuildImages.php [--missing] [--dry-run]
>>  * Options:
>>  *   --missing  Crawl the uploads dir for images without records, and
>>  *              add them only.
>>  *
>>
>> Unfortunately, I have no idea what or where the "uploads dir" is.  
>> To put
>> it more accurately, I don't know where or how on the commandline to
>> specify the location of the images to upload. I've looked through both
>> of the other files imported into this script, but without  
>> enlightenment
>> :-(. Could anyone tell me how to get past this problem?
>>
>> Thanks,
>> Ken
>> _______________________________________________
>> MediaWiki-l mailing list
>> [hidden email]
>> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>>    
>
> _______________________________________________
> MediaWiki-l mailing list
> [hidden email]
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
>
>  

_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Yet another question on batch uploading images using "rebuildImages.php"

Rob Church
On 16/05/06, Ken McDonald <[hidden email]> wrote:
> Many thanks, this wasn't clear because there was no 'uploads' directory
> in the main MW directory. Presumably it doesn't get created unless
> necessary :-) I created the appropriate directory and moved the images
> into it.
>
> Having gotten past this difficult, the next one is a permissions
> problem. Here is the command and resulting output:

There should be a README in the maintenance dir. Read it. If not,
here's a hint. Look at AdminSettings.php in the wiki root.


Rob Church
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Yet another question on batch uploading images using "rebuildImages.php"

Elliott F. Cable
What he didn't way, for whatever reason: put you're database info in  
the AdminSettings.php file in the same directory as uploads and  
maintenance (If you're wiki is in /wiki/ so maintenance is in /wiki/
maintenance/ and uploads are at /wiki/uploads/, try looking at /wiki/
AdminSettings.php).

On May 16, 2006, at 2:28 PM, Rob Church wrote:

> On 16/05/06, Ken McDonald <[hidden email]> wrote:
>> Many thanks, this wasn't clear because there was no 'uploads'  
>> directory
>> in the main MW directory. Presumably it doesn't get created unless
>> necessary :-) I created the appropriate directory and moved the  
>> images
>> into it.
>>
>> Having gotten past this difficult, the next one is a permissions
>> problem. Here is the command and resulting output:
>
> There should be a README in the maintenance dir. Read it. If not,
> here's a hint. Look at AdminSettings.php in the wiki root.
>
>
> Rob Church
> _______________________________________________
> MediaWiki-l mailing list
> [hidden email]
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l