/tmp No Access Cannot Upload Avatar

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
User avatar
sdteam
Registered User
Posts: 111
Joined: Thu Mar 01, 2007 10:41 pm

/tmp No Access Cannot Upload Avatar

Post by sdteam »

Hi There I Just Got Off The Phone With My Host And They Said That They Cant Give Me Permission To The Tmp Folder And With Out It I Cant Upload Avatars
Is There Another Way I Can Get Around This

User avatar
ric323
Former Team Member
Posts: 22909
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Post by ric323 »

Get another host.
And please don't capitalise the start of every word, that is incredibly hard to read!

Taipo
Registered User
Posts: 174
Joined: Fri Jan 07, 2005 9:25 pm
Contact:

Post by Taipo »

Not sure why you need access to the /tmp folder to upload avatars...

but anyways you could create your own tmp folder outside of the public html folder.
Then add this to the top of your common.php

Code: Select all

session_save_path('/home/blablabla/tmp');
/home/blablabla/tmp being the root path to the tmp folder

Remember to allow access for writing in that folder...

If that doesnt work then take ric323's advice....

User avatar
sdteam
Registered User
Posts: 111
Joined: Thu Mar 01, 2007 10:41 pm

Post by sdteam »

i dont get that im one of thoz chicks that need
step by step lol

User avatar
sdteam
Registered User
Posts: 111
Joined: Thu Mar 01, 2007 10:41 pm

p.s

Post by sdteam »

i needed access because i cant upload avatars
ive done everything the surrport team told me
accept the tmp folder person and ma host wont give it to me

User avatar
Techie-Micheal
Security Consultant
Posts: 19511
Joined: Sun Oct 14, 2001 12:11 am
Location: In your servers

Post by Techie-Micheal »

Have you checked the documentation guide? :) http://www.phpbb.com/support/guide/#section2_5_2 should explain everything you need to get past the /tmp folder requirement.
Proven Offensive Security Expertise. OSCP - GXPN

User avatar
sdteam
Registered User
Posts: 111
Joined: Thu Mar 01, 2007 10:41 pm

hey there

Post by sdteam »

i cant see where it is
what section

User avatar
sdteam
Registered User
Posts: 111
Joined: Thu Mar 01, 2007 10:41 pm

oppz

Post by sdteam »

hope it works

User avatar
sdteam
Registered User
Posts: 111
Joined: Thu Mar 01, 2007 10:41 pm

I Dont Get It

Post by sdteam »

Ive created a tmp foler in the foum directory i gave it
the 777 thing and then i changed the paths in the acp

2.5.1: Uploadable avatars
If you wish to allow users to upload avatars (this is dependant on your hosting provider allowing it), you should ensure that the directories specified for storing avatars in General -> Configuration exist and have appropriate access rights (ie. for uploadable avatars the directory needs to be world writeable, a+w, 777, depending on your setup). Gallery based avatars are stored in subfolders off the directory specified in General -> Configuration. This allows you to group together common types of avatar. Do not store gallery avatars in the root directory listed in General -> Configuration; they won't appear! (for more information on avatar settings see section 3.2.2.5 Avatar Settings)

2.5.2: Safe Mode
phpBB 2.0 RC-4 introduced support for uploadable avatars on systems running PHP in safe mode. If this applies to your hosting service, you will need to create a sub-directory called tmp in the directory you specified for storage of uploaded avatars (by default this is images/avatars as explained above). Give it the same access rights as for uploadable avatars above. This safe mode support includes compatibility with various directory restrictions that your host may impose (assuming they are not too restrictive and that the PHP installed is version 4.0.3 or later). There is generally no need for any manual setup for safe mode support because it is typically handled transparently (although PHP 3 users may run into difficulties).

User avatar
Marshalrusty
Project Manager
Project Manager
Posts: 29253
Joined: Mon Nov 22, 2004 10:45 pm
Location: New York City
Name: Yuriy Rusko
Contact:

Re: I Dont Get It

Post by Marshalrusty »

Rule 4H wrote: When posting a support question bumping is permitted only after six hours have elapsed since the last post to that topic.
Most of us start from the bottom of the topics list so bumping only pushes you away from answers. Your post is also far more likely to get viewed if it doesn't have any responses.
sdteam wrote: Ive created a tmp foler in the foum directory i gave it
the 777 thing and then i changed the paths in the acp

I don't see where it tells you to change the upload path. All the userguide says is to create a tmp folder in images/avatars (unless you changed this to something else). I'm not sure why you did what you did.
Have comments/praise/complaints/suggestions? Please feel free to PM me.

Need private help? Hire me for all your phpBB and web development needs

User avatar
sdteam
Registered User
Posts: 111
Joined: Thu Mar 01, 2007 10:41 pm

Post by sdteam »

i have done that but it keeps saying The avatar filetype must be .jpg, .gif or .png
ive tryed everything you guys have told me
look here
http://www.phpbb.com/phpBB/viewtopic.ph ... 06#2886106

User avatar
Marshalrusty
Project Manager
Project Manager
Posts: 29253
Joined: Mon Nov 22, 2004 10:45 pm
Location: New York City
Name: Yuriy Rusko
Contact:

Post by Marshalrusty »

Did you do what geocator said here?

If so, try changing it back to the standard code and see what happens.

You need to learn to have a little patience and not make several topics for the same issue, as that just confuses everyone.
Have comments/praise/complaints/suggestions? Please feel free to PM me.

Need private help? Hire me for all your phpBB and web development needs

User avatar
sdteam
Registered User
Posts: 111
Joined: Thu Mar 01, 2007 10:41 pm

Post by sdteam »

well when i replaced it .it then said this when i tryed to upload

Unable to upload file

DEBUG MODE

Line : 254
File : usercp_avatar.php

and then i changed the codes back
and and when i upload agen i get the file i want press submit
then it says

Your profile has been updated

Click Here to return to the Index

and when i go into my profile nothing show's the picture is in the gallery tho

User avatar
sdteam
Registered User
Posts: 111
Joined: Thu Mar 01, 2007 10:41 pm

still waiting

Post by sdteam »

help please

Locked

Return to “2.0.x Support Forum”