Unable to upload media
-
Hi,
I am having trouble uploading media to my newly installed wordpress site. I’m getting the error:
“Unable to create directory wp-content/uploads/2016/12. Is its parent directory writable by the server?”
The folder wp-content is not writable by the apache server runuser and I don’t want it to be. It is however writable by my ftp user.
I have tried adding this to wp-config.php, but it hasn’t solved my problem:
define(‘FS_METHOD’, ‘direct’);
define(‘FTP_BASE’, ‘/’);
define(‘FTP_CONTENT_DIR’, ‘/wp-content/’);
define(‘FTP_PLUGIN_DIR ‘, ‘/wp-content/plugins/’);
define( ‘FTP_USER’, ‘ftpuser’ );
define( ‘FTP_PASS’, ‘ftppassword’ );
define( ‘FTP_HOST’, ‘ftpserver’ );
define( ‘UPLOADS’, ‘wp-content/uploads’ );I have also tried setting ‘upload_path’ in ‘wp_options’ to ‘wp-content/uploads’, but that didn’t help either.
I have seen several suggestions setting the folder permissions to 777, but that’s an absolute no go in my opinion.
Is it not possible to upload media through ftp?
Regards,
J?rgen Rasmussen
- The topic ‘Unable to upload media’ is closed to new replies.