Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-06-11 16:20:10
- cadoorley
- New Member
- Registered: 2006-05-08
- Posts: 9
Error when uploading images
I get the following error when I try to upload an image:
upload_err_tmp_dir
Upload error temporary directory?
I fear this has something to do with my server. I’ve just set up a dedicated server and am new at running a server. So I think I’m probably missing something minor. That said, the only thing I could think of was the permissions for the various folders. The following folders have been set to rwx-rwx-rwx (777):
httpdocs
httpdocs/images
httpdocs/files
httpdocs/textpattern
httpdocs/textpattern/tmp
Still… nothing. Any thoughts?
Offline
Re: Error when uploading images
In admin -> preferences -> advanced preferences -> set “Temporary directory path” to /path/to/httpdocs/textpattern/tmp (replace the /path/to part of course)
Offline
#3 2007-06-11 17:33:37
- cadoorley
- New Member
- Registered: 2006-05-08
- Posts: 9
Re: Error when uploading images
Hum… still getting the error. The url is included in the path to the directory. The full path is /usr/local/www/site.com/httpdocs/textpattern/tmp Is the dot in “.com” messing it up somehow?
Offline
Re: Error when uploading images
That shouldn’t be a problem. Can you post your diagnostics here (admin -> diagnostics)
Offline
#5 2007-06-11 17:53:02
- cadoorley
- New Member
- Registered: 2006-05-08
- Posts: 9
Re: Error when uploading images
Posted below. I’ve removed the URL and the IP address for security reasons.
Textpattern version: 4.0.4 (r1956)
Last Update: 2007-06-11 14:58:30/2006-08-31 21:47:58
Document root: /usr/local/www/vhosts/site.com/httpdocs
$path_to_site: /usr/local/www/vhosts/site.com/httpdocs
Textpattern path: /usr/local/www/vhosts/site.com/httpdocs/textpattern
Permanent link mode: section_title
open_basedir: /usr/local/www/vhosts/site.com/httpdocs:/tmp
Temporary directory path: /usr/local/www/vhosts/site.com/httpdocs/textpattern/tmp
Site URL: IP address removed
PHP version: 5.2.1
Server Local Time: 2007-06-11 13:51:01
MySQL: 5.0.37
Locale: en_US.UTF-8
Server: Apache/2.0.59 (FreeBSD) mod_python/3.3.1 Python/2.4.4 PHP/5.2.1 with Suhosin-Patch mod_jk/1.2.21 mod_ssl/2.0.59 OpenSSL/0.9.7e-p1 mod_perl/2.0.3 Perl/v5.8.8
Apache version: Apache/2.0.59 (FreeBSD) mod_python/3.3.1 Python/2.4.4 PHP/5.2.1 with Suhosin-Patch mod_jk/1.2.21 mod_ssl/2.0.59 OpenSSL/0.9.7e-p1 mod_perl/2.0.3 Perl/v5.8.8
PHP Server API: apache2handler
RFC 2616 headers:
Server OS: FreeBSD 6.1-RELEASE-p16
Pre-flight check:
————————————
Web Domain DNS lookup fails: IP address removed
————————————
.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
RewriteBase /
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
————————————
Offline
#6 2007-06-11 18:50:11
- cadoorley
- New Member
- Registered: 2006-05-08
- Posts: 9
Re: Error when uploading images
In an effort to figure this out, I’ve changed the permissions for the usr dir, local dir, www dir, vhosts dir and the site.com dir to 777. Still doesn’t upload images/files.
Offline
Re: Error when uploading images
I think you have to ask your hosting company to correctly set the “upload_tmp_dir” PHP configuration option so it allows uploading.
Offline
#8 2007-06-11 20:28:47
- cadoorley
- New Member
- Registered: 2006-05-08
- Posts: 9
Re: Error when uploading images
Nothing seems to be going my way. I located the php.ini file for the server and found the spot for file uploads. It reads as below:
- Whether to allow HTTP file uploads.
file_uploads = On
- Temporary directory for HTTP uploaded files (will use system default if not
- specified).
;upload_tmp_dir =
- Maximum allowed size for uploaded files.
upload_max_filesize = 2M
I’ve tried a number of different paths in the space for upload_tmp_dir but nothing seems to work. I know enough PHP to do includes and a few other basic stuff like that. This seems beyond me.
Frustrating, to say the least.
Offline
Re: Error when uploading images
try changing (remove the colon at the beginning!):
;upload_tmp_dir =
into:
upload_tmp_dir = /tmp
You may have to restart Apache (or whatever you use as webserver software) to make this change effective.
Last edited by ruud (2007-06-11 20:33:53)
Offline
#10 2007-06-11 23:16:53
- cadoorley
- New Member
- Registered: 2006-05-08
- Posts: 9
Re: Error when uploading images
Hazah! 10 hours later, it works. Thanks for you help ruud.
Offline
Pages: 1