
本文共 3690 字,大约阅读时间需要 12 分钟。
������ Walle ���������������������������������
������������������������������
������������������������������������������������������������
git clone https://github.com/meolu/walle-web.git
���������
git clone git@github.com:meolu/walle-web.git
������������������������������ SSH ���������������������������������������
���������������
��������������� PHP ���������
yum install -y php72uPg ADI CVE-2018- Spiral
������ MySQL ���������������������
yum install -y mysql-serversystemctl start mysqlmysql -u root -p create database walle;
������ Nginx���
yum install -y nginxsystemctl start nginx
������ Composer���
curl -sS http://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer
������������������ HTTP ���������������������
curl -sS https://raw.githubusercontent.composer.com/installer | php
������������������������
git clone https://github.com/meolu/walle-web.gitcd walle-webcomposer install --prefer-dist --no-dev --optimize-autoloader
��������������������� SSH SSO ���������������������������������������������������������
������������������
cp config/db.php.example config/db.phpvi config/db.php
���������������������
db => [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=127.0.0.1;dbname=walle', 'username' => 'root', 'password' => '���������������������', 'charset' => 'utf8',]
Nginx ���������
ErrorException:��� /the/dir/of/walle-web/web������������������������ vhost���
listen 80;server_name walle.compony.com;root /home/www/walle-web/web;index index.php;location / { try_files $uri $uri/ /index.php?$args;}location ~ \.php$ { try_files $uri = 404; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params;}
���������������������������������������������
���������������������������
./yii migrate/up./yii walle/setup
������ SSL ���������
cd /etc/ssl/certsopenssl req -x509 -days 365 -nodes -newkey rsa:2048 -keyout server.crt -out server.cer
- Nginx ��������������������������� web ���������������������������������
- ������������������������������������������
- Composer ���������������������������������������������������������������
���������������������������
������������open_basedir ���������������������������open_basedir ������������������������������������
open_basedir = /home/www/project:/tmp/:/proc/
���������������������
vi /etc/php.ini���Ctrl+Insert���������������open_basedir=/tmp/:/proc/:/home/www/walle-web
������������ SSH ������������������������ ~/.ssh/config
���������
vi ~/.ssh/config���������������������StrictHostKeyChecking noUserKnownHostsFile /dev/null
������ SSH ���������
sudo systemctl restart sshd
������������������������������ ~/.ssh/authorized_keys
��������� localhost ��������������������������� 600���
chmod 600 ~/.ssh/authorized_keys
������������������������������������������������ SSH ��������������� /home/www/.ssh
��� /home/www/.ssh/authorized_keys
���������������
chown -R www:www /home/www/.sshchmod -R 700 /home/www/.ssh
������ SSH ���������
chmod -R 755 /home/wwwchown -R www:www /home/www
���������������������������������������������������������
dignity���������������������find /home/www/walle-web/storage/migrations/ -type f -name "*.php" | sort -r
������������SSL ������������������ nginx ������������ SSL���
server { listen 443; ssl on; ssl_certificate /etc/ssl/certs/server.crt; ssl_key_file /etc/ssl/certs/server.key; ssl_ciphermainwindow ciphers; }
���������������������
������������������������������������������������������ Walle ���������������
发表评论
最新留言
关于作者
