• Dear members,

    I hosted a WordPress website at home but now decided to hoste it elsewhere. Unfortunately after literally copying it to a new host I don’t get it working. I only see PHP code printer without any errors.

    Please take a look at this page so you can see for yourself: spotlikes.nl

    What could this mean? Outdated PHP code? Outdated WordPress? Missing modules on the server?

    Hopefully someone can help.

    Kind regards,
    Robin

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    Did you move everything properly following this guide?

    https://codex.wordpress.org/Moving_WordPress#Changing_Your_Domain_Name_and_URLs

    If not, and if you still have access to the locally hosted site, I recommend trying again following the above guide.

    Thread Starter robintrum

    (@robintrum)

    Unfortunately I have setup everything in the right way. It’s not my first transfer, but this time I get a bugged website. Very strange and I cannot find the cause of it..

    Moderator James Huff

    (@macmanx)

    Ok, if you did the transfer properly, and all you see is PHP code output in the browser, make sure that PHP is actually installed and running on the server.

    Thread Starter robintrum

    (@robintrum)

    Hi James,

    This is also the case. I am able to run standalone PHP-scripts without any problems. Only the WordPress install outputs PHP-code strangely. It is really weird because I never had this problem before. Looks like it has to do something with the host.

    I just downloaded a blank install of WordPress and ran it. Then I also get the PHP-code. Is it possible that the host did something to their standard WordPress install to avoid people from installing their own? I just can’t figure out the cause..

    Moderator James Huff

    (@macmanx)

    Yes, since you have the same problem with a fresh install on the same server, I definitely recommend contacting the hosting provider.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘White page with PHP code’ is closed to new replies.