Fastadmin Installation Guide under Ubuntu 16.04

Source: Internet
Author: User
Tags fpm

This blog is reproduced in the Fastadmin forum, to facilitate their own look to go to the blog

Description of the document is not many, specially made one, convenient for everyone to communicate with
Ubuntu 16.04 Installation Fastadmin Guide
This article has been developed using Phpstudy in Windows, due to the majority of people. In order to eliminate everyone on Ubuntu under the unfamiliar sense of installation, close this article, look at the brick.
Fastadmin Operating Environment

Nginx 1.12.2php 7.0.27mysql 5.7.21

Environment Essentials:

vmware 虚拟机ubuntu 16.04桌面版 (可下载的最新版16.04.3)securecrt (或者Xshell等)

Installation steps:
1. Install Ubuntu 16.04 with VMware
Here slightly, Baidu on more than N, please self-practice, the user name in this article is FA
2, Installation Openssh-server

install openssh-server

3. Login with SSH software such as SecureCRT
N Multiple use methods on the Web
4, add nginx and PHP to use the PPA source

update

5. Installing Nginx

install nginx

View the version of Nginx after installation

nginx -v

6. Install PHP
Ubuntu 16.04 defaults to Php7.0, but requires PHP-FPM

install php7.0-fpm

View post-Installation PHP versions

php -v

7. Install MySQL

install mysql-server mysql-client

--Install the note will prompt to install the input database root password, memory poor, do not forget to write down-
View post-installation MySQL version

mysql —version

8, Installation Bower

install nodejs npmsudo npm install bower -gsudo ln -s /usr/bin/nodejs /usr/bin/node

To view the version of Bower after installation

bower -v

9, installation composer
Method One: Ubuntu program comes with

install composer

Method Two:
If you feel you need a newer version, refer to the installation instructions for https://www.phpcomposer.com/
Configure the source for composer to be a Chinese mirror

composer config -g repo.packagist composer https://packagist.phpcomposer.com

View post-Installation composer versions

composer -V

10. Install the required PHP extensions

sudo apt install php7.0-gd php7.0-xml php7.0-mysql php7.0-curl php7.0-zip

View the loaded extensions

php -m

11. Clone Fastadmin Latest Version

clone https://git.oschina.net/karson/fastadmin.git

12. Install Bower packages and composer dependencies

installcomposer install

Configuring Nginx Support Fastadmin (THINKPHP5)
This article is an example, the actual path or domain name should be modified according to your needs (the following added in the last)

sudo nano/etc/nginx/sites-available/Defaultserver {Listen80;    server_name www.fa.com; Access_log/Var/log/nginx/fastadmin_access.log; Error_log/Var/log/nginx/fastadmin_error.log; Set $root/home/fastadmin/Public , Location ~ *\. (Gif|jpg|jpeg|bmp|png|ico|txt|js|css) $ {root $root;} location/{root $root; index index.html index.php; if (-F $request _filename) {break ;} if (!-e $request _filename) {rewrite ^ (. *) $/index.php/$1 last; Break ;} } location ~ ^/(uploads|assets)/.*\. (php|php5|jsp) $ {deny all,} location ~. +\.php ($|/) {fastcgi_pass unix:/var/run/php/php7. 0-fpm.sock; fastcgi_s Plit_path_info ^ (? U). +.php) (/?. +)$; Fastcgi_param path_info $fastcgi _path_info; Fastcgi_param path_translated $document _root$fastcgi_path_info; Fastcgi_param script_filename $root $fastcgi_script_name; include Fastcgi_params;}}        

Adjust the environment according to Nginx configuration

sudo chmod 777 /home/fastadmin/ -Rsudo chown www-data:www-data /home/fastadmin/ -R

Add hosts based on configuration

sudo nano /etc/hosts

Add (depending on the situation)

127.0.0.1 www.fa.com

Re-start Nginx

systemctl restart nginx或nginx -s reload

Enter the installation
In the browser input

https://www.fa.com/install.php

Fastadmin Installation Guide under Ubuntu 16.04

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.