Git Product home page Git Product logo

centos-bz / ezhttp Goto Github PK

View Code? Open in Web Editor NEW
435.0 51.0 161.0 1.95 MB

The bash shell script stack for installation of Nginx OpenResty Tengine lua_nginx_module nginx_concat_module nginx_upload_module ngx_substitutions_filter_module Apache-2.2 Apache-2.4 MySQL-5.1 MySQL-5.5 MySQL-5.6 MySQL-5.7 PHP-5.2 PHP-5.3 PHP-5.4 PHP-5.5 PHP-5.6 ZendOptimizer ZendGuardLoader Xcache Eaccelerator Imagemagick IonCube Memcache Memcached Redis Mongo Xdebug Mssql Memcached PureFtpd PhpMyAdmin Redis Mongodb PhpRedisAdmin MemAdmin RockMongo Jdk7 Jdk8 Tomcat7 Tomcat8

Shell 88.94% HTML 0.29% PHP 10.77%
mysql nginx php apache

ezhttp's Introduction

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

  • CentOS-5.x
  • CentOS-6.x
  • CentOS-7.x
  • Ubuntu-12.04
  • Ubuntu-14.04
  • Ubuntu-16.04
  • Debian-6
  • Debian-7
  • Debian-8
  • Other Linux Distribution

Supported Software

  • Nginx OpenResty Tengine
  • Nginx Module: lua_nginx_module nginx_concat_module nginx_upload_module ngx_substitutions_filter_module
  • Apache-2.2 Apache-2.4
  • MySQL-5.1 MySQL-5.5 MySQL-5.6 MySQL-5.7
  • PHP-5.2 PHP-5.3 PHP-5.4 PHP-5.5 PHP-5.6 PHP-7.1
  • PHP Module: ZendOptimizer ZendGuardLoader Xcache Eaccelerator Imagemagick IonCube Memcache Memcached Redis Mongo Xdebug Mssql
  • Other Software: Memcached PureFtpd PhpMyAdmin Redis Mongodb PhpRedisAdmin MemAdmin RockMongo Jdk7 Jdk8 Tomcat7 Tomcat8

Useful Tools

  • System_swap_settings - setup swap automatic
  • Generate_mysql_my_cnf - generate mysql my.cnf configuration file according your server memory and other option you set.
  • Create_rpm_package - package your software with rpm tool.
  • Percona_xtrabackup_install - install xtrabackup.Helpful when need to backup the MySQL data.
  • Change_sshd_port - change your sshd port automatic
  • Iptables_settings - setup iptables in an easy way
  • Enable_disable_php_extension - manage your PHP extensions
  • Set_timezone_and_sync_time - setup system timezone and synchronize time with ntp
  • Initialize_mysql_server - initialize mysql server data
  • Add_chroot_shell_user - create a linux system user with a chroot home directory
  • Network_analysis - this tool is definitely helpful when you need to know your network status.
  • Backup_setup - powerful backup tool.

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

Process Command
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

Command Description
ez vhost add create virtual host
ez vhost list list all virtual host
ez vhost del remove a virtual host
ez mysql reset reset mysql password
ez mysql add create a mysql user
ez mysql mod modify a mysql user
ez mysql del delete a mysql user
ez ftp add add a ftp user
ez ftp list list ftp user
ez ftp del delete a ftp user
ez ftp mod modify a ftp user

Bugs & Issues

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

ezhttp's People

Contributors

centos-bz avatar doopsky avatar lihao5325 avatar wind4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ezhttp's Issues

centos.bz无法访问

项目放弃了吗,官网已经无法访问,包下载站
dl-cn.centos.bz
dl-us.centos.bz
也不能访问,还维护吗

一点小bug

centos6.6 php7安装失败,提示:

collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

debian7下memcached没有链接到php,不知道什么原因。
手动解决了

MySQL 5.7 boost 版本问题

config.sh 第101行
boost版本为1.59合适,1.66.0版本安装时编译会出问题
boost_filename="boost_1_59_0" set_md5 $boost_filename "51528a0e3b33d9e10aaa311d9eb451e3" set_dl $boost_filename ' http://jaist.dl.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz '

Ubuntu-14.04 装 nginx 1.8.0 & 1.8.1 失败

在使用vagrant 的 ubuntu virtualbox image的时候出错, box信息:
https://atlas.hashicorp.com/ubuntu/boxes/trusty64
首次报错后,通过
apt-get install automake
但貌似依然有版本匹配问题

报错:

make[2]: Entering directory /vagrant/ezhttp/soft/pcre-8.33' cd . && /bin/bash /vagrant/ezhttp/soft/pcre-8.33/missing automake-1.14 --gnu Ma kefile configure.ac:29: error: version mismatch. This is Automake 1.14.1, configure.ac:29: but the definition used by this AM_INIT_AUTOMAKE configure.ac:29: comes from Automake 1.13.2. You should recreate configure.ac:29: aclocal.m4 with aclocal and run automake again. WARNING: 'automake-1.14' is probably too old. You should only need it if you modified 'Makefile.am' or 'configure.ac' or m4 files included by 'configure.ac'. The 'automake' program is part of the GNU Automake package: <http://www.gnu.org/software/automake> It also requires GNU Autoconf, GNU m4 and Perl in order to run: <http://www.gnu.org/software/autoconf> <http://www.gnu.org/software/m4/> <http://www.perl.org/> make[2]: *** [Makefile.in] Error 63 make[2]: Leaving directory/vagrant/ezhttp/soft/pcre-8.33'
make[1]: *** [/vagrant/ezhttp/soft/pcre-8.33/Makefile] Error 2
make[1]: Leaving directory `/vagrant/ezhttp/soft/nginx-1.8.1'
make: *** [build] Error 2

failed to install nginx-1.8.1

环境信息:

root@vagrant-ubuntu-trusty-64:/vagrant/ezhttp# uname -a
Linux vagrant-ubuntu-trusty-64 3.13.0-83-generic #127-Ubuntu SMP Fri Mar 11 00:2
5:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

php 5.3.26 安装过程中报错.

/home/soft/EZHTTP/soft/php-5.3.26/ext/iconv/iconv.c:2473: undefined reference to libiconv_close' ext/iconv/.libs/iconv.o: In functionphp_iconv_stream_filter_append_bucket':
/home/soft/EZHTTP/soft/php-5.3.26/ext/iconv/iconv.c:2624: undefined reference to libiconv' /home/soft/EZHTTP/soft/php-5.3.26/ext/iconv/iconv.c:2623: undefined reference tolibiconv'
/home/soft/EZHTTP/soft/php-5.3.26/ext/iconv/iconv.c:2545: undefined reference to libiconv' ext/iconv/.libs/iconv.o: In functionphp_iconv_stream_filter_ctor':
/home/soft/EZHTTP/soft/php-5.3.26/ext/iconv/iconv.c:2499: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] 错误 1

failed to install php-5.3.26.
please visit website http://www.centos.bz/ezhttp/
and submit /root/ezhttp_errors.log ask for help.

Ubuntu 19.04 PHP freetype-config not found 问题

错误提示

If configure fails try --with-xpm-dir=<DIR>
configure: error: freetype-config not found.

网上搜索的解决方法无效。

由于 Ubuntu 19.04 (disco) 使用的 libfreetype6 版本为 2.9.1-3 ,由于版本过新的原因会导致 freetype-config 无法正常使用。

可以选择自行编译低版本的 freetype 2.8.1

stty erase "^H"问题

我在用cygwin ssh到centos 6.4的时候,这句话会给我的退格键转成一个显示不出来的字符‘^?’我也不知道这是个啥。我注释了这句转退格的就好了,脚本也可以正常回删。不知道什么原因。。。

Fedora 27 install Error

src/core/ngx_murmurhash.c: 在函数‘ngx_murmur_hash2’中:
src/core/ngx_murmurhash.c:37:11: 错误:this statement may fall through [-Werror=implicit-fallthrough=]
h ^= data[2] << 16;
~~^~~~~~~~~~~~~~~~
src/core/ngx_murmurhash.c:38:5: 附注:here
case 2:
^~~~
src/core/ngx_murmurhash.c:39:11: 错误:this statement may fall through [-Werror=implicit-fallthrough=]
h ^= data[1] << 8;
~~^~~~~~~~~~~~~~~
src/core/ngx_murmurhash.c:40:5: 附注:here
case 1:
^~~~
cc1:所有的警告都被当作是错误
make[1]: *** [objs/Makefile:497:objs/src/core/ngx_murmurhash.o] 错误 1
make[1]: 离开目录“/home/dolphin/下载/ezhttp-master/soft/tengine-2.1.0”
make: *** [Makefile:8:build] 错误 2
#########################################################
failed to install tengine-2.1.0.
please visit website http://www.centos.bz/ezhttp/
and submit /root/ezhttp.log ask for help.

=======================================
ezhttp errors:
distributions:\S
Kernel \r on an \m (\l)
architecture:x86_64
version:Linux version 4.13.13-300.fc27.x86_64 ([email protected]) (gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC)) #1 SMP Wed Nov 15 15:47:50 UTC 2017
memery:
total used free shared buff/cache available
Mem: 3849 1816 208 468 1824 1222
Swap: 3979 55 3924
disk:
文件系统 容量 已用 可用 已用% 挂载点
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 4.5M 1.9G 1% /dev/shm
tmpfs 1.9G 2.1M 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mapper/fedora_dolphin-root 49G 5.9G 41G 13% /
tmpfs 1.9G 248K 1.9G 1% /tmp
/dev/sdb2 976M 152M 758M 17% /boot
/dev/sdb1 200M 17M 183M 9% /boot/efi
/dev/mapper/fedora_dolphin-home 980G 672M 929G 1% /home
tmpfs 385M 16K 385M 1% /run/user/42
tmpfs 385M 5.8M 380M 2% /run/user/1000
Nginx:
Nginx compile parameter:
Apache compile parameter:--prefix=/usr/local/apache --enable-so --enable-deflate=shared --enable-ssl=shared --enable-expires=shared --enable-headers=shared --enable-rewrite=shared --enable-static-support --with-included-apr
MySQL Server: mysql-5.7.17
MySQL compile parameter: -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DWITH_BOOST=/home/dolphin/下载/ezhttp-master/soft/boost_1_59_0 -DSYSCONFDIR=/usr/local/mysql/etc -DMYSQL_UNIX_ADDR=/usr/local/mysql/data/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=complex -DWITH_EMBEDDED_SERVER=1 -DENABLED_LOCAL_INFILE=1
PHP Version: php-7.1.0
php compile parameter: --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-apxs2=/usr/local/apache/bin/apxs --enable-bcmath=shared --with-pdo_sqlite --with-gettext=shared --with-iconv --enable-ftp=shared --with-sqlite --with-sqlite3 --enable-mbstring=shared --enable-sockets=shared --enable-zip --enable-soap=shared --with-openssl --with-zlib --with-curl=shared --with-gd=shared --with-jpeg-dir --with-png-dir --with-freetype-dir --with-mcrypt=shared --with-mhash=shared --enable-opcache --with-mysql=mysqlnd --with-mysqli=shared,mysqlnd --with-pdo-mysql=shared,mysqlnd --without-pear --with-libdir=lib64 --disable-fileinfo
Other Software: memcached-1.4.24 phpMyAdmin-4.4.12-all-languages redis-3.0.3 mongodb-linux-x86_64-2.4.9 phpRedisAdmin-1.1.0 memadmin-1.0.12 rockmongo-1.1.6-fix-auth
issue:failed to install httpd-2.4.25

安装php-5.2.17报错

以下是ezhttp.log:

ezhttp errors:
		distributions:\S
Kernel \r on an \m
		architecture:x86_64
		version:Linux version 3.10.0-862.3.2.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Mon May 21 23:36:36 UTC 2018
		memery:
		              total        used        free      shared  buff/cache   available
Mem:            991          83          82          12         825         718
Swap:             0           0           0
		disk:
		文件系统        容量  已用  可用 已用% 挂载点
/dev/vda1        25G  3.1G   21G   14% /
devtmpfs        486M     0  486M    0% /dev
tmpfs           496M     0  496M    0% /dev/shm
tmpfs           496M   13M  483M    3% /run
tmpfs           496M     0  496M    0% /sys/fs/cgroup
tmpfs           100M     0  100M    0% /run/user/0
		Nginx: nginx-1.10.3
		Nginx compile parameter:--prefix=/usr/local/nginx --with-http_ssl_module --with-openssl=/root/ezhttp-master/soft/openssl-1.0.2h  --with-http_sub_module --with-http_stub_status_module --with-pcre-jit --with-pcre --with-pcre=/root/ezhttp-master/soft/pcre-8.33 --with-zlib=/root/ezhttp-master/soft/zlib-1.2.8 --with-http_secure_link_module
		Apache compile parameter:
		MySQL Server: mysql-5.5.54
		MySQL compile parameter: -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DSYSCONFDIR=/usr/local/mysql/etc -DMYSQL_UNIX_ADDR=/usr/local/mysql/data/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=complex -DWITH_READLINE=1 -DENABLED_LOCAL_INFILE=1 
		PHP Version: php-5.2.17
		php compile parameter: --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fastcgi --enable-fpm --with-gettext=shared --with-sqlite --with-pdo_sqlite --enable-bcmath=shared --enable-ftp=shared --enable-mbstring=shared --with-iconv --enable-sockets=shared --enable-zip --enable-soap=shared --with-openssl --with-zlib --with-curl=shared --with-gd=shared --with-jpeg-dir --with-png-dir --with-freetype-dir --with-mcrypt=shared,/opt/ezhttp/libmcrypt-2.5.8 --with-mhash=shared,/opt/ezhttp/mhash-0.9.9.9 --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql/bin/mysql_config --without-pear --with-libdir=lib64
		Other Software:  pure-ftpd-1.0.41 phpMyAdmin-4.4.12-all-languages
		issue:failed to install php-5.2.17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.