Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Servers
Reload this Page php.ini file changes in phpinfo but changes not used
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Servers Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Reply
 
Thread Tools Display Modes
Old 07-01-2008   #1 (permalink)
TimCasey
Just Joined!
 
Join Date: Jul 2008
Posts: 3
php.ini file changes in phpinfo but changes not used

I've modified my /etc/php.ini file (specifically the upload_tmp_dir variable) and when I run phpinfo() I see the changes reflected.

However, when I upload files the tmp_name var from the superglobal array $_FILES, it still indicates the value is /tmp.

Thus far, I have tried the following:
-from the root dir, ran a find ./ | grep php.ini ..../etc/php.ini is the only one
-restarted apache
-spent 2 hours on the web searching for an answer


As an aside, I'm still receiving the following error in the /var/log/httpd/error_log file:

[client 192.168.1.2] PHP Warning: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/phpteRDZK' to '/var/www/html/pictures/temp/tempPic.jpg' in /var/www/html/admin/processInfo.php on line 15, referer: http://192.168.1.100/admin/pictureAd...cture&theMsg=2

...as you can see, it's still indicating the /tmp dirrectory is being used as the upload_tmp_dir despite the following being displayed when I run phpinfo():

upload_tmp_dir => /var/www/html/pictures/temp => /var/www/html/pictures/temp

I assume the Warning is just a permissions problem (Apache user which runs Apache does not have permissions to read from /tmp or write to the other dir).

Thanks for any help.
TimCasey is offline   Reply With Quote
Old 07-07-2008   #2 (permalink)
TimCasey
Just Joined!
 
Join Date: Jul 2008
Posts: 3
In case someone else has this problem later, I figured it out.

The problem was SELinux. I'm not sure exactly what it was doing, and I had it configured to allow httpd file transfers AND I had rebooted several times since making those changes, but it wasn't working, so I figured the problem was elsewhere.

What I did was disable SELinux, saw that I no longer had this problem, then enabled SELinux (without making any other changes at all to SELinux) and the problem went away.
TimCasey is offline   Reply With Quote
Old 07-10-2008   #3 (permalink)
andriagutama
Just Joined!
 
andriagutama's Avatar
 
Join Date: Jul 2008
Location: Batam, Indonesia
Posts: 34
Send a message via Yahoo to andriagutama
Just make sure other users able to upload files in your upload directory..
__________________
Linux For Human Being !!!!
andriagutama is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 01:04 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0