Running Wordpress code obtained from Github repo - wordpress

I'm collaborating with a friend on a Wordpress blog for work, whose code is on a Github repo, and is hosted on Amazon EC2.
I have never used Wordpress before, so this question might sound dumb to experts ...
Question : how do I preview my changes to the blog ? Once I make a change to the code (after I have cloned the repo from Github) what shall I run locally so I can see the blog as it would be if I had done the change online through my Wordpress account ?
I can't start anything until I'm up and running, any help would be highly appreciated.
Thanks !

Unless you change the code of your Wordpress blog you only change the content of your database which is possibly on the same EC2 instance as the blog. If you want to see the same locally you will have to set up the same blog on your local machine and add the same posts locally.
But iirc you can preview blog posts in Wordpress so you don't need to test them locally. Just don't publish your posts.

Related

AWS Lightsail WordPress Multisite plugins require FTP?

I have a WordPress Multisite running on a relatively new Amazon Web Services (AWS) Lightsail instance, based on a Bitnami image (provided through AWS Lightsail) running a LAMP stack, based on Debian.
Until recently, plugins installed through the WordPress multisite Administrator Dashboard installed and ran good. Worked great before, no problems. Now, for some reason, attempting to install any WordPress plugin surfaces a dialog requiring FTP credentials be provided. There's a screenshot of the WordPress multisite dialog asking for FTP credentials at the end of this message.
I'm thinking this - new - demand to provide FTP credentials when adding a WordPress plugin is happening due to permissions. Naturally, I'd rather not need to install WordPress plugins using FTP.
So, I have two questions:
What settings were accidentally - somehow - changed to cause WordPress to now produce this new requirement asking for FTP credentials when installing any WordPress plugin?
How to I fix WordPress so that plugins can be installed without FTP?
I did see many solutions for fixing permissions on the Internet, except since I'm new to AWS, Linux (Debian) & WordPress I'd like to use this opportunity to learn how this situation happened, while learning how to fix the hiccup. Other than using a few new plugins, which installed & ran fine without FTP, I have not made any edits to any internal WordPress files.
The only chance to change permissions might - maybe - have happened when setting-up users within my AWS account, including setting-up of a Yubico key with key-pairs --> I don't think that security change would influence the LAMP stack running the WordPress multisite, but I wanted to offer information that might - maybe - related to security changes influencing why, now, adding WordPress plugins requests FTP credentials.
Thanks in advance, everybody. Thank you. :)
WordPress multisite dialog asking for FTP credentials
I tried to add many, many WordPress plugins to confirm that every WordPress plugin now asks for FTP credentials for any new plugin.
I have looked at many Internet posts explaining how to change WordPress & Linux permissions, along with posts explaining how to change WordPress configuration files to not ask for FTP when installing new plugins. I have not acted on these many suggestions since I'm cautious & careful --> I'm ready to study months & months becoming a Linux, WordPress, and supporting technologies expert, but at this stage since I'm new to all-of-the-above, I'm reluctant to make any changes until I fully understand the technologies (after making this post, I will make copies of WordPress configuration-files to test changes that can be undone, but I wanted to see whether StackOverflow might help me learn what happened in the first place, while learning how to correctly fix these issues.
I pay for AWS Premium Support --> I've sent a message to AWS Premium Support, but so far have not heard back from AWS.

Added new WordPress site on GCP with Marketplace. Publishing fails. Link cloaker fails

In Launching WordPress installation, in GCP, I cannot post with the error "publishing failed.". I tried both without updating and with updating to WP 5.4.1. I am having a hell of a time deploying WordPress in GCP. The permalinks don't work and I change the timezone, i am guessing or set the Site URL to vetsforweed.net and updated the A record at my Namecheap DNS to the external ip. sometimes the site locks up and I have to delete the vm instance and redploy. I have installed WordPress at least 10 times trying to get a working installation.
I switched to the classic Editor, I am able to publish. the post uses the permalinks setting of Post name: and it tells me the post link is : http://34.73.194.87/petition for a post titled "Petition" and I get a 404 Not found. I had done Settings...Permalinks to Post name:. I am so stuck!
What a nightmare! I cannot get anything to work with WordPress 5.4.1, no posts show up with a permalink. I cannot even click the date to see the post. It does show up in the list of Posts. Argg!
Is WordPress 5.4.1 known to be broken? What can I do to get a WordPress site up and running well? I appreciate you for your assistance.
I switched to loading WordPress Certified by Bitnami and Automattic and this worked, completely. So far. Now I have to import a WP export that is 136MB. Firs, I will deploy WordPress Certified by Bitnami and Automattic there.
Thanks for assistance.

Changing Wordpress Theme in Staging Environment

I have a live newspaper WordPress website with about 10 users updating it daily with about 2000+ unique visitors a day. I have a sum of about 30 posts a day added to my db and i host my own pictures.
My goal is to change my theme that has been used for over 4 years so smoothly that I don't experience much hiccup for my viewers.
I want a dev environment somewhere in my server that I can test my new theme with my current posts.
A solution I have in my head is to create a subdomain for example "dev.example.com" and deploy the new theme there and have two working wordpress themes with one database.
Is this even possible? I need to have my new theme that is in a dev environment have access to my live database.
What is the best practice for this situation?
for people looking into this like me, I will post my findings below and if you like you can comment to guide me or tell me what I'm doing wrong or right.
there is a wp-staging plugin that can be used but it seems to be paid if you want to push changes from staging version to production version of your website.
I have also figured out that another wp website can be installed on a subdomain that you can create through cpanel and install a brand new wordpress environment that is completely separate from your live site with its own db and config.
Since most of us don't have unlimited server resources its going to be pretty heavy to clone everything from live site to staging site and I figured they cant share a db because changes made to staging site can effect live site if they share a database.
So I looked over a very well summarized easy youtube video which basically explained the whole process for cloning your wordpress on your subdomain and using a new db, but this solution can be good if you have the server space and resources, for a website like mine i would guess that a local installation of wordpress would work.
One of the comments on that video was very usefull as well:
Just create a subdomain, install WordPress with Softaculous on the subdomain, install the All In One WP Migration Plugin on both the main site and the subdomain, export the file in All In One WP Migration on the main site and import it to the subdomain and vice versa, you have your staging.

wordpress local migration error

I'm trying to migrate my wordpress site to a WAMP hosted localsite so I can have a safe environment to edit the site and learn how wordpress works properly. (before I decided to do this had to rebuild this site from memory 3/4 times because I'm an idiot who didn't realise that backing up is my best friend)
this is my live website
http://guitarlessonswithmax.com/
Using the following youtube video:
https://www.youtube.com/watch?v=C8LgYkfnJpc
I managed to get my wordpress sort of working using WAMP but not to the desired outcome as you can see in the screenshots provided in the imgur album
https://imgur.com/a/bjZRI
So as you can see the content is sort of there but minus the wordpress formatting which you can see on the live site.
Thanks in advance for taking the time to read this.
F12 in your browser to bring up the developer console. You can probably see a lot of '404 not found errors' where your installation expects files.
Install PhpMyAdmin and enter your database. Check the table wp_options. There should be two entries (siteurl and home ), ensure they are correct for your local installation.
Even simpler if you use WPTunnel for this purpose.
It creates a local WordPress installation inside a Docker container and proxies it to yoursubdomain.wptunnel.com:
https://github.com/dsdenes/wptunnel
disclamier: I'm the author of the library

Wordpress Plugin Symbolic Link

I am running a test for Wordpress with a symbolic link for a plugin on Windows Server 2016. The folder for the plugin shows up in Explorer in the plugins folder, but even with adding the Everyone permission to the link and the original folder (again, just a test - don't beat me up for that!), Wordpress still doesn't see it.
Any tips? I know multisite may be an option here, but I'm trying to do this first as a proof of concept.
Thanks!

Resources