jamesknochel
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Image files upload but do not appearHi Repeat,
I went to install the latest version of WordPress on my Debian VPS, and I think I found my problem. Look at this bug I found for the debian wordpress package:
Uploads do not work Bug #250163
Binary package hint: wordpress
I’m using wordpress version 2.3.3-1ubuntu1 on Hardy Heron.
Uploads do not work with the package, since the web server can’t write to the uploads directory.
After a bit of research, it does not appear that this situation is fixable without either patching WordPress or employing an entirely different deployment scheme. The package puts the WordPress source files in /usr/share/wordpress, and sets ABSPATH to this directory in /etc/wordpress/wp-config.php. WordPress expects the uploads path to be within the tree in which it is installed; if you look at the WordPress source, it appends the uploads path to ABSPATH to get the full path. This would seem to me to require all installations of WordPress to have their own copies of the source tree.
I can find no workaround other than installing WordPress manually in each necessary document root.
–https://bugs.launchpad.net/ubuntu/+source/wordpress/+bug/250163
Cpanel is a unix web hosting control panel. Do you know what operating system your server runs?
You said:
I tried to do the auto upgrade but it kept failing.This was also the case for me, because I was using the debian package. Talk to your host, and see if they installed the Debian package on your machine.
-James Knochel
Forum: Fixing WordPress
In reply to: Image files upload but do not appearHi repeat,
From your description, it sounds like I’m having the same problem.
I can upload a file. It shows up in the /srv/www/wp-uploads/teslabox.com/2010/ directory, but my access.log has a 404 when I try to request the file.
1.22.333.4 teslabox.com [02/Jan/2011:15:48:41 -0800] "GET /wp-uploads/2010/06/MYT-engine-640-150x150.jpg HTTP/1.1" ****404**** 2455 "http://teslabox.com/wp-admin/upload.php" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729)" # ls /srv/www/wp-uploads/teslabox.com/2010/06/ MYT-engine-640-150x150.jpgI’m running two sites (w/ separate mysql tables) off the same wordpress directory. $upload_path is set to the correct directory in both config-?????.com.php files. Files do appear there when they’re uploaded, and a 2011 directory just appeared in both my sites’ /srv/www/wp-uploads/???????.com/ directories
Any insight into how WordPress maps the requested url to the filesystem would be appreciated!
[Sun Jan 02 15:35:35 2011] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch configured -- resuming normal operationssincerely,
James Knochel
teslabox.com