I need to do docker-compose: 1)wordpress with my theme 2) mysql.
How is this done in practice? And plus one condition, I will fold the .yam file to another person and it should launch in the same way, that is, there was a small problem, I can’t add a topic locally like COPY. / wp-content /
There is an idea to create your own wordpress image with the theme and connect it to docker-compose, but there were several unsuccessful attempts, please share a couple of examples of how to deploy wordpress with the customer’s site.
Have you seen this Quickstart: Compose and WordPress?
Related
Finally i completed my first full project using server, client, data
i would like to know few things about how to host and upload full website include(server ,react, mysql)
i so wondering how that is work, for now i understand that to upload a simple website you need a domain and to hosting, just do npm run build and upload it..., this is something that i know but, when that is not just a simple website like
when i have such as
server side with Node.js + express that have requests (on localhost) *probably need to change the localhost to something else but what
Database running with MySql
React app that have many request to (localhost)
how can i hosting all of them and running my website for everyone, i mean that my sql will still running, CRUD Data will update normal, and the server will still get request and send or update them to mysql data.
and if I'll want to make some change on mysql, server, client
i want to change it like i change it now
Actually i'm not a FullStack developer if i don’t know it... 🥶 so i really interesting to understand all of that issues
i hope you guys havק An understandable answer for me, thanks 🙏 and just take your time :)
Well, where to start hehe. There are a lot of different ways to host a web app. Heroku for example makes this process really simple.
Personally, I use Digital Ocean to host my apps. This is generally how that goes:
I have a project with a folder structure that seperates the server logic and the client logic.
Since you're using Node, you build your client with npm run build. Next make sure the dist/build folder is inside your server folder. That is the folder you are going to 'host'. On Digital Ocean, you make a new droplet (which basically is just a tiny part of a server).
You install Node, Git, Pm2 and (for example) Nginx. You clone your project from Github to the server and install all the dependencies.
You have to do a few configurations with nginx (specifying a domain name for example) to make everything work. This article goes into more detail about that.
Also, a database is frequently hosted seperately. You should read more about that.
If you have everything setup, you can just code on your project as usual. Push new updates to github, and pull in the changes on the server.
Here is another post on Stackoverflow talking about hosting MySql with react.
I am trying to create a WordPress application in OpenShift Online. I found an online instruction for OpenShift Online V3, but it does not seem to be up to date. Specifically in the section "Deploying WordPress", it advised that in order to create a new WordPress application:
To deploy a fresh WordPress instance, from the web console select
Add to Project. Under Browse Catalog, select PHP. You should be able
to see options for deploying WordPress.
But I could not find "options for deploying WordPress".
Does OpenShift still support WordPress? If it does may someone suggest instructions on how to achieve it?
The steps I took to create a WordPress application on OpenShift Online platform:
Follow the steps in the OpenShift blog to load the WordPress templates into your project.
Creating a WordPress app:
a. Go to the OpenShift Web Console, click "Select from project".
b. In the next screen, select the project to which the WordPress templates were just loaded. Two options will be available.
I developed a Wordpress site locally using MAMP.
I'm trying to transfer it on my home server to show to the client, so I used the plugin "Duplicator".
Everything seemed to work fine but all the links are now broken.
I put the .zip archive and the installer.php inside a folder inside the "html" folder of apache and run installed.php from the browser.
I'm not familiar with the 'duplicator' plugin, but when you transfer a Wordpress site to a new server, you usually have to do three things.
Edit the wp_options table and change the siteurl and home field to the URL of the new site.
Update the wp-config.php file to have the correct settings for the new server.
Use a search and replace tool to bulk replace the old URL with the new URL in all your posts and pages. The best tool I have found is to install wp-cli (http://wp-cli.org/) and then run:
wp search-replace oldurl.com newurl.com
You obviously need to use wp search-replace carefully, as you could mess up a lot of posts if you do it wrong. So obviously keep a backup around.
I'm a complete novice at web deving (literally just started yesterday so please explain your answers like you were talking to a 5 year old haha) and I'm setting up MAMP following along the steps on this site: https://skillcrush.com/2015/04/14/install-wordpress-mac/
I followed everything to a tee till I got to step 10. When I search localhost:8888/(insert folder name in my root folder) on my URL bar. I get "cannot connect to server."
I've googled this problem and tried all the solutions I found (here on stack overflow and others) but still nothing works. Can anyone help me?
I'm using macOS Sierra and MAMP ver 4.0.6
Try visiting http://localhost:8888/ and see what happens ... if there is nothing there then there is a problem with your apache configuration. Make sure the apache service was started from within the MAMP app.
if you type the following in your terminal app:
sudo /Applications/MAMP/Library/bin/apachectl restart
it will output any issues or misconfiguration you may have.
Also, if you want you can give PilotKit a try, PilotKit is a
Super-easy local site development app, it launches and creates sites locally with one click, it support Wordpress, Joomla, Drupal and static sites generator plus it comes with a lot of functionalities.
Installation step of wordpress:
Step - 1 : download a wordpress from wordpress website.
Step - 2 : Extract wordpress and move this extracted folder into a MAMP/htdocs folder.
Step - 3 : Next we’ll go into our MAMP start page, PHPMyAdmin, then Databases and create a database (I’ll name it “database”). Go to “localhost:8888/database/installer.php and fill in the following information.
Step - 4 : After selecting “Run Deployment”, on the following page select “Run Update”. At last, we can go to our local website at “localhost:8888/site”!
Some cases that makes your site is not reachable
If you are not sure with port.It's better to check url with open a start page.
Check you server and database working properly by creating simple file.for example.
make sure you have database before install wordpress.If any then goto database and check wp_option table.Cross verify your home_url and site_url.
I've got a Wordpress blog hosted on Linode under Cherokee web server, but the performance has been problematic the last weeks and I'd like to give a chance to Nginx.
So I've made a DB backup of the current site, setup a LEMP platform, installed wordpress, and the "new" wordpress, with no articles (yet) on it works as expected.
But when I restore the mysql database from the current blog, the site shows a blank page. I've copied all the wp-content directory onto the new WordPress directory, and I've tried to disable all the plugins, but nothing changes.
In fact, there's an even more important problem: I can't login with my old admin/pass account, that should be inherited from the old database. In fact when I do a SELECT on the wp_users table, everything seems to be fine (equal to the old installation), but I can't login no matter what I do.
I've even tried to change the admin password with an UPDATE and the MD5 function under mysql, and although the table is updated, the pass does not work either.
So all I get is a restore I can't access
The issue causing the blank page is likely that your old install used a theme other than the default, and since you haven't copied wp-content over, it's looking for a theme that doesn't exist. I find that with importing an installs database, this happens rather than it just reverting to a default theme, as it does when you delete the current theme on an active install.
Something you may consider trying to get around the login problems is doing a WordPress export (Tools -> Export). This will work if you don't have much media attached to your current posts, as it will only copy post contents, and not attachments. Import that export to a fresh WP install on your new platform and both problems should be solved.
Could be a plugin problem; rename your plugin folder to "oldplugins" and see what happens.
Reupload fresh copies of all WO core files/folders, except for wp-config.php and wp-content
Could be a permissions problem; check http://codex.wordpress.org/Changing_File_Permissions
And: did you change DB table prefixes?
I had this problem but eventually successfully restored it by trial and error.
The steps that worked were something like this:
uninstalled wordpress
installed a version that was working before the upgrade
activated same plugins (same version) that were installed before
restored the database
here's where it gets fuzzy, but had login problems and content would show but no theme, and admin login redirected to root site
did this procedure for changing site URL:
http://codex.wordpress.org/Changing_The_Site_URL
don't know why that was necessary but after a few minutes, the links started working. And after having to request a new admin login by email several times throughout the process, I was able to admin login again.