How to build a Web service that supports Php+mysql database on Ubuntu 14.04 using Jexus

Source: Internet
Author: User
Tags fpm

Preparation section: sudo apt-get update
sudo apt-get install unzip-y
Part I: Installing Jexus
Run the following command at the terminal
Cd/tmp
wget https://www.linuxdot.net/down/jexus-5.8.2-x64.tar.gz
TAR-ZXVF jexus-5.8.2-x64.tar.gz
sudo mv Jexus/usr
sudo mkdir-p/var/www/default
Sudo/usr/jeuxs/jws start

Part Two installation settings php-fpm
First step: Run the following command at the terminal
sudo apt-get update

Step two: Run the following command at the terminal
sudo apt-get install php5 php5-fpm php5-gd php5-cli php5-curl php5-mcrypt php5-readline php5-intl php-pear Php5-imagick Php5-imap Php5-memcache

Php5-ming php5-ps Php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php-apc mysql-server MySQL -client Libmysqlclient-dev php5-

Mysql-y

Step three: Modify the/etc/php5/fpm/pool.d/www.conf file
Vi/etc/php5/fpm/pool.d/www.conf
Will listen =/var/run/php5-fpm.sock
Change to listen = 127.0.0.1:9000
Fourth step: Restart Jexus and PHP5-FPM
Sudo/usr/jexus/jws restart
sudo service php5-fpm restart
The third part installs Mango Cloud Explorer
1, the Purpose: (1) Using Mango Cloud Management MySQL database, (2) Using Mango Cloud Management website or program files.
2, Method: (1) in the terminal run Mkdir-p/var/www/default/mana #这个命令的目的是建立一个mana文件, used to store mango cloud files, mana can be changed to your own liking.
(2) Cd/var/www/default/mana
(3) wget Http://static.kalcaddle.com/update/download/kodexplorer3.35.zip
(4) Unzip Kodexplorer3.35.zip
(5) Set permissions: Chmod-r 777 * *
(6) Visit http://Your IP address/mana/access Mango Cloud Explorer, enter Adminer, build a database.
Part IV upload and install the program, this part omitted, to see the tutorial itself.


Attached I use Jexus to provide HTTP support, PHP-FPM provides PHP support, MySQL provides database support to build two sites
http://www.officejia.cn/Qibo CMS Complete station system
http://www1.officejia.cn/wordpress4.7

These website cases fully illustrate, Jexus completely php+mysql class website and program, and is relatively stable, view Jexus stable running time: http://www.officejia.cn/info

How to build a Web service that supports Php+mysql database on Ubuntu 14.04 using Jexus

Related Article

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.