The operating environment is a patchwork old machine, running four gb cpu, GB memory, 40 Gb Seagate IDE hard disk, which is roughly 04 years of hardware level. For LNMP installation, only WordPress is installed. The operating system is Ubuntu10.10 installed by myself. It's okay to use Ubuntu on the desktop as a server. Remember to set the language environment to English. I installed LNMP once with the one-click installation package of LNMP. The result was unsuccessful and the error was not found, so all purge started from scratch. Selected this time
The operating environment is a patchwork old machine, running four gb cpu, GB memory, 40 Gb Seagate IDE hard disk, which is roughly 04 years of hardware level. For LNMP installation, only WordPress is installed.
The operating system is my own Ubuntu 10.10. It's okay to use Ubuntu on the desktop as a server. Remember to set the language environment to English.
I installed LNMP once with the one-click installation package of LNMP. The result was unsuccessful and the error was not found, so all purge started from scratch. This time, all the software is installed with apt and configured manually. The result is smooth sailing.
Install nginx:
1. sudo apt-get install nginx
Instantly installed. The general structure of nginx is
All configuration files are stored in/etc/nginx/
The virtual host is in/etc/nginx/sites-available/. Here I use "default"
You must create a link to the/etc/nginx/sites-available/Vm configuration file under/etc/nginx/sites-enabled/. The default link is ready for installation.
Log in/var/log/nginx/
The STARTUP script has been created in/etc/init. d/and also in/etc/rc2.d.
Start nginx now.
1.sudo /etc/init.d/nginx start
This is unlikely to be a problem. If the system prompts that bind fails, it may be that other processes (such as apache) occupy port 80 and stop.
Install php:
1.sudo apt-get install php5 php5-cgi php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-pspell php5-recode php5-snmp php5-tidy php5-xmlrpc php5-sqlite php5-xsl
This is copied from someone else. I can't use this much, but it doesn't matter if I have to install more. If I have to install less, there may be problems.