Forum
Problems moving from staging site to live site
Hello,
I have a perch site that is ready for launch but I am having some issues getting it setup on the live servers. While parts of this may fall outside the realm of Perch support, hopefully you can provide some clarity.
I have developed the site on local development environment (running mamp) and have it currently staged on my personal host gator server (setup as a subdomain). I am attempting to take this same site and move it over to a new hosting package on host gator for only for this particular client. I have run into a myriad of problems and cannot figure out why.
The first and most pressing is that when I go to my newly hosted page, php appears to not be running at all and I cannot understand why. I ran the perch compatibility test, again, on this new server just to check that the database was configured properly.
It passed with no problems.
Not sure where to start fixing this, but getting php to run would be helpful.
Pictures that may help.
Nathan, First photo you post has a partial php tag outputting in the html. This would lead me to believe there is an open line of php somewhere or php in an html template.
If your pages have a .html extension then you may need to tell your server they are to be parsed as PHP.
See the docs here: https://docs.grabaperch.com/docs/adding-perch/file-extensions/
Yeah, php isn't being parsed on your server. When I look at the page source @ https://gator4170.hostgator.com/~hmccadmin/ it's just outputting the php and html.
See the docs here: https://docs.grabaperch.com/docs/adding-perch/file-extensions/
Thank you so much. I must have lost the .htaccess file when FTP all the stuff up to the server. I realized it wasn't parsing the PHP, but could not figure out why!
Again, thank you so much!