Classes do not load! Script runs in xampp but does not run in LAMP / LEMP / VPS

0

Well, I made a very light and simple script.

In xampp it runs normal, but when I upload to any server it will not work at all.

I've tried the lamp , lemp (from Digital Ocean), the VPS (Da Dreamhost), but it really will not. p>

The first class to give error was config , but I copied it right into the controller and it worked.

In log , I get this error:

  Unattended Error: Uncaught Error: Class 'Pages' not found in / var / www / html [/ url] [error] [pid 15756] [client 76.4.107.182:50472] /partners/controllers/paginaController.php:10\nStack trace: \ n # 0 /var/www/html/partners/core/Core.php(46): pageController-> index ('home') \ n # 1 /var/www/html/partners/index.php(23): Core-> run () \ n # 2 {main} \ n thrown in /var/www/html/partners/controllers/paginaController.php on line 10

My xampp is php 5.6 I installed a new server with php 5.6 too, and it does not run the same way.

Does xampp come with more things enabled?

    
asked by anonymous 29.01.2018 / 05:31

1 answer

0

I discovered, it was the same sensitive!

The classes were with the first small letter, so I did not think!

Thank you all!

    
29.01.2018 / 20:49