1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Buying PHP sites not working except WordPress

Discussion in 'Programming' started by Ax611, Nov 15, 2016.

  1. #1
    Hello.
    I moved some sites from a server to another. The php version in the new server is 7.0 while the one in the old server is 5.4
    Sites work fine on old server but they don't work on the new server. They show HTTP ERROR 500
    There is a WordPress site in the new server and this one is working fine. Only the custom php sites are not working.
    New server is on ubuntu 16.04 if that matters.
    Need some help to get the sites working.
    If you have experience in solving such problems, send me a message.
    Thanks.
     
    Ax611, Nov 15, 2016 IP
  2. Zoti Media Group

    Zoti Media Group Notable Member

    Messages:
    1,598
    Likes Received:
    113
    Best Answers:
    2
    Trophy Points:
    265
    Digital Goods:
    2
    As Seller:
    100% - 11
    As Buyer:
    100% - 4
    #2
    If you get error 500 there must be a log that explains whats going on. In most cases are file permitions.
     
    Zoti Media Group, Nov 15, 2016 IP
  3. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Odds are the scripts that were running the older version are calling functions that do not exist in the new version PHP. As suggested above, check the error logs for direction. If you are running a control panel on the server, you may have the option of selecting to use a different version of PHP (perhaps even 5.4) for the sites that are not working as well.

    Chris
     
    RHS-Chris, Nov 15, 2016 IP
    sarahk likes this.
  4. Ax611

    Ax611 Active Member

    Messages:
    195
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Thanks for your help guys.
    There's no cpanel. Just lamp stack in ubuntu.
    I know about the error log and I checked it, but I can't get past the errors then.
    Perhaps one of you can take a look at it?
     
    Ax611, Nov 15, 2016 IP
  5. cLogik

    cLogik Active Member

    Messages:
    159
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    90
    As Seller:
    100% - 0
    As Buyer:
    100% - 1
    #5
    Your problem can be anything. It can be as simple as a single function that is deprecated with PHP 7 to needing complete re-writes of entire functions / files to fit the new PHP version.

    It's usually recommened to simply use PHP 5 with your PHP 5 scripts and use PHP 7 with your PHP 7 scripts. Otherwise your only alternative is to have someone go trough the code, and "upgrade" it to support PHP 7 (And most likely no longer support PHP 5, unless you specifically want and ask for it)-
     
    cLogik, Nov 15, 2016 IP
  6. dzyasseron

    dzyasseron Greenhorn

    Messages:
    4
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    13
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    try to downgrade to php5.4
     
    dzyasseron, Nov 16, 2016 IP
    StaSen likes this.