Nginx Autoinstaller is a ready made script to install a server with Nginx webserver, MySQL and PHP.
How to install Nginx,MySQL,PHP using LNMP-Nginx Autoinstaller
How to upgrade Nginx to latest version
LNMP Nginx autoinstall also provide script to upgrade php to latest version in the same way it provide for Nginx.
Procedure:
Check latest version number of php from php.net
We are going to use php5.3.x latest version which is... [ Continue reading... ]
I have been planning to move my websites from apache web server to nginx since nginx is much faster then apache. I found Nginx Autoinstaller which is a script available to make a nginx based server within few minutes.
Nginx Autoinstaller
Nginx Autoinstaller includes:-
Nginx
MySQL
PHP
PHPMyAdmin
Zend Optimizer
eAccelerator
Apache (optional)
ionCube (optional)
PureFTPd (optional)
imageMagick (optional)
memcached... [ Continue reading... ]
Spamming is a known problem for every host, and adding information in header for the emails sent by php is a great way to track down spamming script.
Cpanel has this option to select in easyapache.
You can go to WHM>>Easy apache,
Exhaustive Options list >> MailHeaders
Select it and recompile apache and php, and after that every emails generated from a php script will have an entry of generation script and its path. And... [ Continue reading... ]
There are 2 important scripts to optimize apache,php and mysql very easily. They are
MySQLTuner (Perl) and MySQL Performance Tuning Primer (shell)
They can help diagnose MySQL database performance issues, and provide recommendations on how to solve them.
# Download MySQLTuner and MySQL Performance Tuning Primer to ~/scripts.
# To avoid having to invoke Perl/SH each time, make both files executable.
chmod +x... [ Continue reading... ]
Here is php script to test database Connection, it will need little edition as per your database name and password
Here you go
Just copy and paste below code :-
< ?php
###################################### C O P Y R I G H T S ############################################
# THIS SIMPLE SCRIPT IS DISTRIBUTED BY WWW.MYLITERATURETECHLIFE.COM UNDER LICENSE UNDER THE GPL RULES #
# PLEASE DO NOT REMOVE THIS MESSAGE IN SUPPORT OF OUR HARD... [ Continue reading... ]