Results 1 to 19 of 19
-
01-15-2012, 09:22 AM #1WHT Addict
- Join Date
- May 2009
- Location
- United Kingdom
- Posts
- 103
Nginx Auto Installer – PHP – MySQL
This script will install:
Code: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)
Before you’re going to install it, set your domain a record in your domain control panel
Code:Type Host Target a record * Your IP address a record domain.com Your IP address a record www.domain.com Your IP address
Setting Nameserver Based For Domain
Download and Unpack the auto installer
Code:wget http://mirror.planehost.com/nginxauto-1.3.12.zip unzip nginxauto-1.3.12.zip
Code:chmod +x centos.sh debuntu.sh vhost.sh
Here are some basic settings:
[CODE]
================================================================================
NGINX - PHP - MYSQL AUTO INSTALLER v1.3.12 FOR DEBIAN 6 & UBUNTU 10.10
================================================================================
Junker@vbfk.com & 2298@serversreview.net
For more information please visit
http://serversreview.net/nginx-auto-installer-php-mysql
================================================================================
Please input your preferred mysql root password: test
Please input your preferred ftp/sftp password: test
Please input your preferred phpmyadmin directory name: php
Type 'devv' for development version 1.1.11
Type 'stab' for stable version 1.0.10
Please choose your preferred NginX version: stab
Type 'sqlold' for older version 5.1.60
Type 'sqlnew' for latest version 5.5.19
Please choose your preferred MySQL version: sqlnew
Type 'phpold' for PHP 5.2.17
Type 'phpnew' for PHP 5.3.8
Please choose your preferred PHP version: phpnew
Type 'apc' for APC PHP
Type 'eaccel' for eAccelerator
Type 'xcache' for XCache
Please choose your preferred PHP Opcode Cacher: eaccel
Would you like to install Image Magick?[Y/n] y
Would you like to install FFMPEG?[Y/n] n
Would you like to install PureFTPD?[Y/n] y
Press any key to start the installation...
[CODE]
script log.txt
after the installation has finished, type
Code:exit
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.)
Code:./centos.sh
Code:./debuntu.sh
Code:./vhost.sh
Nginx
Code:/etc/init.d/nginx { start | stop | restart }
Code:/etc/init.d/php-fpm { start | stop | restart }
Code:/etc/init.d/mysql { start | stop | restart }
Here are some proffs of memory usage:
256MB XEN CentOS 5.5
Code:[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
Code:[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
- lnmp.org for beautiful idea about the autoinstaller
- Junker @ vbfk.com for helping me out, you rock!
- Uncle G for free unlimited knowledge gateway
- WebHostingTalk for being my inspiration
- Few useful sites, forums, and wikis plus thousands spam sites that i cannot mention all
Troubleshooting
Code:phpMyAdmin import database connection time out Most of phpMyAdmin problem happened when importing a large database because by default i only set a few basic configurations so you can set your own configuration based on your needs. Here are the solutions: Location: /etc/init.d/nginx.conf client_max_body_size 8M client_body_buffer_size 128k Max body size accepted which effecting max upload limit is 8MB with 128kB temporary files written, add/change this value if you need to import database more than 8MB, otherwise you will get “Request Entity Too Large” error. Location: /usr/lib/php.ini or /usr/lib64/php.ini memory_limit = 256M post_max_size = 8M upload_max_filesize = 8M Maximum memory usage during processing php script is 256MB, post_max_size value is nearly equal with NginX client_max_body_size, and upload_max_filesize is the upload size limit setting. Location: /usr/html/yourphpmyadminfoldername/config.inc.php $cfg['ExecTimeLimit'] = '0'; Add the above line to phpMyAdmin configurations to disabled execution time limit. Location: /etc/php-fpm.conf pm.max_children = 20 This setting is optional, but it is good if you’re increasing children worker to optimize php script process. Cannot Login phpMyAdmin You may get this error when trying to login to phpMyAdmin #2002 Cannot log in to the MySQL server Connection for controluser as defined in your configuration failed. Solution: edit config.inc.php and change localhost with 127.0.0.1
Last edited by ReoHostLtd; 01-15-2012 at 09:31 AM.
█ ReoHost.com
█ Shared Hosting | Reseller Hosting | VPS |
█ cPanel | Softacolous | Solus VM
█ 10 days FREE trial with no limits!
-
01-15-2012, 12:24 PM #2Newbie
- Join Date
- Sep 2011
- Posts
- 28
wow
nice thanks for your tutorial
-
01-15-2012, 06:50 PM #3Web Hosting Master
- Join Date
- Feb 2005
- Location
- United Kingdom
- Posts
- 3,476
great installer, thank you.
Explore our outstanding VPS choices tailored to your budget, and we welcome reasonable offers.
VPS Price Match Guarantee on: All our range of DDOS protected XEN HVM VPS
== Contact us for any online solution development or managed / unmanaged vps hosting ==
-
01-16-2012, 12:23 PM #4Newbie
- Join Date
- Dec 2011
- Posts
- 13
Wow, I'm looking for auto installer for beginner. Thanks install gogogo~
-
01-16-2012, 01:13 PM #5Newbie
- Join Date
- Dec 2011
- Posts
- 13
When I install it but I was install fail now.
Code:php-fpm configuration [found] PHP-FPM driver not found PHP installation previously failed Installation process exiting
128+128(burstram)
I have followed the basic setting.
-
01-16-2012, 09:59 PM #6Newbie
- Join Date
- Dec 2011
- Posts
- 13
-
01-17-2012, 08:38 AM #7WHT Addict
- Join Date
- Jul 2009
- Location
- Tangerang, ID
- Posts
- 168
-
03-09-2012, 02:15 PM #8Junior Guru
- Join Date
- Jun 2011
- Location
- London, UK.
- Posts
- 196
http://mirror.planehost.com/nginxauto-1.3.12.zip Seems to be down?
Cana nyone reupload?
-
03-09-2012, 02:17 PM #9Web Hosting Master
- Join Date
- May 2011
- Location
- New York, USA
- Posts
- 4,019
Centminmod?
-
03-09-2012, 02:29 PM #10Junior Guru
- Join Date
- Jun 2011
- Location
- London, UK.
- Posts
- 196
-
03-11-2012, 02:48 AM #11Temporarily Suspended
- Join Date
- Jan 2011
- Posts
- 4
add MariaDB
-
05-10-2012, 12:49 PM #12Newbie
- Join Date
- Aug 2010
- Posts
- 19
nice script, i'll try it now.
-
09-28-2012, 09:31 PM #13Web Hosting Master
- Join Date
- May 2007
- Posts
- 2,042
can someone please reupload it?
-
10-08-2012, 01:32 AM #14Temporarily Suspended
- Join Date
- Mar 2012
- Location
- /etc/
- Posts
- 119
no profit its a abandon project .Try lnmp.org
-
10-11-2012, 06:06 PM #15Web Hosting Master
- Join Date
- May 2007
- Posts
- 2,042
Dos you have it?
-
10-20-2012, 05:20 PM #16Web Hosting Guru
- Join Date
- Dec 2010
- Location
- United States
- Posts
- 258
Do you have it? If so can you link it, here?
Wanna Wiki ? So here it is Wiki
-
10-25-2012, 12:32 PM #17Newbie
- Join Date
- May 2011
- Location
- Earth
- Posts
- 12
Can i use this on openVZ with 128mb ram and 640mb burstable???
very nice for wordpress blooging
-
10-25-2012, 08:04 PM #18Junior Guru Wannabe
- Join Date
- Sep 2006
- Posts
- 85
excellent auto installer. thanks.
-
11-01-2012, 12:45 AM #19Junior Guru Wannabe
- Join Date
- Nov 2012
- Location
- Sweden
- Posts
- 39
Tuxlite.com for Nginx.
Similar Threads
-
Nginx Ready VPS - Preconfigured LNAMP (Linux/Nginx/Apache/MySQL/PHP with ftp support)
By JohnCS in forum VPS Hosting OffersReplies: 0Last Post: 06-03-2011, 04:57 AM -
Nginx Admin: The Free cPanel Nginx automated installer Plugin
By JohnCS in forum Software & Scripts OffersReplies: 13Last Post: 05-21-2011, 11:45 AM -
Installer for php/mysql open source CMS and php/mysql coder needed
By 0utlier in forum Employment / Job OffersReplies: 4Last Post: 03-11-2008, 03:24 PM -
Free Script Auto Installer - Instantly installs 16 PHP Scripts
By Hostorb in forum Shared Hosting OffersReplies: 0Last Post: 08-02-2003, 07:04 AM