Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
(New user) permissions for upload dilemma
I almost hate to intrude upon this august forum with such a novice question; but we were all novices once.
Uploading a file or an image fails with the error:
Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 10003 is not allowed to access /tmp/txp_q0j6ly owned by uid 48 in <b>/home/httpd/vhosts/example.com/httpdocs/tp/textpattern/lib/txplib_misc.php</b> on line 1001
and
/home/httpd/vhosts/example.com/httpdocs/tp/files/a-name.txt directory permissions must be 777
The permissions on the directories files and images are 777. I have logged out of the site and back in, to no avail.
The first error message, above, leads me to wonder whether the problem is not actually related to these directory permissions, but instead to something about the user ID under which Apache (and Textpattern) run.
(note added 13:47) Oh hmm. admin > diagnostics says “Temp folder is not writeable: /tmp” . The permissions of <i>/tmp</i> were drwxrwxrwt … that final <i>t</i> means something about sticky. Tried 777 but the results were the same.
Offline
#2 2006-02-24 20:04:04
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: (New user) permissions for upload dilemma
Check your tmp path. It should look like /home/httpd/vhosts/example.com/httpdocs/tp/textpattern/tmp
.
Offline
Re: (New user) permissions for upload dilemma
Mary— thanks. That is exactly what /tmp looks like; its permissions are and have been 777; and it all started working at some point. Somebody had been caching something along the way I’m sure.
Offline
#4 2006-02-24 20:50:31
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: (New user) permissions for upload dilemma
Okay, so do I get this right: it’s working properly now?
Offline
Re: (New user) permissions for upload dilemma
Yep, all better. I expect that some piece of code took a while to recognize that the permissions had been fixed… I would swear it failed a dozen times (on refresh) before it started working.
Offline
#6 2006-03-11 12:06:15
- Moat
- Member
- Registered: 2006-03-11
- Posts: 21
Re: (New user) permissions for upload dilemma
Hi, I have the same problem.. All permissions are 777, including /textpattern/tmp. And error is
Warning: move_uploaded_file() [function.move-uploaded-file.php]: SAFE MODE Restriction in effect. The script whose uid is 53301 is not allowed to access /tmp/txp_Jnpf7C owned by uid 33 in /home/free/example.com/root/www/textpattern/lib/txplib_misc.php on line 1001
Could anyone tell me where the problem is?
Offline
#7 2006-03-11 12:22:09
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: (New user) permissions for upload dilemma
Can you post your diagnostics tab details?
Offline
#8 2006-03-11 12:35:09
- Moat
- Member
- Registered: 2006-03-11
- Posts: 21
Re: (New user) permissions for upload dilemma
When I go to “diagnostics”, there are 3 warnings:
Temp folder is not writable: ?
no_temp_dir ?
warn_register_globals_or_update ?
and here are details:
Textpattern version: 4.0.3 (r1188)
last_update: 2006-02-27 22:01:04/2006-02-27 21:37:23
Document root: /home/free/ic.cz/ (/home/free/ic.cz)
$path_to_site: /home/free/ic.cz/t/textpattern/root/www
Textpattern path: /home/free/ic.cz/t/textpattern/root/www/textpattern
Permanent link mode: section_id_title
open_basedir: /home/ic/:/home/free/:/disk1/home/ic/:/disk1/home/free/:/tmp:/home/yousers/:/usr/share/php/:/usr/share/fpdf/:/usr/share/fonts/:/usr/share/php/jpgraph/:/usr/share/php/iclib/pear/
Temp folder:
Site URL: textpattern.ic.cz
PHP version: 4.3.10-16
Register globals: 1
Server time: 2006-03-11 13:34:52
MySQL: 4.0.24_Debian-10sarge1-log
Locale: cs_CZ.UTF-8
Server: Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-16 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_perl/1.999.21 Perl/v5.8.4
Apache version: Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-16 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_perl/1.999.21 Perl/v5.8.4
PHP mode: apache2handler
Operating System: Linux 2.6.13-1-k7
Pre-flight check:
————————————
Temp folder is not writable:
no_temp_dir
warn_register_globals_or_update
————————————
.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<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
————————————
Charset (default/config): latin1/latin1
character_set: latin1
character_sets: latin1 big5 cp1251 cp1257 croat czech danish dec8 dos estonia euc_kr gb2312 gbk german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr latin1_de latin2 latin5 sjis swe7 tis620 ujis usa7 win1250 win1251ukr win1251
18 Tables: OK
PHP extensions: zip, yp, xmlrpc/0.51, xml, wddx, tokenizer/0.1, sysvshm, sysvsem, sysvmsg, standard/4.3.10-16, sockets, shmop, session, posix, pcre, overload, mime_magic/0.1, mbstring, iconv, gettext, ftp, filepro, exif/1.4 $Id: exif.c,v 1.118.2.35 2005/03/05 18:30:47 rasmus Exp $, dbx, dba, ctype, calendar, bz2, bcmath, zlib/1.1, openssl, apache2handler, curl, mcal, mhash, mcrypt, xslt, gd, imap, mysql, pgsql, sqlite/1.0, Turck MMCache/2.4.6-12
Apache modules: core, mod_access, mod_auth, mod_log_config, mod_logio, mod_env, mod_setenvif, prefork, http_core, mod_mime, mod_status, mod_autoindex, mod_negotiation, mod_dir, mod_alias, mod_so, mod_actions, mod_cgi, mod_fcgid, mod_perl, mod_php4, mod_rewrite, mod_ssl, mod_vhost_alias
/include/txp_category.php: r1154 (dffd7979531373149c74e3eedfbb50e2)
/include/txp_plugin.php: r1167 (c2c7d7fc1e4918c79cd3658c62e4fbda)
/include/txp_auth.php: r1166 (3e2eaca7b151e14561125ab68e722203)
/include/txp_form.php: r947 (c0e4393328985742bd81cda61d10d5ed)
/include/txp_section.php: r1154 (d85c1ce405fccd9dac364c8ef4eb72eb)
/include/txp_tag.php: r1134 (3e2dfbd6fdccf0693c147ba22a9705e7)
/include/txp_list.php: r1042 (e85d2de1c63b41f0e5bdcf268e3c487b)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1170 (1e56e08cc95c255783410076db12529f)
/include/txp_prefs.php: r1170 (c806be1b1f238e75a5ff6b7cf8432d17)
/include/txp_log.php: r906 (68c4f32b70ce41a349f197b6bba6c200)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r1168 (e8ec79ff9b3a21c356ee23da7973b1f0)
/include/txp_article.php: r1170 (88689d7469d16c13d51bd4adff03ebd7)
/include/txp_css.php: r922 (0c596d9968052b89581d1ca65a77c5de)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r1154 (7c0c55ff6580793dff0626f169e64ad6)
/include/txp_diag.php: r1154 (5d66b90f7e7720dd0e3526ca1b24cf89)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r1170 (7000a1b27aa40c90978211e6cff358ec)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r1183 (fb85b66b4e379476935233f844844bef)
/lib/classTextile.php: r1141 (b066c2bfa94a26ae3d70b245dcf81369)
/lib/txplib_html.php: r1166 (bd11de6e6daa3391eab75a46db55ae36)
/lib/txplib_db.php: r1170 (5a2c3a1e328cd343a067cbb8fd25cd79)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)
/publish/taghandlers.php: r1188 (4e8eaeb0543d8fde09d6e423af4253b9)
/publish/atom.php: r1117 (14c1aa23c708898d7723b3d6b9c89050)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1187 (d55dde574418d2eaf6a394d703056d9a)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r1099 (ce0d82b9435d8f1de01c8e2b6c585f93)
/publish.php: r1186 (d5c20bf2298e87969575f9e622bf2797)
/index.php: r1172 (52f753ebb51c1f7d5312485d9dbad7e4)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)
Offline
#9 2006-03-11 14:15:22
- Moat
- Member
- Registered: 2006-03-11
- Posts: 21
Re: (New user) permissions for upload dilemma
Ooh.. I am sory, suddenly it is ok…
Offline
#10 2006-03-11 20:28:00
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: (New user) permissions for upload dilemma
lol, okay. Glad you got it worked out. :)
Offline