You need to change the linux ownership of the directory. To do this, you need to know the owner of the httpd/apache process you can get this by typing ps aux | grep apache
or ps aux | grep httpd
. Normally the owner is nobody or deamon.
Then cd
into your wp-content directory. e.g. cd /opt/lampp/htdocs/wordpress/wp-content
and create the uploads directory mkdir uploads
.
You will then need to set this directorys owner to the user that is running apache. e.g. sudo chown deamon uploads
Try your upload again and it should be working.
I assume you are using windows, I belive the directory wp-content/uploads needs the NTFS permissions changed. See this http://www.ntfs.com/ntfs-permissions-setting.htm
– mt025 – 2016-08-05T16:50:50.333Ah okay. Then you will need to use chmod to change the permissions of the directory. – mt025 – 2016-08-05T16:54:30.850
can you please tell me how? and which directory? – smehsan – 2016-08-05T16:55:11.147
Do you have access to a terminal? or just FTP – mt025 – 2016-08-05T16:57:20.023
i am with terminal. – smehsan – 2016-08-05T16:58:24.040
Let us continue this discussion in chat.
– smehsan – 2016-08-05T17:01:28.323