Having trouble uploading file from PHP - think it is a tmp directory permission thing

I know nothing about linux but am in the process of trying to move a site from a shared hosting situation to a dedicated one.  Whereas my script to upload files worked on my old server, it is no longer working.  I am 99% sure that I have a permission issue on the temp directory.  At first I was useing the defualt temp directory for the server (I was not setting the upload_tmp_dir explicitily in php.ini).  However, when that didn't work, I thought maybe I should set it, so I set it to "./tmp/"  Where is that file located so that I can check permissions?

Thansk!
Courtney
consultgalAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

m1tk4Commented:
./tmp/ is located in tmp subdirectory of a directory where your php script is. "./" in unix is "current directory"
0
consultgalAuthor Commented:
Will linux create the directory if it doesn't exist?

Or do I need to create it manually?

Thanks!
Courtney
0
m1tk4Commented:
>> Will linux create the directory if it doesn't exist?

No.

>> Or do I need to create it manually?

Yes, and it should be writeable by the user your Apache runs as, typically "nobody" or "apache" - check your Apache config for User parameter.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
consultgalAuthor Commented:
Thanks for your help!  Have I mentioned I'm a newbie?  I'm going to try and steal one final answer: which file would the user parameter be located in?

Thanks!

Courtney
0
m1tk4Commented:
Depending on your distribution,

/etc/httpd/conf/httpd.conf
/usr/local/apache/conf/httpd.conf

etc. Try

locate httpd.conf

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.