标签:
# 先卸载目录umount /usr/local/WholetonTM/webadmin/# 将 /opt 的 webadmin 挂载至 /usr/localmount --bind /opt/ws/source/refactor/WholetonTM/webadmin/ /usr/local/WholetonTM/webadmin/
使用php artisan 创建数据表
# 创建表php -n artisan migrate --force# 更新表数据php -n artisan db:seed --force
删除已经存在的数据库
drop table IF EXISTS migrations;drop table IF EXISTS `tb_menus`;drop table IF EXISTS tb_dashboard;drop table IF EXISTS tb_protocol;drop table IF EXISTS tb_organization;drop table IF EXISTS tb_global_settings;drop table IF EXISTS tb_role;drop table IF EXISTS tb_account;drop table IF EXISTS tb_product;drop table IF EXISTS tb_privilege_right;drop table IF EXISTS tb_privilege;drop table IF EXISTS UserPolicy;drop table IF EXISTS User;drop table IF EXISTS Time;drop table IF EXISTS DeriveProtocol;drop table IF EXISTS tb_const_os_enums;drop table IF EXISTS tb_term_rule_os;drop table IF EXISTS tb_term_rule_process;drop table IF EXISTS tb_term_rule_file;drop table IF EXISTS tb_term_rule_netcard;drop table IF EXISTS tb_term_rule_regtable;drop table IF EXISTS tb_term_rule_schedule;drop table IF EXISTS tb_term_rule_screenshot;drop table IF EXISTS tb_term_rule_combine;drop table IF EXISTS tb_term_access_policy;drop table IF EXISTS rel_term_access_rules;drop table IF EXISTS tb_const_res_string;drop table IF EXISTS tb_operation_log;-- drop table xxxx;
php -n composer.phar install
php -n composer.phar update
查看 mcrypt 库是否已经安装
php -n -i | grep mcrypt
1.打包 mcrypt
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
tar zcvf /opt/ws/php.tgz /usr/local/php/
unzip ./vendor.zip
/etc/rc.d/init.d/apache restart
/etc/apache2/httpd.conf
DocumentRoot "/usr/local/WholetonTM/webadmin/public/"#DocumentRoot "/usr/local/WholetonTM/htdocs/"#NameVirtualHost *:8000<Directory "/usr/local/WholetonTM/webadmin/public/">#<Directory "/usr/local/WholetonTM/htdocs/">RewriteEngine onRewriteCond %{REQUEST_METHOD} ^TRACERewriteRule .* - [F]## Possible values for the Options directive are "None", "All",# or any combination of:# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews## Note that "MultiViews" must be named *explicitly* --- "Options All"# doesn‘t give it to you.## The Options directive is both complicated and important. Please see# http://httpd.apache.org/docs/2.4/mod/core.html#options# for more information.#Options -Indexes +FollowSymLinks## AllowOverride controls what directives may be placed in .htaccess files.# It can be "All", "None", or any combination of the keywords:# AllowOverride FileInfo AuthConfig Limit#AllowOverride All# AllowOverride None## Controls who can get stuff from this server.#Require all granted</Directory>
标签:
原文地址:http://www.cnblogs.com/hilow/p/4424029.html