Although Nginx is a light webserver as compare to Apache, however some time we need apache to use as webserver because Nginx lack some features them apache, a big example is Mod_rewrite. Therefore we use apache, however to speed using websites we use Nginx as Reverse proxy.
Nginx Autoinstaller-LNMP provides this option as well, that we can install apache and use Nginx as reverse proxy.
Must read:-
- How to install Nginx,MySQL,PHP using LNMP-Nginx Autoinstaller
- How to upgrade Nginx to latest version
- How to upgrade php to latest version
- PhpMyAdmin with Nginx Autoinstaller
- How to install PureFTP with Nginx autoinstaller
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
root@venus:~/lnmp0.8-full# nano -w apache.sh root@venus:~/lnmp0.8-full# ./apache.sh ======================================================================= Install Apache for LNMP V0.8 , Written by Licess ======================================================================= LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux This script is a tool to install Apache for lnmp For more information please visit http://www.lnmp.org ======================================================================= Please input domain: (Default domain: www.lnmp.org):venus.webnsofts.com =========================== domain=venus.webnsofts.com =========================== Please input Administrator Email Address:me@shahbazhk.com =========================== Server Administrator Email=me@shahbazhk.com =========================== Press any key to start install Apache for LNMP or Press Ctrl+C to cancel... ===================== Check And Download Files ================= httpd-2.2.17.tar.gz [found] Error: mod_rpaf-0.6.tar.gz not found!!!download now...... --2012-07-22 23:35:13-- http://soft.vpser.net/web/apache/rpaf/mod_rpaf-0.6.tar.gz Resolving soft.vpser.net... 96.44.153.111 Connecting to soft.vpser.net|96.44.153.111|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 7695 (7.5K) [application/octet-stream] Saving to: `mod_rpaf-0.6.tar.gz' 100%[===================================================================>] 7,695 --.-K/s in 0s 2012-07-22 23:35:13 (621 MB/s) - `mod_rpaf-0.6.tar.gz' saved [7695/7695] php-5.2.17.tar.gz [found] PDO_MYSQL-1.0.2.tgz [found] Error: memcache-3.0.5.tgz not found!!!download now...... --2012-07-22 23:35:13-- http://pecl.php.net/get/memcache-3.0.5.tgz Resolving pecl.php.net... 76.75.200.106 Connecting to pecl.php.net|76.75.200.106|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 54242 (53K) [application/octet-stream] Saving to: `memcache-3.0.5.tgz' 100%[===================================================================>] 54,242 204K/s in 0.3s 2012-07-22 23:35:14 (204 KB/s) - `memcache-3.0.5.tgz' saved [54242/54242] =========================== install Apache ====================== Backup old php configure files..... httpd-2.2.17/ httpd-2.2.17/emacs-style . . . |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
Download new Apache init.d file...... --2012-07-22 23:43:30-- http://soft.vpser.net/lnmp/ext/init.d.httpd Resolving soft.vpser.net... 96.44.153.111 Connecting to soft.vpser.net|96.44.153.111|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 4027 (3.9K) [application/octet-stream] Saving to: `init.d.httpd' 100%[===================================================================>] 4,027 --.-K/s in 0.001s 2012-07-22 23:43:30 (5.31 MB/s) - `init.d.httpd' saved [4027/4027] Stop Nginx...... Test Nginx Confgure..... nginx: [warn] the "log_format" directive may be used only on "http" level in /usr/local/nginx/conf/nginx.conf:93 nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful Starting Nginx...... nginx: [warn] the "log_format" directive may be used only on "http" level in /usr/local/nginx/conf/nginx.conf:93 Starting Apache..... httpd not running, trying to start Remove old startup files and Add new startup file..... update-rc.d: using dependency based boot sequencing update-rc.d: using dependency based boot sequencing ====================== Upgrade to LNMPA completed ===================== You have successfully upgrade from lnmp to lnmpa,enjoy it! ======================================================================= LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux This script is a tool to upgrade from lnmp to lnmpa For more information please visit http://www.lnmp.org ======================================================================= |
Comment Policy:
Your words are your own, so be nice and helpful if you can. Please, only use your real name, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.