码迷,mamicode.com
首页 > 其他好文 > 详细

2015.01.31 转移开发环境后所需要做的改动

时间:2015-04-14 09:54:04      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:

转移开发环境后所需要做的改动(倒序 )


7. 挂载目录

  1. # 先卸载目录
  2. umount /usr/local/WholetonTM/webadmin/
  3. # 将 /opt 的 webadmin 挂载至 /usr/local
  4. mount --bind /opt/ws/source/refactor/WholetonTM/webadmin/ /usr/local/WholetonTM/webadmin/

6. 创建数据库

  • 使用php artisan 创建数据表

    1. # 创建表
    2. php -n artisan migrate --force
    3. # 更新表数据
    4. php -n artisan db:seed --force
  • 删除已经存在的数据库

    1. drop table IF EXISTS migrations;
    2. drop table IF EXISTS `tb_menus`;
    3. drop table IF EXISTS tb_dashboard;
    4. drop table IF EXISTS tb_protocol;
    5. drop table IF EXISTS tb_organization;
    6. drop table IF EXISTS tb_global_settings;
    7. drop table IF EXISTS tb_role;
    8. drop table IF EXISTS tb_account;
    9. drop table IF EXISTS tb_product;
    10. drop table IF EXISTS tb_privilege_right;
    11. drop table IF EXISTS tb_privilege;
    12. drop table IF EXISTS UserPolicy;
    13. drop table IF EXISTS User;
    14. drop table IF EXISTS Time;
    15. drop table IF EXISTS DeriveProtocol;
    16. drop table IF EXISTS tb_const_os_enums;
    17. drop table IF EXISTS tb_term_rule_os;
    18. drop table IF EXISTS tb_term_rule_process;
    19. drop table IF EXISTS tb_term_rule_file;
    20. drop table IF EXISTS tb_term_rule_netcard;
    21. drop table IF EXISTS tb_term_rule_regtable;
    22. drop table IF EXISTS tb_term_rule_schedule;
    23. drop table IF EXISTS tb_term_rule_screenshot;
    24. drop table IF EXISTS tb_term_rule_combine;
    25. drop table IF EXISTS tb_term_access_policy;
    26. drop table IF EXISTS rel_term_access_rules;
    27. drop table IF EXISTS tb_const_res_string;
    28. drop table IF EXISTS tb_operation_log;
    29. -- drop table xxxx;

5. php composer

php -n composer.phar install
php -n composer.phar update

4. php Mcrypt

  • 查看 mcrypt 库是否已经安装
    php -n -i | grep mcrypt

  • 1.打包 mcrypt

    1. tar zcvf /opt/ws/phpmcrypt.tgz /usr/local/mcrypt/lib/libmcrypt /usr/local/mcrypt/lib/libmcrypt.so.4.4.8 /usr/local/mcrypt/lib/libmcrypt.so.4 /usr/local/mcrypt/lib/libmcrypt.so /usr/local/mcrypt/lib/libmcrypt.la /usr/local/mcrypt/bin/libmcrypt-config /usr/local/mcrypt/share/aclocal/libmcrypt.m4 /usr/local/apache2/modules/libphp5.so
  • 2.打包 php
    1. tar zcvf /opt/ws/php.tgz /usr/local/php/

3. unzip vendor

unzip ./vendor.zip

2. restart httpd service

/etc/rc.d/init.d/apache restart

1. httpd.conf 需要更改 DocumentRoot AllowOverride All 三个地方

/etc/apache2/httpd.conf

  1. DocumentRoot "/usr/local/WholetonTM/webadmin/public/"
  2. #DocumentRoot "/usr/local/WholetonTM/htdocs/"
  3. #NameVirtualHost *:8000
  4. <Directory "/usr/local/WholetonTM/webadmin/public/">
  5. #<Directory "/usr/local/WholetonTM/htdocs/">
  6. RewriteEngine on
  7. RewriteCond %{REQUEST_METHOD} ^TRACE
  8. RewriteRule .* - [F]
  9. #
  10. # Possible values for the Options directive are "None", "All",
  11. # or any combination of:
  12. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  13. #
  14. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  15. # doesn‘t give it to you.
  16. #
  17. # The Options directive is both complicated and important. Please see
  18. # http://httpd.apache.org/docs/2.4/mod/core.html#options
  19. # for more information.
  20. #
  21. Options -Indexes +FollowSymLinks
  22. #
  23. # AllowOverride controls what directives may be placed in .htaccess files.
  24. # It can be "All", "None", or any combination of the keywords:
  25. # AllowOverride FileInfo AuthConfig Limit
  26. #
  27. AllowOverride All
  28. # AllowOverride None
  29. #
  30. # Controls who can get stuff from this server.
  31. #
  32. Require all granted
  33. </Directory>




2015.01.31 转移开发环境后所需要做的改动

标签:

原文地址:http://www.cnblogs.com/hilow/p/4424029.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!