By modeissey
I am unable to upload images using php image upload script. The upload image is not moving to the folder but this scrip is working in other web hosting.
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!
Are you getting any errors? It sounds like Apache doesn’t have permission to create files in your upload directory. Try granting the www-data user (which Apache runs as) write privileges to your upload directory:
sudo chgrp www-data /var/www/path/to/uploads
sudo chmod g+w /var/www/path/to/uploads
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.