Changes that need to be made since the development environment was transferred in 2015.01.31

Source: Internet
Author: User
Tags mcrypt

Changes required after the development environment is transferred (reverse) 7. Mount Directory
  
 
  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. Create a database
  • Create a data table using PHP artisan

      
         
       
    1. # 创建表
    2. php -n artisan migrate --force
    3. # 更新表数据
    4. php -n artisan db:seed --force
  • Delete a database that already exists

        
       
    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
  • See if the MCrypt Library is already installed
    Php-n-I. | grep mcrypt

  • 1. Packing 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. Package 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 need to change documentroot allowoverride all three places

/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>


From for notes (Wiz)

Changes that need to be made since the development environment was transferred in 2015.01.31

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.