D
D
des1roer2015-04-13 08:58:00
Yii
des1roer, 2015-04-13 08:58:00

Porting Yii from openserver to centos?

I can not understand how local servers differ from normal ones? On the LAN everything is tip-top. I transfer to centos, I get an error about an unknown variable. How to configure them so that they work the same way?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
vyachin, 2015-04-13
@des1roer

On the local server, in the php settings, specify the following parameters

error_reporting  =  E_ALL
display_errors = On

This will enable more strict mode and you will see any errors in the code before deploying to the production server. Don't suppress error output (as @kawabanga suggests), errors should be fixed.

D
Dmitry Bay, 2015-04-13
@kawabanga

disable error display in php.ini.

O
OnYourLips, 2015-04-13
@OnYourLips

How to configure them so that they work the same way?
Use vagrant locally with centos.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question