Migrate SilverStripe website from one server to another - silverstripe

I migrated a SilverStripe website from one server to another. To do that I took the following steps:
Transferred a backup of the files from the old server and to the new server.
Dumped the old Database and imported it to the new server.
Updated _conn.php to connect to the new database.
Now when I hit the URL in a browser it is giving a 500 error. I didn't update the DNS for new server, instead I point to new server from my local system via hosts file. If I hit mywebsite.com/robots.txt, it is showing the robots.txt but not showing other pages.

500 error means server error which means something in apache(?), php or other logs. Ensure debug mode is on for SilverStripe to get the most information.
If all else fails start with checking your .htaccess is fine and redirecting and use with debug [die] statements progressively.
Ideally use the silverstripe-installer to debug any server issues and install a clean install, then you can copy the site over when you know it is working.

Related

Why am I getting a redirection loop from PHP built-in web server on AWS Cloud9?

This is my first attempt to migrate a project from Cloud9 to AWS Cloud9 since the clock is ticking.
I have created a brand new environment on AWS Cloud9, which is supposed to work out of the box. I've uploaded WordPress files and database, replaced URLs with my environment's preview URL (https://*.vfs.cloud9.eu-west-1.amazonaws.com), then ran the build with a PHP (built-in web server) runner.
Usually, that's all that is needed to migrate a WordPress website but this time I am stuck in a redirection loop whenever I try to preview the site.
My findings so far are that it's all down to forced SSL by AWS Cloud9. They specifically said they won't allow for any environment to work over a non-secure connection.
When I set the home_url in the options table to "http://...", then the loop breaks and the site appears. Of course, assets don't load because of the insecure connection. However, when I switch back to https in the home_url value, I am back in the loop...
No matter what I put in .htaccess, it doesn't help. I can't even find where to config Apache as the default /etc/httpd/conf.d/httpd.conf refers to /var/www directory, where as AWS C9's default workspace dir is /home/ec2-user/environment.
Below is a screenshot of my console while it's stuck in the loop. It does numerous connection to itself (duh..) and finally terminates.

Site won't connect on word press migration

So I am trying to migrate the local files to a server via cpanel and Filezilla. I went through and made a database and user.
I changed the information in the config.php file and uploaded to server but when I try and view in my domain name I get a ...
This site can’t be reached
testwp.com’s server DNS address could not be found.
Search Google for testwp
ERR_NAME_NOT_RESOLVED
I have been double checking the data in the config file but have no idea what could be causing this issue.
Any ideas? Thank you ahead of time.

Wordpress website not opening after duplicating on local server

I deployed my website from server to my local machine using duplicator plugin. The deployment was successful (no errors). However when I am trying to open the website I get a blank page.
I am using latest version of MAMP server on windows machine. When I try to open http://localhost:8888, I automatically get redirected to http://localhost which is a blank page. Though I am able to access the dashboard through http://localhost:8888/wp-admin. How do I resolve this issue?
1- create index.html file with any text on your local server and try to access it via http://localhost to see if local server is working fine.
2- you need to export mySQL database from website & import to local mySQL server, because on server database urls and names are different.

Getting nginx 404 error on uploaded files

I am using PHP (5.3) to upload jpeg files, create folders for those files and store them. I have a development version and a live version both running on the same server (CentOS 7, Apache, Plesk 12).
On the live version, I am experiencing no problems, but on the dev version, the files are uploading successfully but I am getting nginx 404 errors when trying to access them through the browser.
If I try to access something which doesn't exist, I get a standard 404 error (not an nginx one).
When checking the access_log, I see a 200 code for the files.
Nothing in the error_log nor in the nginx error log.
No differences in PHP code, folder structure or configuration.
I recently changed servers and this is the first time I have attempted this upload on the dev system on this new server. Live version is used daily for this activity.
If I try to access older uploads on the dev server, they all work fine. It is only affecting new uploads.
Permissions and ownership are the same for both live and dev systems and old/new folders/files.
If I manually upload a jpeg to the folder, it also triggers an nginx 404 when accessed.
I have no experience with nginx so I am at a loss as to what I can try to resolve this issue.
It looks like you have upload and access files in one place but checking log in another place.
Are you sure you have no issues with domain name resolving?
Also it can be issue with virtual host - when you access file it overtaken by some other virtual host. It maybe default host for IP address.
I recommend you grep all system and vhost logs for file you have trying to access.

Error 500 during uploading a backup file into Drupal on pc

I am beginner in Drupal, I have downloaded site file from the dev server using Git and while I am trying to run these files in the htdocs(xampp) by localhost. I got the below error
Server error!
The server encountered an internal error and was unable to complete
your request. Either the server is overloaded or there was an error in
a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500
localhost 05/30/12 14:30:17 Apache/2.2.21 (Win32) mod_ssl/2.2.21
OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1
The following link has more details but basicly you need to firs backup and download the database used on yor dev drupal site and upload it on your copy of xampp. After that you need to edit your configuration and maybe your .htacess (if not using the default one that comes with drupal) for your local pc.
http://learnbythedrop.com/drop/95
http://drupal.org/node/350271

Resources