Welcome! Log In Create A New Profile

Advanced

Auto Installer Nginx – PHP – MySQL *****

Posted by omrapid 
Auto Installer Nginx – PHP – MySQL *****
March 28, 2012 03:12AM
Here are the provided apps and modules:

NginX 1.1.11 & 1.0.10
PHP 5.3.8 with PHP-FPM (Latest 5.3.x , faster for processing php script)
MySQL 5.5.19
phpMyAdmin 3.4.8
ionCube PHP Loader 4.0.11
Alternative PHP Cache (APC) 3.1.9
eAccelerator 0.9.6.1
XCache 1.3.2
Suhosin Extension 0.9.32.1
Imagick 3.0.1 (Optional)
FFMPEG 0.6.0 (Optional)
PureFTPD 1.0.35 (Optional)
Latest WordPress (Additional)

Download and Unpack the auto installer
wget http://download.upload.co.id/nginxauto-1.3.12.zip
unzip nginxauto-1.3.12.zip

chmod +x centos.sh debuntu.sh vhost.sh

optional: create an installation log first before you start the installation process, so if there’s any error it would be easier to detect. If the installation is not complete or goes wrong, please send the log file to: log [att] serversreview.net
script log.txt

after the installation has finished, type
exit

and it will generate ‘log.txt’ file

Install master script on a fresh OS box
For CentOS 5 (If you’re already using the previous version, the script will ask if you want to upgrade your current NginX version.)
./centos.sh

For Debian 6.0 and Ubuntu 10.10
./debuntu.sh

Add / Remove Domain
./vhost.sh

Main Apps Init command
Nginx
/etc/init.d/nginx { start | stop | restart }

PHP-FPM
/etc/init.d/php-fpm { start | stop | restart }

MySQL
/etc/init.d/mysql { start | stop | restart }

How much memory it consume?

Well, i’ve tested this script in 4 different vps location and most of them eat about 50MB to 80MB on idle condition (without bind), here’s the status from 2 vps:

256MB XEN CentOS 5.5 (idle)
[root@server2 ~]# top
top - 04:36:56 up 3 days, 6:11, 1 user, load average: 0.00, 0.02, 0.04
Tasks: 113 total, 4 running, 109 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 262144k total, 187040k used, 75104k free, 7324k buffers
Swap: 262136k total, 1780k used, 260356k free, 110464k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 15 0 10352 236 204 S 0.0 0.1 0:00.09 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.20 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.08 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
5 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0
6 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khelper
7 root 12 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
9 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 xenwatch
10 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 xenbus
15 root RT -5 0 0 0 S 0.0 0.0 0:00.29 migration/1
16 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/1
17 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
18 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/1
19 root RT -5 0 0 0 S 0.0 0.0 0:00.17 migration/2
20 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/2
21 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/2
22 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/2
23 root RT -5 0 0 0 S 0.0 0.0 0:00.22 migration/3
[root@server2 ~]# free
total used free shared buffers cached
Mem: 262144 186748 75396 0 7332 110456
-/+ buffers/cache: 68960 193184
Swap: 262136 1780 260356

256MB OpenVZ CentOS 5.6 (idle)
[root@server5 ~]# top
top - 22:47:41 up 2:34, 1 user, load average: 0.52, 1.14, 0.89
Tasks: 22 total, 1 running, 21 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 524288k total, 59320k used, 464968k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 18 0 2156 672 576 S 0.0 0.1 0:00.16 init
1512 root 19 0 2720 844 672 S 0.0 0.2 0:00.00 xinetd
3556 root 15 0 10988 3828 2272 S 0.0 0.7 0:01.56 sshd
3558 root 15 0 3616 1504 1272 S 0.0 0.3 0:00.02 bash
3599 root 15 0 2832 632 548 S 0.0 0.1 0:00.00 script
3600 root 15 0 2836 408 316 S 0.0 0.1 0:00.56 script
3601 root 15 0 3616 1504 1264 S 0.0 0.3 0:00.02 bash
3850 root 18 0 5684 700 424 S 0.0 0.1 0:00.00 saslauthd
3851 root 18 0 5684 440 164 S 0.0 0.1 0:00.00 saslauthd
3909 root 15 -4 2260 644 432 S 0.0 0.1 0:00.01 udevd
4055 root 15 0 1812 568 480 S 0.0 0.1 0:00.00 syslogd
5134 root 18 0 7200 1032 636 S 0.0 0.2 0:00.00 sshd
5279 root 18 0 4492 1100 556 S 0.0 0.2 0:00.00 crond
9588 root 18 0 3236 676 588 S 0.0 0.1 0:00.00 pure-ftpd
9720 root 18 0 12388 1464 340 S 0.0 0.3 0:00.00 nginx
9721 www 18 0 12672 2412 1008 S 0.0 0.5 0:00.00 nginx
9722 www 18 0 12568 1964 600 S 0.0 0.4 0:00.00 nginx
9726 root 18 0 44976 4564 1420 S 0.0 0.9 0:00.00 php-fpm
[root@server5 ~]# free
total used free shared buffers cached
Mem: 524288 58988 465300 0 0 0
-/+ buffers/cache: 58988 465300
Swap: 0 0 0

Indahnya dunia dengan berbagi ilmu pengetahuan
Re: Auto Installer Nginx – PHP – MySQL *****
October 17, 2012 11:18AM
Great... very helpful :)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 123
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready