I've built out a wordpress website locally and now I'd like to deploy it from localhost to an actual web address hosted on Heroku.
I've created a new sql database on my newly created Heroku site and am using the Wordpress Duplicator plugin to transfer everything over.
I've pushed all my files onto heroku master, and I've installed the Duplicator installer.php and .zip files.
However, when I actually try connecting to my Heroku data from the installer, it pauses for a while and gives the following error.
"An error occurred while testing the database connection! Contact your server admin to make sure the connection inputs are correct!"
Am I missing something in regard to connecting to Heroku databases externally? What's the best way to get wordpress up on Heroku?
Note that the SQL connection string for your app deployed on heroku is very definitely not localhost. In particular:
If you've been using mysql for local deployment, you will need the ClearDB plugin added to heroku; instructions on how to optain the endpoint for the ClearDB database are here: Remote connect to clearDB heroku database
If you're planning to deploy wordpress using the postgresql database, you need to add the postgresql add-on, and configure wordpress to it. There's already instructions, and a full repo for wordpress-heroku that you may peruse
Hope this helps.
Related
I have created a web app locally in WAMP with PHP and a MySQL database. I am about to launch a demo online on a Linode server.
My question is once I have got it live on LINODE and I want to add a new Mysql table locally on WAMP how do i push the MYSQL changes to the live version online. I am not sure what this is called and how to do it. if anyone can share ideas/videos that would be awesome
I would suggest using a MySQL Replica, in which the replicated database will only be read from.
That or you can create some type of CI/CD pipeline which will run the same queries on your local as the remote, but that's a bit more complex.
I created multiple REST api's for my website on a local server(wamp) and now i am trying to move it to a online server(aws elastic beanstalk). My question is where do i build my database with the tables and rows etc just like in phpmyadmin? I figured that "upload and deploy" means upload the php file i made but when i do i get an error saying "health degraded". So what i want to do is basically move my local server to an online one with aws EB. I watched a bunch of videos and did a lot of research but can't seem to find the way to go about this problem.
My question is where do i build my database with the tables and rows
etc just like in phpmyadmin?
You can connect to the RDS instance created by beanstalk using a Database Management Client Tool like MySQL Workbench, Heidi SQL & etc using the DNS name, created for RDS instance. However one challenge you will face is to access the RDS instance from your client machine, since its not a good practice to make the Database publicly accessible. You can create a EC2 instance (Windows or Linux with GUI) inside the same VPC, connect to it (Remote Desktop or SSH) and install the tools so that you can use the tools inside the server, to connect to the RDS instance.
I figured that "upload and deploy" means upload the php file i made
but when i do i get an error saying "health degraded"
To understand the structure in code inside the Zip file, I would recommend to create a Beanstalk environment with a sample project available in Beanstalk and download the sample project artifact (Zip file) from S3 so that you can compare the project structure requirements.
If you prefer to go through the documentation, you can refer this. If nothing goes well, connect to the ElasticBeanstalk provisioned EC2 instance (Either using Remote Desktop for Windows or SSH to linux) and investigate the deployed artifacts.
recently I made an account in AWS, uploaded my project in github and installed it in EC2. When I run the link - http://ec2-54-213-242-40.us-west-2.compute.amazonaws.com/BlueDrive/bluedrive/drive/public/ I get some errors. Well that's obvious because i haven't set a DB in AWS. Despite the fact that in config/database.php i editted some of the parameters such as host, in the error it still displays that the host is localhost. Why is that?! Also I would like to ask how to make a DB in AWS, create the tables and so on. Can I somehow import my db.sql with all the relations in the tables?
me and a coworker are trying to move a website from a test server to local web development. Our boss wants us to use Amazon web services CodeCommit in conjunction with Xampp to do this. We have made progress but cannot overcome a database issue. Here is what we have done.
Set up AWS accounts and recieved necessary credentials from boss for the sites repo
Pulled repo and ensured that we could both commit and pull normally
Downloaded xampp, made sure apache and php were functioning normally
Now, one of us (me) has used the duplicator wordpress plugin to backup the site and load it into a local version.
I can now develop locally fine and push changes, all images and pages from the site are showing up locally
ISSUE:
How can my coworker also develop locally, the issue appears to be that he has not made a database in xampp phpmyadmin control panel for the site, but if he did wouldnt it be a different one than I am using, and thus wouldnt sync with git properly? Where xampp stores the database info isnt in the git folder, so I may be doing it wrong as well!
We cannot figure out the correct course of action, please if you can point us in the right direction. Much appreciated!!
I create an app in heroku with the ClearDB add-on and PHP as language. Following the Heroku-ClearDB documentation guidelines I try to upload and existing localhost-DB created in MySQL with PHPMyAdmin ->
I execute in the console:
heroku addons:add cleardb:ignite --fork=mysql://user:pw#localhost/db_name
and everything looks fine but when I go to my app in heroku and I select the DB in the Dashboard the DB is empty.
What I am doing wrong?
Thanks.
I'm pretty sure the --fork option tries to download the database from the ClearDB side and it can't get access to your local database - it's designed to fork databases from a globally available location.
You should copy the database manually via dump and restore as described in this answer: https://stackoverflow.com/a/7111224/6678.