Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 18th, 2008, 11:59 PM
Authorized User
 
Join Date: Mar 2007
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kennethjaysone Send a message via Yahoo to kennethjaysone
Default Asking a webhost to Enable safe_mode_gid=On in php.ini file?

I developed a wordpress website locally (WAMP), i inserted all the pics in the various posts and pages. After uploading everything, why isn't the pictures appearing on the site?

Please have a look at it www.energyworkforce.net. I looked into the wp-content folder (in the webhost's server) and i found a folder called uploads. Inside the uploads folder there was folder named 2008 and then another folder called 12.

I presume that it is because the images were inserted in December. I thought of using the same method of deleting and re-uploading the files but this time it didn't work.

I checked the root directory on the server to see if there were any files i missed out particularly the wp-content folder (in the webhost's server) and i found a folder called uploads. Inside the uploads folder there was folder named 2008 and then another folder called 12.

All the images are in there.

I thought maybe i'd have to use Wordpress's dashboard (live) and then insert the images again. For testing purposes i edited a page and tried to insert an image and this is the error i got on the Wordpress Dashboard:

The uploaded file could not be moved to /home/httpd/vhosts/energyworkforce.net/httpdocs/wp-content/uploads//2008/12.


I found out that i needed to chang access permission for the wp-content folder to 755 and also tried 777. It didn't work.

I did more research and found this article

http://www.wains.be/index.php/2007/0...#comment-68438

It states that by setting safe_mode_gid=On safe mode checks the files GID (group) instead of the UID (user) and this allows file uploads on Wordpress.

Any thoughts on this? Do you think my webhosting company will allow to change the safe_mode_gid=On in the php.ini file?

Last edited by kennethjaysone; December 19th, 2008 at 12:23 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
session error - php.ini file bogins Beginning PHP 8 January 5th, 2008 04:59 PM
Session Error / PHP.ini file socoolbrewster Beginning PHP 5 June 8th, 2006 04:18 AM
Ch 2; php.ini set up; /tmp file (where is it?) monster BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 February 21st, 2006 06:09 PM
php.ini problem jun99 PHP How-To 0 January 22nd, 2006 04:10 PM
php.ini allang Beginning PHP 1 November 20th, 2003 09:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.