Home

Awesome

Description

ezhttp is a powerful bash script for the installation of web server(Apache,Nginx,PHP,MySQL and etc).You can install Apache Nginx PHP MySQL in an very easy way,Just need to input numbers to choose what you want to install before installation.And all things will be done in a few minutes.

Supported System

Supported Software

Useful Tools

Installation

wget  https://github.com/centos-bz/ezhttp/archive/master.zip?time=$(date +%s) -O ezhttp.zip
unzip ezhttp.zip
cd ezhttp-master
chmod +x start.sh

Interactive installation

./start.sh

Non-interactive installation

./start.sh -h #  option h to print help info

Default Location

Nginx Location
Install Prefix/usr/local/nginx
Main Configuration File/usr/local/nginx/conf/nginx.conf
Virtual Host Configuration/usr/local/nginx/conf/vhost/
Apache Location
Install Prefix/usr/local/apache
Main Configuration File/usr/local/apache/conf/httpd.conf
Virtual Host Configuration/usr/local/nginx/conf/vhost/
PHP Location
Install Prefix/usr/local/php
Ini Configuration File/usr/local/php/etc/php.ini
FPM Configuration File/usr/local/apache/conf/vhost/
MySQL Location
Install Prefix/usr/local/mysql
Data Location/usr/local/mysql/data
my.cnf Configuration File/usr/local/mysql/etc/my.cnf
Error Log Location/usr/local/mysql/data/mysql-error.log
Slow Log Location/usr/local/mysql/data/mysql-slow.log

Process Management

ProcessCommand
nginx/etc/init.d/nginx (start|stop|restart)
apache/etc/init.d/httpd (start|stop|restart)
php-fpm/etc/init.d/php-fpm (start|stop|restart)
mysql/etc/init.d/mysqld (start|stop|restart)

ez command description

CommandDescription
ez vhost addcreate virtual host
ez vhost listlist all virtual host
ez vhost delremove a virtual host
ez mysql resetreset mysql password
ez mysql addcreate a mysql user
ez mysql modmodify a mysql user
ez mysql deldelete a mysql user
ez ftp addadd a ftp user
ez ftp listlist ftp user
ez ftp deldelete a ftp user
ez ftp modmodify a ftp user

Bugs & Issues

Please feel free to report any bugs and issues to me, my email is: admin@centos.bz.
中文支持:https://www.centos.bz/2017/02/ezhttp/