I need to run a file that I placed on an AWS server using sftp - wordpress

I have a bitnami WordPress instance using AWS lightsail. I need to migrate the site to another identical AWS instance. I created a PHP installer from the first instance using the Wordpress Duplicator plugin.
I then uploaded the file onto the new server to a folder (opt/bitnami/apache2/htdocs/).The instructions I've seen online they say I just need to navigate to the location of the installer in a browser and it will run. However, when I attempt to access the PHP file from a browser I just get an error on the front-end saying:
OOPS! THAT PAGE CAN’T BE FOUND
I have seen suggestions online that the installer be placed into a public folder called html_public but my instance doesn't have a folder like that. I changed the access rights to the folder, and the installer, to be full rw access.
Any ideas how I can get this to work?

You must config the Security Groups firewall to open the HTTP port.
Open the Amazon VPC console at [https://console.aws.amazon.com/vpc/]
On the Inbound Rules tab, choose Edit the port range 80, 443 - Source: Anywhere - IP Address: 0.0.0.0/0 and Save.

Related

XAMPP wordpress LAN, redirect to localhost

I cant access my local site installed on pc from other device.
If i put 192.168.x.x, is loading 192.168.x.x/dashboard. The same for lan. its good.
Putting 192.168.x.x/site will be loaded my wordpress site for local pc without problems, but will redirect to localhost/site for lan devices! Why??
No hosts modified, no xampp files modified. In wordpress settings, the urls (2) are setted as 192.168.x.x/site
Restart apache does not help.
What happens?
Edit0:
I have modified one thing:
httpd.conf, Listen 192.168.x.x:80
Edit1:
I added new folder 'test' and 'index.html' with 'TEST' text. Is working, i can access from any device with 192.168.x.x/test. So, is some problem with wordpress? I will try to install wordpress again, to new folder.
Solution: reinstall wordpress.
If you are using Windows OS, first of all, check your sharing settings:
Control Panel\All Control Panel Items\Network and Sharing Center\Advanced sharing settings.
Make your network discoverable. If you don't know which type of network you are using you can find it from here: Control Panel\All Control Panel Items\Network and Sharing Center > View your active networks.
If you couldn't find that, choose "Turn on network discoverable" for all of them but please note that this is an unsecured way.
Then use ping command from other devices to check that your local PC is reachable.
If your PC was reachable from other devices, then you can open your local-website by opening your local IP address:
http://192.168.x.x
You can use these configurations for your Apache:
Listen 192.168.x.x:80 OR
Listen 80 OR
Listen 0.0.0.0:80

How to move wordpress website with ssl on localhost?

Website with ssl on wordpress. Moved it on localhost, changed wp-config, changed https://olddomain.ru to http://newdomain.ru.
But still have error ERR_SSL_PROTOCOL_ERROR in browser and Invalid method in request \x16\x03\x01 in apache2 logs.Trying to start it via MAMP. How to disable SSL?
This question relates to current and previous MAMP and MAMP PRO versions. MAMP PRO assists in replicating basic web host production environment on a users local Windows based system.
First, it's best to isolate the problem by disconnecting your system from internet.
Turning off GroupStart for Apache and MySQL by un-checking "Include MySQL in GroupStart" is another isolation problem solving technique:
https://documentation.mamp.info/en/MAMP-PRO-Windows/Servers-and-Services/Apache/
https://documentation.mamp.info/en/MAMP-PRO-Windows/Servers-and-Services/MySQL/
Emptying logs by erasing the log files prior to trying out the steps below is another way to isolate problems:
C:\MAMP\logs
Most local systems have AntiVirus program and the antivirus program usually has software firewall bundled. Be sure to add Web Server and HTTPS ports under ports and services of your choice of AntiVirus software.
1. Custom Domain:
First issue is related to assigning custom domains. A custom domain is assigned by modifying Windows Hosts file to point localhost host with IP 127.0.0.1 to a fictitious domain name.
Here is how the default hosts file looks like:
https://support.microsoft.com/en-us/help/972034/how-to-reset-the-hosts-file-back-to-the-default
Here is the required modification:
hosts file
127.0.0.1 newdomain.ru
::0 localhost
::0 is the bus/port designation of a systems network adapter. Usually the first available network adapter software on a device has ::0 address.
After modifying hosts file be sure to flush dns by using Windows command prompt:
ipconfig /flushdns
2. Location of Virtual Hosts data
MAMP documentation recommends you store virtual Hosts data outside of default C:\MAMP\htdocs directory.
https://documentation.mamp.info/en/MAMP-PRO-Windows/First-Steps/View-Localhost/
3. Serverside language application
MAMP recommends to serve serverside language applications such as WordPress on port 80 in your local development environment.
https://documentation.mamp.info/en/MAMP-PRO-Windows/Troubleshooting/WordPress/WordPress1/

Why my webservice runs in localhost but doesn't run in my host on the internet?

I wrote a simple web service and published it, then upload it in my host. There is a folder with name "webservice1" in my host, beside other files of my web site.
In folder "webservice1" I upload 2 files: myclass_Service1.asmx and web.config and a folder bin which has dll files.
But when I type the address of my webservice in the URL, it isn't recognized.
I also upload files in root of my host, but they also aren't recognized.
In my local host it will run, but on my host it doesn't
Why?
thanks
What exactly does your Browser say?
Sounds like a Firewall issue to me:
Open the "Windows Firewall with Advanced Security"
Choose the "Inbound Rules"
Search for Rules including "WWW-Services" or Similar
Make sure to Activate the Rules allowing Port 80 (and 443 for https)
Screenshot (Sorry for german):
Windows Firewall

Access wordpress website on localhost from remote network

I want to show my client the WordPress website on localhost being developed by me (it's still in the beginning stage, not ready to go live yet). This is what I have done so far:
- I have done port forwarding and have tested it (whenever I access my Xampp localhost from the remote network by entering my computer's ip, it opens up the localhost dashboard).
Now this where I'm stuck:
- Whenever, I specify a directory of website (in htdocs) on my remote network's url (like this: mycomputer's ip/folder's name it changes the url to localhost/folder's name and the page doesn't open).
How do I resolve this issue?
Add this line to your wp-config.php might help:
define('WP_HOME','http://your-computer-IP');
define('WP_SITEURL','http://your-computer-IP');
and comment or delete that line when your work from home.
But there's something can be improved. Try to some DDNS services and install their application to your local machine. After installed, you can access your computer from mymachine.ddns.net even you're home or not. So with below setting, you no need to edit anything when you change your work location.
define('WP_HOME','http://mymachine.ddns.net');
define('WP_SITEURL','http://mymachine.ddns.net');

Cannot install plugin on JIRA Server

We have JIRA-Software 7 running on a custom docker machine with a Postgres DB and nginx as a reverse proxy (SSL). The custom domain is https://jira.url.de and is working so far. Installation has not been a problem.
But now i wanted to install a plugin and i get the following error:
An unexpected error has occurred. Please refer to the logs for more information.
First of all where can i find the logs?
Second - i found out that if i click on "Manage Add-on i will be directed to a 500 error on http://127.0.0.1:8080/plugins/servlet/upm
I read somewhere about configuring the server.xml file in order to correct the plugin url. But how can i edit this file? I can not find it inside the docker container.
UPDATE
if i try to update the Atlassian Universal Plugin Manager Plugin i get the following console Notice:
[blocked] The page at https://jira.url.de/plugins/servlet/upm was not allowed to display insecure content from http://127.0.0.1:8080/rest/plugins/self-update/1.0/.
If by clicking to Manage Add-ons you will go to loopback IP Address, most likely your Base URL is not configured properly. Thus, I would say ensure that your base URL configured properly.
Other than that, you need to ensure that you do have proxyName and proxyPort configured in server.xml file. I would say check this document for full details about Nginx configuration.
Lastly, installing plugin from UPM requires access to Marketplace. Thus, you need to ensure that your docker image is able to communicate with Atlassian Marketplace.
Hint:
Monitor atlassian-jira.log file which is in home directory of the jira. That way, you will get better information from the logs.

Resources