公司OA项目中需要注意的配置,这里做一下记录。
Table of Contents
MySQL部分
在 [mysql] 区域下添加配置:
innodb_page_size=32k  sql-mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
具体出现问题如下:
- MySQL 倒入数据出现 ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTED 错误 解决办法
 - MySQL调整innodb_page_size之后出现[ERROR] InnoDB: Data file /data/mysql/poweridc/data/ibdata1 is of a different size xxx pages
 - MySQL 出现 which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by错误 解决办法 图文教程
 - OneinStack PHP 环境添加 calendar 扩展
 
.sql 文件修改
搜索一下2个部分,将如下部分删除:
-  /*!50013 DEFINER=
admin‘@’localhostSQL SECURITY DEFINER */ -  /*!50013 DEFINER=
xiaohai@%SQL SECURITY DEFINER */ 
否则 /xz_sqxg/gong_index 将会报错。
具体错误请检查 .sql 文件中的视图部分sql代码。
Apache配置
以下配置需写在 .conf 文件中,否则不能正常运行。
RewriteEngine on RewriteCond %{REQUEST_METHOD} ^TRACE RewriteRule .* - [F] RewriteRule !(^/static|.(gif|swf|exe|png|jpg|js|css)$) /index.php [L]
Nginx
或使用nginx配置
location ~* ^/(?![static])  {     rewrite ^(.*)$ /index.php last; }  location ~ .php$ {     #root           html;     fastcgi_pass   jphp-fpm:9000;     fastcgi_index  index.php;     fastcgi_param  SCRIPT_FILENAME  /data/wwwroot/POWER_IDC$fastcgi_script_name;     fastcgi_param  SCRIPT_URL $request_uri;     include        fastcgi_params; }
								
				
 
                                    
评论已关闭