Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Tutorial:Automatically install Nginx+PHP+MySql+phpMyAdmin
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Tutorial:Automatically install Nginx+PHP+MySql+phpMyAdmin

ComfortVPSComfortVPS Member
edited July 2014 in Tutorials

Some of our clients are not good at SSH command, they just want an easy way to run their websites. Most of them are less then 1GB memory VPS and don't want install control panel.

For this purpose, we wrote an auto install script for "Nginx+PHP+MySql+phpMyAdmin"

What's you need to do is: Copy and post/run below single command line via SSH root login. wait 5-15 minutes(depending on the software download speed from your server), Everything is Done!

wget -O /tmp/install-nginx-php-mysql.sh https://raw.github.com/ComfortVPS/Nginx-PHP-MySql-phpMyAdmin/master/install-nginx-php-mysql.sh; sh /tmp/install-nginx-php-mysql.sh;

Installation Requirement:

  1. CentOS 5.x/6.x 32bit or 64bit ( We recommend you Reload OS before install )
  2. Guarantee Memory >= 128MB, Free Disk space >=2GB

Fetures:

  1. You can add multiple websites directly via SFTP, no need to login SSH, no need to restart Nginx
  2. You can easily custom config each website domain's Nginx config file if you need
  3. Installed the newset stable version of Nginx1.4.x, PHP-FPM5.x, MySql5.x by YUM
  4. phpMyAdmin4.x installed and ready for use. Just login and manage mysql database as you want
  5. Work perfectly for low memory VPS with ram >= 128MB
  6. Many tutorials for how to use

Get your password after everything installed

Your SSH console screen will show something like below after successfully installed, Please record your password. The unique password was random generated by openssl, no need to change.

> ====== Nginx + PHP-FPM + MYSQL Successfully installed
> ====== MySql root password is cft.KL7fvW2g
> ====== SFTP Username is myweb
> ====== SFTP Password is cft.KL7fvW2g
> ====== Website document root is /www/yourdomain
> ====== Add websites tutorials: http://goo.gl/sdDF9
>
> ====== Now you can visit http://your-ip-address/ 
> ====== Eg. http://50.3.62.173/
> ====== phpMyAdmin: http://50.3.62.173/phpMyAdmin4U/
> ====== More tutorials: http://goo.gl/tNFb0

Add multiple websites via SFTP

Step 1, Create a domain name directory under /www via SFTP, eg, yourdomain.com, subdomain.abc.com, domain-name.net

Step 2, Everything is Done, Config Nginx virtual host is finish, upload your php/html files to that directory then test it.

More information and tutorials

http://www.comfortvps.com/VPS/Auto-installer-Nginx-PHP-php-fpm-MySql-CentOS.html

We will continue to write more tutorials for how to use it.

Please reply to this post if you need any help for LEB user.

«1

Comments

  • alexalex Member

    a simple and easy way to get people installing your backdoor. just saying

  • @alex said:
    a simple and easy way to get people installing your backdoor. just saying

    If his backdoors are in the EPEL or Remi repositories, there are way bigger problems than this script.

  • I have to admit this is one of the slicker setups I've seen (and now used) for CentOS users! Thanks!

  • @alex said:
    a simple and easy way to get people installing your backdoor. just saying

    This is a free opensource script, You can check the source at anytime

  • alexalex Member

    @ComfortVPS said:

    I have no doubt in your intentions, but why not hosting it on GitHub/Gist or something similar for more transparency?

  • @alex said:
    a simple and easy way to get people installing your backdoor. just saying

    Compared to the other scripts posted on here?

  • DomainBopDomainBop Member
    edited June 2013

    alex said: a simple and easy way to get people installing your backdoor. just saying

    doughmanes said: Compared to the other scripts posted on here?

    .section        .rodata
    string:
            .ascii "INSTALL, BACKDOOR!\n"
    length:
            .quad . -string         #Dot = 'here'
     
            .section        .text
            .globl _start           #Make entry point visible to linker
    _start:
            movq $4, %rax           #4=write
            movq $1, %rbx           #1=stdout
            movq $string, %rcx
            movq length, %rdx
            int $0x80               #Call Operating System
            movq %rax, %rbx         #Make program return syscall exit status
            movq $1, %rax           #1=exit
            int $0x80               #Call System Again
    
    
  • @DomainBop said:

    What's this code?

  • @ComfortVPS said:
    What's this code?

    It prints "INSTALL, BACKDOOR!\n" then exits.

    Thanked by 1sijie123
  • perennateperennate Member, Host Rep
    edited June 2013
            movq $4, %rax           # search computer for passwords for all your accounts, including email / SSH / etc.
            movq $1, %rbx           # store passwords and relevant data in memory
            movq $string, %rcx      # login to all email accounts and send viruses to contacts
            movq length, %rdx       # login to all servers and add to botnet
            int $0x80               # create google voice number
            movq %rax, %rbx         # use google voice 
            movq $1, %rax           # send bomb threat
            int $0x80               # start DDoS attack on fbi.gov
  • I don't understand why someone post a confused code here, is it a joke?

  • alexalex Member

    @ComfortVPS said:
    I don't understand why someone post a confused code here, is it a joke?

    yes

  • @ComfortVPS said:
    I don't understand why someone post a confused code here, is it a joke?

    (facepalm) That's assembly.

  • hmm this script really any backdoor?

  • @DomainBop isn't that assembler?

  • I suggest it would be nice to put the script on github or something.

  • Put the script on github please. Thank you for the script

  • Host4GeeksHost4Geeks Member, Host Rep

    Could you modify the script to setup the default domain on the nginx conf as the hostname of the VPS/Server?

  • cfgguycfgguy Member, Host Rep

    said: sh /tmp/install-nginx-php-mysql.sh;

    This step needs to be corrected in the post.

  • Take a look at Centmin Mod. Your script looks like centmin mod, and maybe you can join forces :)

  • @ahmiq said:
    Put the script on github please. Thank you for the script

    @jcaleb said:
    I suggest it would be nice to put the script on github or something.

    OK, we will put this script on github asap

  • @Host4Geeks said:
    Could you modify the script to setup the default domain on the nginx conf as the hostname of the VPS/Server?

    Lots of people don't use a real domain name for hostname.

  • I use sqlbuddy for MySQL.

  • aglodekaglodek Member
    edited November 2013

    @alex said: I have no doubt in your intentions, but why not hosting it on GitHub/Gist or something similar for more transparency?

    @jcaleb said: I suggest it would be nice to put the script on github or something.

    @ahmiq said: Put the script on github please. Thank you for the script

    Okay, now why is this so important? What's the difference where it's hosted? What am I missing here?

  • @aglodek said:
    Okay, now why is this so important? What's the difference where it's hosted? What am I missing here?

    convenience

  • painfreepcpainfreepc Member
    edited November 2013

    deleted

  • Try vestaCP i am using on a 256 mb vps works great and very easy to use,
    how easy:

    to setup remote dns servers is as easy as:

    1. add user to remote "ns2" vestaCP dns server "dns-cluster"
    2. at master "ns1" vestaCP type "v-add-remote-dns-host ns2.yourdomail.com 8083 admin password"

    to store your backups on a remote ftp server:

    1. v-add-backup-ftp-host HOST USERNAME PASSWORD [PATH] [PORT]

    VestaCp is free - but they are pushing paid Support very hard,
    RHEL/CentOS and Debian/Ubuntu
    i am using ubuntu 12.04 LTS 32 bit

    http://vestacp.com/

    http://stevetan.me/post/ubuntu-13-04-vestacp-setup

  • painfreepcpainfreepc Member
    edited November 2013

    @ComfortVPS said:
    For this purpose, we wrote an auto install script for "Nginx+PHP+MySql+phpMyAdmin"

    Looks very cool, i have a 128mb vps in Germany i will do a reinstall so i can try your script,

    Do you have a recommendation for an easy to install email server.

  • Nice tutorial and nice script mate :)

  • I also think you are trying to install your backdoor. Otherwise if you are honest why don't submit it on github?

Sign In or Register to comment.