Today, porting a program to a remote server has a number of unusual errors, no local errors, and a variety of problems after the server. The problem that you are experiencing for the first time is summarized later and will be updated continuously
1.php Yii: appears undefined offset or undefined index solution
Workaround: Modify the configuration in php.ini, no increase
Log_errors = on
error_log = "/usr/local/lnmp/php/var/log/error_log"
error_reporting=e_all&~e_notice
Remember to restart Apache/ngnix.
2. Cannot use the EXEC () function warning:exec () has been disabled for security reasons in
The exec () function is not available
Program error: Warning:exec () has been disabled for security reasons in
Reason: There is a disable_functions configuration in php.ini, the default configuration, CLI execution functions are prohibited, if necessary, in php.ini will disable_functions = exec, Popen, system .... , delete the function you need to perform from the list to restart Apache.
is completely a problem with configuration.
Php-apache2handler.ini
Ini
Disable_functions = Proc_open, Popen, exec, System, shell_exec, PassThru
@author www.yiicms.net