Report this

What is the reason for this report?

Images in PHP not showing!

Posted on January 2, 2013

Hello, I got problem after installing LAMP… Images not showing on my wordpress blog. also images not uploading on the directory. Please help me!

Thanks!



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.

To upload images you would need to set the directory where they get saved to permissions: 777. <br> <br>This would allow the web server to write files there directly, as it usually runs as a different user than the one that owns the directory. <br> <br>As for images not loading you would need to look up the path that they are being served from and then check to make sure that first the path is correct and that path does exist on the server. <br> <br>Secondly you would also need to make sure that all of the directories are readable by “other” in the entire path, otherwise the webserver would not be able to navigate to that directory and read the image for display to the browser.

yeah i give 777 permissions to that directory but still index file and images not loading… also my path is correct… It’s shows me Blank php Page :( <br>and can you explain where i’ve to give full permissions that users can view my applications? <br>my apps path is /var/www/domain.com/public_html/app

btw thanks for the reply =)

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.