Wednesday, April 21, 2010

LNMP – A tool to auto-compile & install & manage Nginx+MySQL+PHP on Linux

LNMP is a tool to auto-compile & install & manage Nginx+MySQL+PHP on Linux.

The current version : 0.3 ,Now support Linux distribution : CentOS 4.8~5.4 32/64bit, Debian 4.0~5.0 32bit/64bit ,Ubuntu.

The programme installed in LNMP:
Nginx:0.7.63
PHP:5.2.10
MySQL:5.1.35
Zend Optimizer:3.3.9
eaccelerator:0.9.5.3

Installation Guide:

 wget -c http://soft.vpser.net/lnmp/lnmp0.4-full.tar.gz



1.Install on CentOS
First Download lnmp ,Run the command : wget http://soft.vpser.net/lnmp/lnmp0.3.tar.gz , Then decompress lnmp0.3.tar.gz Run the command : tar zxvf lnmp0.3.tar.gz
Run the command : cd lnmp0.3
Run ./centos.sh then enter the domain name, press Enter key twice. The programme will auto-complie and install Nginx,MySQL,PHP,Zend Optimizer.

2.Install on Debian
First Download lnmp ,Run the command : wget http://soft.vpser.net/lnmp/lnmp0.3.tar.gz , Then decompress lnmp0.3.tar.gz Run the command : tar zxvf lnmp0.3.tar.gz
Run the command : cd lnmp0.3
If you Debian is 32bit please run ./debian.sh else run ./debian64bit.sh. then enter the domain name, press Enter key twice. The programme will auto-complie and install Nginx,MySQL,PHP,Zend Optimizer.

3.Install eaccelerator
If you want to use eaccelerator please run ./eaccelerator.sh the programme will auto-compile and install.

4.VirtualHost Management
1). Add VirtualHost: run ./vhost.sh Prompted to enter the domain name you want to binding, press Enter key, and then enter the directory to be bound (absolute directory, such as /home/wwwroot/lnmp).
2). More feature under development.

Friday, April 2, 2010

Cpanel disk used incorrect showing unlimited or 0MB

You can fix this by running the script /scripts/fixquotas

is this doesn't work and you are using Virtuozzo or OpenVZ you will need to set the QUOTAUGIDLIMIT perimeter - this allows the system to allocate user IDs (UID)

e.g (openvz)

vzctl set 101 --quotaugidlimit 1000 --save

then run the scrip "/scripts/fixquotas"

and it should all work.

Troubleshooting

If you've done the above and it still doesn't work (or the value still says 0MB) this may be due to cPanel caching the disk usage results. to disable this:

Select the following in your WHM.

WHM >> Tweak Settings >> System >> "Disable Disk Quota display caching (WHM will cache disk usage which may result in the display of disk quotas being up to 15 minutes behind the actual disk usage. Disabling this may result in a large performance degradation.)"

Mysql Database showing 0MB disk usage

If your Mysql DB are showing 0MB disk usage in cPanel then do the following things.

vi /var/cpanel/cpanel.config

find
"disk_usage_include_sqldbs"

change the value from 0 to 1


and run
#
/scripts/update_db_cache


Issue should be fixed :)