Coder Social home page Coder Social logo

lemp-info / lemp Goto Github PK

View Code? Open in Web Editor NEW
25.0 2.0 9.0 69.68 MB

LEMP stack installation scripts for CentOS 7,8 and Ubuntu 14,16,18,19,20 ( NGINX + PHP + MYSQL & phpMyAdmin & ProFTPD )

Shell 100.00%
linux nginx php mariadb mysql lemp phpmyadmin proftpd ubuntu centos php-fpm php7 ioncube snuffleupagus

lemp's Introduction

lemp

What’s a LEMP stack?

LEMP is a variation of the ubiquitous LAMP stack used for developing and deploying web applications. Traditionally, LAMP consists of Linux, Apache, MySQL, and PHP. Due to its modular nature, the components can easily be swapped out. With LEMP, Apache is replaced with the lightweight yet powerful Nginx.

lemp.info

We tried to create an easy script to install. In short time everything is installed. 
To host projects on a Linux server system. 
Our goal is to teach programming and web hosting    

install:

 sudo wget https://raw.githubusercontent.com/lemp-info/lemp/master/lemp.sh && sudo chmod a+x lemp.sh && ./lemp.sh

Ubuntu NGINX MariaDB PHP & ProFTPD + phpMyAdmin

nginx      Version 1.17.7
PHP        Version 7.3.12
MariaDB    Version 10.5.0 
ProFTPD    Version 1.3.5
phpmyadmin Version 4.9.4

CentOS NGINX MariaDB PHP & ProFTPD + phpMyAdmin

nginx      Version 1.17.7
PHP        Version 7.3.19
MariaDB    Version 10.5.0 
ProFTPD    Version 1.3.5
phpmyadmin Version 4.9.4

addons

MySQL-5.5.62:
 sudo wget https://raw.githubusercontent.com/lemp-info/lemp/master/MySQL-5.5.62.sh && chmod a+x MySQL-5.5.62.sh && ./MySQL-5.5.62.sh

MongoDB:  
 sudo wget https://raw.githubusercontent.com/lemp-info/lemp/master/mongodb.sh && chmod a+x mongodb.sh && ./mongodb.sh
 
 Node.js:
   wget https://sourceforge.net/projects/lemp-info/files/node.tar.gz -P /home/lemp/ && tar -xvzf  /home/lemp/node.tar.gz -C /home/lemp && rm -r /home/lemp/node.tar.gz && sudo ln -s /home/lemp/node/bin/* /usr/local/bin/  
   
 Turnserver:
     cd && rm -r -f /root/coturn && git clone https://github.com/coturn/coturn.git && cd coturn && ./configure --prefix=/home/lemp/turnserver && sudo make && sudo  make install && rm -r -f /usr/local/bin/turnadmin && rm -r -f  /usr/local/bin/turnserver && rm -r -f /usr/local/bin/turnutils_natdiscovery && rm -r -f /usr/local/bin/turnutils_oauth && rm -r -f  /usr/local/bin/turnutils_peer && rm -r -f  /usr/local/bin/turnutils_stunclient && rm -r -f  /usr/local/bin/turnutils_uclient && sudo ln -s /home/lemp/turnserver/bin/* /usr/local/bin/ && rm -r -f /root/coturn

 FFmpeg:
     wget https://sourceforge.net/projects/lemp-info/files/FFmpeg.tar.gz -P /home/lemp/ && tar -xvzf  /home/lemp/FFmpeg.tar.gz -C /home/lemp && rm -r /home/lemp/FFmpeg.tar.gz && sudo ln -s /home/lemp/FFmpeg/* /usr/local/bin/ 

 Anti-DDoS:
      wget --load-cookies /tmp/cookies_lemp.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies_lemp.txt --keep-session-cookies --no-check-certificate "https://docs.google.com/uc?export=1n3VClC_zAVOdrxCKJ1SqMiXZg3Q4Bfwf" -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1n3VClC_zAVOdrxCKJ1SqMiXZg3Q4Bfwf" -O /home/lemp/ddos_deflate-0.7.tar.gz   && rm -rf /tmp/cookies_lemp.txt  && tar -xvzf  /home/lemp/ddos_deflate-0.7.tar.gz -C /home/lemp && rm -r  -f /home/lemp/ddos_deflate-0.7.tar.gz  && cd /home/lemp/ddos_deflate-0.7 &&  ./install.sh 

update:

   # 2021/04/06
 1. added php-7.4.26 &  php-8.0.3 for ubuntu 18-19-20
   # 2020/05/09
 1.NGINX Internal Load Balancing PHP-FPM Upstream  'Faster'
 2.NGINX ssl config
 3.extension ioncube 
 4.extension ssh2 
 5.extension snuffleupagus ( To run, you must exit the comment in the file php.ini ";extension=snuffleupagus.so")
 7.Manual startup "/home/lemp/start.sh"

Import database phpmyadmin (manually)

 mysql -uroot -p -e "CREATE DATABASE phpmyadmin"  
 mysql -uroot -p phpmyadmin < /home/lemp/phpmyadmin/phpmyadmin.sql 

Path

 Lemp:           /home/lemp
 www:            /home/lemp/www 
 MariaDB my.cnf: /home/lemp/mysql/my.cnf

Ubuntu & ZorinOS Usage :

 sudo /etc/init.d/lemp           {start|stop|restart|status}
 sudo /etc/init.d/nginx          {start|stop|restart|status}
 sudo /etc/init.d/php            {start|stop|restart|status}
 sudo /etc/init.d/mysql.server   {start|stop|restart|status}
 sudo /etc/init.d/proftpd        {start|stop|restart|status}

CentOS Usage :

 sudo /etc/rc0.d/lemp           {start|stop|restart|status}
 sudo /etc/rc0.d/nginx          {start|stop|restart|status}
 sudo /etc/rc0.d/php            {start|stop|restart|status}
 sudo /etc/init.d/mysql.server  {start|stop|restart|status}
 sudo /etc/rc0.d/proftpd        {start|stop|restart|status}

phpMyAdmin

 http://ipaddress/phpmyadmin
 username: root
 password: mysql password

how to login to proftpd server ( FTP )

 1. set password for user lemp: sudo passwd lemp
 2. ftp://ipadderss/ 
 username: lemp or root
 password: lemp password or root password

Set MariaDB root password

 mysql -u root
 
 use mysql;
 delete from user where User='root';
 DELETE FROM mysql.user WHERE User='';
 flush privileges;
 grant all privileges on *.* to 'root'@'localhost' identified by 'NewPassword' with grant option;
 grant all privileges on *.* to 'root'@'127.0.0.1' identified by 'NewPassword' with grant option;
 grant all privileges on *.* to 'root'@'::1' identified by 'NewPassword' with grant option;
 flush privileges;
 \q

Donate

DogeCoin Wallet = DJfqwVRCpWVxg2jSp1TQwWQc2VH6udzTPr

lemp's People

Contributors

lemp-info 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

Watchers

 avatar  avatar

lemp's Issues

How to install php extension

I have some questions as below:

  1. How to install php extension
  2. After install I got php command not found. I think not have php-cli. I cannot use yum install php- (because got php5)
  3. How is php sock used?
    Thank you

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.