I have managed to install wordpress in glassfish server. Now I want to update themes and plugins... But when I try to upload a new theme, this is what I am getting
The uploaded file could not be moved to /usr/local/glassfish-3.1.2.2/glassfish/domains/admin/docroot/wordpress/wp-content/uploads/2017/01.
I've tried changing permission to 775, 777,
changed owner to root, glassfish, www-data, no-body.
increased upload file size limit to 10mb, increased memory limit, post size limit, etc etc etc...
I've tried almost everything mentioned in the discussion about this in google.
Is there anything else I need to do to make this error go away ?
By the way, glassfish is running under "glassfish" user
Wordpress is a PHP application, GlassFish is a Java EE application server. GlassFish contains no capability to run PHP. What you are attempting will not work.
Edit: Note that there was an old project attempting to implement PHP on GlassFish, but it had not been updated in years the last time I checked. It certainly won't support the latest versions of Wordpress.
Since I successfully installed wordpress in glassfish, I am giving my own answer....
These are the requirements Glassfish 3.1.2.2 Quercus latest version Wordpress 3.7 ( latest version 4.7 will not work ) so do not upgrade....
Procedure: Unzip wordpress.zip to domains/admin/docroot/wordpress
Sudo chown -R glassfish:glassfish wordpress