Report this

What is the reason for this report?

timthumb permissions

Posted on January 17, 2014

My droplet is running Ubuntu with Virtualmin installed and has 2 virtual servers. There is the main server, then a sub-server.

My sub-server is where I am testing and running into problems.

I am using the following wordpress plugin: http://codecanyon.net/item/justified-image-grid-premium-wordpress-gallery/2594251 which uses timthumb to generate the thumbnails.

Inside the justified image grid plugin folder are the plugin files and timthumb.php and it’s cache folder that has an index.html file and timthumb_cacheLastCleanTime.touch

I have tried just about every combination of chmod and chown on the timthumb related files and folder.

Here is the error I get in the log: [Fri Jan 17 04:51:57 2014] [error] [client 75.132.160.71] PHP Warning: touch(): Utime failed: Permission denied in /home/artimeg/domains/beta.artimeg.com/public_html/wp-content/plugins/justified-image-grid/timthumb.php on line 206, referer: http://beta.artimeg.com/2013/10/30/image-post/

http://beta.artimeg.com/2013/10/30/image-post/ is a post for testing. In the log file I get the following: GET http://beta.artimeg.com/wp-content/plugins/justified-image-grid/timthumb.ph…om/wp-content/uploads/Avenged-Sevenfold_760_20131011.jpg&h=280&q=90&f=.jpg 400 (Bad Request)

The image file does exist as you can see: http://beta.artimeg.com/wp-content/uploads/Avenged-Sevenfold_760_20131011.jpg

I am at a loss for ideas, so any help is much appreciated!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

sudo chown www-data -R /var/www/timthumb-folder

very simple, back up your cache folder and download it to your machine. Then delete the cache folder and create a new one with the same name and give it 777 permission. try it out and see if things work fine or not.

I’ve tried setting the folder and files to 777 and tried users: root and www-data <br> <br>I deleted the folder, re-created it and still no luck. <br> <br>I also restarted apache after making the changes.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.