0

I have a php application. Its built in php (raw php). In my local pc its running. but when I upload to live server (ubuntu 16.04) then it doesn't work.

I have installed all php dependencies in Live server ... Still the files are not working. I found some problem in live server as given below:

  1. Raw PHP (5.4 version coded ) is not working
  2. Class does not call from Index.php file
  3. When I run exit("OK") its return OK but page not running
  4. when I add a class like $doc = ClassName::getInstance(); its not running.. Returns NULL

I think I made very silly silly mistakes. Here is the live server info :

  1. IP 35.160.167.129

  2. info.php : http://35.160.167.129/info.php => its running

Would you please help me how do I resolve this issue. Thanks in advance

18
  • Anything show up if you turn error reporting on? -> ini_set('display_errors', 1); error_reporting(-1);? Commented Nov 17, 2016 at 6:58
  • have you given the permission to files Commented Nov 17, 2016 at 6:59
  • could you please define "not working"? also, AFAICR, PHP5.4 is outdated. just as i side note. Commented Nov 17, 2016 at 7:01
  • 2
    @SelimReza okay, just a wild guess: your new server has PHP7.... don' t use mysql_-functions, they are deprecated for quite some time now and in PHP7, completely removed. port your application to mysqli_ or PDO. Commented Nov 17, 2016 at 7:03
  • 2
    Possible duplicate of "Call to undefined function mysql_connect()" after upgrade to php-7 Commented Nov 17, 2016 at 7:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.