cloudControl automaticlly deletes Wordpress files - cloudcontrol

I successfully deployed my Wordpress app on cloudControl. However, I realised that whenever I upload an image, no matter how small, I dont get to see the image after some hours. Please what could be wrong?

The problem is the non persitant file system.
As described here:
https://www.cloudcontrol.com/dev-center/Platform%20Documentation#non-persistent-filesystem
For Wordpress you have to use a plugin which stores image files on a remote system like Amazon S3. For me it worked fine with
Amazon S3 for WordPress
By the way: the same for E-Mails you can use sendgrid with the sendgrid plugin.

Related

Does NextJS copy images for export?

I am creating a website that is meant to be a static website, but I have a photo gallery with descriptions on one page that I am using WordPress as the CMS. All the data is from WP is fetched using getStaticProps().
My question is, when you run next export, does Next export these images to the output folder? If not, the img link will not work, since it will link to my computer.
If that doesn't work, any thoughts as to how this can be solved without running a server?
No, Next.js does not export the images files to the output folder. If your wordpress is already deployed, the img link will work for next export, otherwise it will be linked to your localhost if your wordpress is not deployed.

How to run a wordpress.com hosted website locally using docker?

Currently we have a WooCommerce webshop hosted on wordpress.com. This webshop was setup as a prototype and because of its succes we want to start developing the webshop further. We don't want to change the production website directly, but we want to develop inside a closed development environment (e.g. locally using docker).
I have tried to run the webshop locally by exporting all its data using the All-in-One WP Migration plugin. Afterwards I have created a docker environment with a wordpress and a mysql container. On the wordpress container I've also installed the All-in-One WP Migration plugin and I've imported all the data. It looked like this worked fine, but after a few clicks I saw that I could not navigate to any other URL besides the homepage. I have read online that the Wordpress codebase being used on wordpress.com differs from the default codebase which can be download on wordpress.org. So I think this means the wordpress.com export file can't be imported into a default wordpress container.
Because of this I've tried to download all the files on wordpress.com using FTP and run the website myself using a php container. This also didn't work, because I can't download all the files using FTP because of the permissions. I also contacted the support of wordpress.com, and they told me they couldn't sent me the contents of these files. But without these files, I don't know how I can run the wordpress.com website locally.
I hope someone can help me with getting the wordpress.com website to run locally in a development environment. A suggestion how we can implement a workflow where we can change the webshop in a development environment and deploy the changes to our production website is also very welcome.
Edit: For now I've chosen to run my site in a docker environment and write down all the changes I make locally. When I'm satisfied with the site locally, I will repeat the changes I made earlier on the production website. I've chosen this workflow because I don't really know the structures inside Wordpress. I don't know how I can migrate the files and database tables I need to switch theme, without overwriting the database tables I want to keep (e.g. WooCommerce orders table).
Have you tried running it on a localhost? MAMP is a good option for this.
https://www.mamp.info/en/

The uploaded file could not be moved to wp-content/ uploads Wordpress on azure

I have a wordpress site hosted on Windows azure.while I try to upload into media I am getting the following error “the uploaded file could not be moved to work-content/uploads/..”
How do you deploy WordPress to Azure?
Whatever, there is an Azure Resource Manager template for the topic Create a WordPress site, you can follow the work solution to do again and get a work web site of WordPress, which storage for files based on Azure Storage. I think it's a simple way to make it works, due to your question is not clear.
As reference for more details about deployment, you can refer to Deploying WordPress on Azure Web App for Containers.
Hope it helps, and expect your updated.

Problems in migration from localhost to my online webserver of a WordPress website

I am finding some problems uploading a WP site from my local web server to the official online web server.
The situation is the following , on my local web server:
I have installed WP website on my computer
I have configured it
I have installed custom a template
After, I have uploaded this site in a folder on my official online web server. I have took the local database export and imported in the online database using PhpMyAdmin (to export the local database on a file and then to import it on the online database)
Finally I have changed the file wp-config.php changing the MySql connection settings and putting here the settings related to the official online database.
When I try to open the website it appears to me, here you can say how: http://www.scorejava.com/wordpress/
Ok...seems good but there are two problems:
If you try to open an article it is not open the article on the online server but in the localhost server, infact open this URL: [code]http://localhost/wordpress/?p=81[/code]
If I try to open the administration panel opening this URL: [code]http://www.scorejava.com/wordpress/wp-admin/[/code] I obtain a white page
I don't know if these two problems are related together but I think that all may depend due to a problem of location path...
I think that somewhere there is some settings that specify the URL (that can't be localhost...), but (if it is so...) where is this setting? in some file or in the database?
Some one have an idea? Can you help me?
Look into this: http://codex.wordpress.org/Moving_WordPress
There's a link on there for a "Search and Replace for WordPress Databases Script" tool that's very handy (make sure to read the instructions and have a backup of the db before using it). The problem is that image URL's and other things are stored in the database and will reflect the URL of the dev location. That tool will go through and properly update all instances from the dev URL to the final location.
Normally before you move a WP site you also want to update the site URL in the General settings as well, which may be contributing to your second problem.

wordpress plugin to upload file directly to amazon s3

hello i am trying to do this
i need to integrate a wordpress plugin so that when user uploads any video to my wordpress site it directly uploads to amazon s3 and when i need to use that video it gives me the url or automatically redirect to amazon to load the video
when user enters a url then the file uploads to local server and then immediately uploaded to s3 and the file is removed form my server, it is because the amazons3 do not allow remote files to be uploaded directly
ok for all of this is there any plugin? i found some but they allow this form there own interfaces but i need to do is when ever file is uploaded it directly goes to s3 and no other operation is needed to do this
if no plugin then please any tutorial for how to do this will be helpfull
it should be fully integrated with my wordpress theme
regards
This plugin will do the job http://wordpress.org/extend/plugins/tantan-s3/ for any uploads.
If you want to upload theme files to s3 you need to do that manually.
There is this plugin here: http://codecanyon.net/item/wordpress-aws-s3-browser/6470423 chekcout the live demo, I think it does what you need:
Demo: http://www.awss3.redwanhilali.net/?page_id=5#
this plugin can do the work for you perfectly.
http://wordpress.org/extend/plugins/download-monitor/

Resources