walle-web-1.2.0 Deployment Documentation

Source: Internet
Author: User

Because there were too many pits at the time of deploying Walle-web, make a complete record here, so that the people behind the deployment are less likely to step on the pit.


Environment: LNMP (CentOS6.5 php5.6) svn ansible

PHP needs to turn on pdo_mysql,exec function execution


One, composer installation, here I am using the way one, because the way two installs encountered an error. If wget is not available, you can download it directly from your browser and upload it to the server.

1,composer Download

Global installation Method One

wget MV Composer.phar/usr/local/bin/composer

Global Installation Method II

Curl-ss Https://getcomposer.org/installer | PHPMV Composer.phar/usr/local/bin/composer

3, give composer executable permission

chmod +x/usr/local/bin/composer

Two, install MySQL

1,yum installing MySQL

Yum install MySQL Mysql-server

2. Set MySQL password

Mysqladmin-uroot password "123456"

3, you need to create a site database manually

Create DATABASE Walle

#修改网站数据库连接文件

VI config/local.php ' username ' = isset ($_env[' Walle_db_user ')? $_env[' Walle_db_user ': ' Root ', ' password ' = isset ($_env[' Walle_db_pass ')? $_env[' walle_db_pass ': ' 123456 ',


Third, the first is to install PHP, which is installed in Yum way.

1, install php5.6 Epel and Remi Source.

RPM-UVH HTTP://FTP.IIJ.AD.JP/PUB/LINUX/FEDORA/EPEL/6/X86_64/EPEL-RELEASE-6-8.NOARCH.RPMRPM-UVH/HTTP rpms.famillecollet.com/enterprise/remi-release-6.rpm

2, use the Yum List command to view the installable packages (Packege).

Yum List--enablerepo=remi--enablerepo=remi-php56 | grep php

The 3,yum source is configured, and the next step is to install PHP5.6.

Yum install--enablerepo=remi--enablerepo=remi-php56 php php-fpm php-opcache php-devel php-mbstring php-mcrypt Php-mysqlnd Php-phpunit-phpunit Php-pecl-xdebug php-pecl-xhprof

4. Check the PHP version.

PHP--version

5. View the installed PHP module.

Php-m


Four, install Nginx

1,yum Installing Nginx

Yum Install Nginx

Nginx configuration file for 2,walle-web

server {    listen       80;     server_name  walle.compony.com; #  change to your domain     root /data/www/ walle-web/web; #  root directory is web    index index.php;    #  Suggest to put intranet     # allow 192.168.0.0/24;    # deny all;     location / {        try_files $ uri  $uri/ /index.php$is_args$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;     }}


Five, install vendor

CD walle-webcomposer install--prefer-dist--no-dev--OPTIMIZE-AUTOLOADER-VVVV

Slow or failed installation, direct download vendor extract to project root directory


Six, initialize the project

CD Walle-web./yii Walle/setup


Seven, host installation SVN

Yum Install Subversion


Eight, host installation ansible, concurrent transfer files, speed up the release.

Yum Install Ansible


Nine, with IP or domain name login walle-web Management page, the default account password is admin.


Ten, for new projects and on-line deployment can refer to the official documentation.


11, the new deployment project checks for several issues that may be encountered when unsuccessful.

1, the target server site parent directory [/DATA/WWW] and the repository directory [/data/release] must have read and write access to www

2, Site Directory/data/www/website do not create, this is a soft link created.

Chown Www.www/data/releasechown www.www/data/www

3, host and target server PHP process user [www] to be able to log on to the server

4, host PHP process user [Www]ssh-key join target machine PHP process user [Www]ssh-key Trust list

Su-wwwssh-keygen-t rsassh-copy-id-i ~/.ssh/id_rsa.pub "-p [email protected] target Host 1" Ssh-copy-id-i ~/.ssh/id_rsa.pub " -p [email protected] Target Host 2 "


This article is from "I am in, I hold." "Blog, be sure to keep this provenance http://66332211.blog.51cto.com/6002782/1981999

walle-web-1.2.0 Deployment Documentation

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.