Topic on Project:Support desk

Moved Website, uploads going to both old and new directories

6
Whytekong (talkcontribs)

Hello there,

I resolved my previous post and opened a new one because I had gotten off topic from the original title.

  • Apache/2.2.16 (Debian)
  • MySQL client version: 5.1.49
  • MediaWIki 1.20.3 (it appears)

I had my wiki running on the /var directory but it filled up. I backed up my mysql database and rysnc'd my /var directory over to my /home directory where I have more space. I changed the data-dir variable in mysql conf over to /home/lib/mysql and updated my apache configurations to point over to the new /home directory.

Now my issue is that when i upload pdf's to my wiki, 66 mB to be precise, not all of the data is moving into my /home directory. I ran df before and after uploading the pdf's and data used increased in both /home and /var. Any thoughts as to why this would happen? I tried to  manually set the uploadpath but it kills my image and pdf thumbnails. Like i can still access the files at http://heritage.apegm.mb.ca/images/ but they dont work on the site. Did i miss a setting i need to change in mysql or are there any configuration files in the extensions of my wiki that would be doing this?

Thanks for any help,

Trent

This wiki will be the death of me.

Ciencia Al Poder (talkcontribs)
Whytekong (talkcontribs)

yes, changed $wgUploadPath and $wgUploadDirectory both to "{IP}/images/" I believe.

Ciencia Al Poder (talkcontribs)

$wgUploadDirectory should be ok, but $wgUploadPath must not be set with {$IP}!

Whytekong (talkcontribs)

Oh? Why is that? Also how should I set it?

Ciencia Al Poder (talkcontribs)

$wgUploadPath is the path seen from the web browser. {$IP} points to an absolute path for the filesystem. $wgUploadPath can be left unset if the upload directory hasn't been changed.

Your images point to URLs like http://heritage.apegm.mb.ca/img_auth.php/5/55/Early_Whiteshell.jpg giving an Access denied error. I assume you set up this accordingly for Manual:Image Authorization. In that case that's OK because I'm not logged in, so I shouldn't see those images.

Reply to "Moved Website, uploads going to both old and new directories"