website code disturbed while hosting on AWS [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a wordpress website which is built on a LAMP stack. We have recently moved our website from Godaddy to AWS platform and since the move, my website is not functioning correctly. Here are the kind of issues we are facing after we moved to AWS.
The website custom login/sign up box has gone and users and we are getting the wordpress default login box instead.
The sign up to the website is not happening because the registration box is the showing strange fields( email, password, username, first name, last name, email again, and a message that we will mail you a password, which doesn't make sense)
The website is a crowd sourced portal so we had a customised CMS system on the website, but the CMS editor in which users create articles is not working fine as it destroys all formatting.
Other similar issues which are making the site look totally shabby and dysfunctional.
I'd be glad if someone could tell me here if we did something wrongly while moving the website. What's the fastes, best way to restore all Site functionalities now.
Thank you

It's unlikely that AWS is the issue here.
What is possible though, is that during the move a file may have become corrupt (or not fully transferred). If you're having lots of temperamental issues throughout the site, such as the ones you're describing, it sounds like it may be a JavaScript error.
If a JS file that is included on every page didn't transfer properly then this could very well cause the issues you're having. If you open your JavaScript Console (Ctrl+Shift+J in Chrome) when you're on one of the problematic pages then you should be able to identify any potential JS errors.

Related

Wordpress site broken home url two hosts, admin is with old host [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I've attempted to search first for related wordpress problems with urls breaking but couldn't find much regarding a wp site wpadmin being stuck on the old host too.
I have my company's WP site hosted at webnames.ca, migration was done some months ago and not by me. It has functioned fine so far, but the wp dashboard is still linked with bluehost.
The original dev site with a different domain is up and hosted on bluehost, still.
I attempted to make a change when trying to do a backup on bluehost before updating to WP 4.9, and inadvertently changed site addresses on bluehost.. [I should have backed up via webnames]
This affected the official current webnames.ca address site, showing a Coming Soon 'Bluehost' splash page, which should not be. I reset the url changes but it did not bring the site back.
If I suspend the webpage via the webnames.ca cpanel, the address shows 503 error[no mention of bluehost]. Im not sure what broke exactly with the URl or DNS.
Am I wrong to suspect the migration to new server wasn't fully complete? because for instance I can still install wordpress app to the webnames server. Currently it has no apps or plugins installed. Could they have been duped forwarding to the old site?
I know as much that the wp-config.php file can be edited manually for the current site name, but would changes I made inadvertently on bluehost have affected the files on the new host?
I dont' currently have much php experience, so I am kind of lost. I have tried to be clear in my description, let me know if I can clarify anything about the issue or improve my question.
Thanks so much.
Alex
Your DNS is, fine in my opinion, but you are missing an MX Record.
For me, http://www.patersoncomposites.ca/ loads perfectly, but I noticed webnames.ca is a Canadian server. I had to use a VPN to go to that site, due to it blocking me. That being said, the host may be the issue if you cannot see it load.
Also, your website is not WordPress. If you backed it as WP, something definitely went wrong. It seems the real website link is http://thepatersonco.com/ and then it connects to WP feature.
In final, the website works for me. This is some information I found that may be the issue, but way too much info for a quick fix answer.

Wordpress Issues with showing changes on GoDaddy hosted Site [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 6 years ago.
Improve this question
I am currently working on a site that is hosted on GoDaddy's Wordpress-Managed hosting. I have had issues come up that I've never seen before. For example, I was working right on the FTP, saving my changes and uploading immediately, but none of the changes I made would show up on the server. I read about GoDaddy's restrictive cache so I worked locally until the theme was done. Even then, after I uploaded, the changes wouldn't show. I double-checked the style file on the server, it was updated, but I could not physically see my changes.
After a few hours, the changes showed. Now, however, I'm still struggling. The styles and JS updates will not show in Incognito or on certain computers. I'm at the end of my rope here on where to go and what to do. Is it something to do w/ my Wordpress functions file and the versioning of my CSS and JS? Does it have to do w/ GoDaddy's server? Would switching from GoDaddy's Managed Wordpress to a basic hosting and installing Wordpress myself be more efficient?
Thanks for anyone's help!
My guess is caching server side (for example some caching modules will cache all PHP files for a given period of time).
The quick and dirty solution is to add a query string to the file(s) you are trying to view to see changes immediately.
Example:
http://mywebsite.com/somefile.php?hucd8239812
You will need to change the query string every time you change the file, but it's a quick and dirty way to break cache.
Thanks everyone for helping me out! It actually all had to do with GoDaddy and their server side caching. For some reason, the files were taking roughly twenty minutes to show changes. I just started working locally and uploading only when I needed to. Don't know if that's the best solution, but it's working for this simple site.

WordPress site hacked with conditional script [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Yesterday i got a bug in my wordpress site, where hacker injected a script which can be seen by googlebot only.
That script is not read or identified on normal browsers.
This is not causing issues site availability or performance but on google search it gives advertisements instead of my site content. which is not good.
while searching on google i got this
https://aw-snap.info/articles/spam-hack-wordpress.php
I tried almost all the options given there.
Can anybody help me to identify the spam?
Thanks
Kiran Peshkar
Google offers a "view as Google" option in webmaster tools. This will help you to see what they see.
I tend to do two things if recovering one of my sites is not obvious what has caused the problem.
Upload a fresh copy of WordPress to my server. This will overwrite all the core files so if any have been hacked the malicious code will be overwritten.
It is likely that a malicious script is hidden somewhere so if it is a simple site I will delete everything and reinstall and re upload plugins. Of course anything in wp-content will need to be saved and restored. But note, a malicious script could be hidden in here.
It might just be easier to do a full restore at this point. Find a recent backup, upload the files and check with Google's tool to see if the malicious code is still active. It is always worth contacting your webhost for help, depending on how good they are they might even sort this out for you.
Remember, any attempt to restore or overwrite files could potentially impact your site or result in data loss so make sure you backup everything you need. Although it is unlikely the malicious code is in the WordPress database you should definitely back this up too.
Unfortunately there is no easy way to remove these types of hack, you never quite know what malicious code has been used. You should consider changing all passwords and reviewing your security so that the hacker doesn't do the same thing again as soon as you get the site up! Make sure all apps on the server are up to date.
Even the most secure WordPress sites get hit from time to time, this is why security is important and why daily backups are essential.

ssl with php payment page [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have looked at the other questions on SSL & PHP on this site and i'm still confused. I have never setup an https page before. I have read articles on ssl and know what it is, but I still don't know how to set it up with my php application hosted on an online Linux server.
I'm frustrated because after a lot of searching (even on this site) i'm lost on what my steps should be. Please help.
I need to set this up with my payment page (member payment) and login page. I'm using codeigniter framework
assuming all else (server stuff) is configured properly, the only thing you need to do is redirect the page to https://your-url instead of http://your-url. It's completely transparent -- just make sure that all assets (external CSS/JS) are loaded using https as well if using absolute paths.
The best way to do so would be to include CSS/JS files via protocol agnostic links ( instead of http://mydomain/mylibrary use //mydomain/mylibrary and it will do it automatically. Images and such should be relative paths anyway.
Usually, the "server stuff" takes all the time to properly setup. However, these are beyond the scope of the question (I hope) since that would be best asked in https://serverfault.com/ .

Is it possible to upload PHP files to blogspot? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am trying to create a blog using blogspot. It seems it is not possible to upload anything other than image files to blogspot. I want to upload a PHP file. I managed to upload the file to google sites, but it is coming as downloadable there instead of executing.
Is there a work-around here other than buying my own server space?
Is there a work-around here other than buying my own server space?
Nope. You can upload PHP files to those services all you want, but you'll never have them executed.
Buying your own server space is usually the best way to go.
There are free hosting offers around but I know of none that is any good, except maybe for the Google App Engine that is free up to a (very generous) traffic limit, in combination with Quercus. That, however, is a very specialized solution, going to be a lot of work to even get started with, doesn't support all modules of PHP, and something rather for professional applications.
But you could simply pay some cheap hosting for PHP, and move your stuff to wordpress.
There's hundred of hostings out there for as low as $1.99 a month, and with that you can host as many PHP files as you like.
Alternatively, you could stick to blogspot, and when you want to use PHP, you can just link to your other server (the one hosting PHP).

Categories