wget http://nginx.org/download/nginx-1.0.15.tar.gz
Unzip the files with the following command:
tar zxvf nginx-1.0.15.tar.gz
Change directory to the nginx folder:
cd nginx-1.0.15
Run the following commands:
./configure
If you get no errors, you’re all set, go on with the next couple of commands. If you get an error, try to make sure all the libraries are installed.
make
make install
sh generate_nginx_conf.sh
Test the configuration files:
nginx -t
If no error messages run the commands below:
/usr/local/psa/admin/sbin/websrvmng –set-http-port –port=8080
/usr/local/psa/admin/sbin/websrvmng –reconfigure-all
/usr/local/psa/admin/sbin/webmailmng –disable –name=horde
/usr/local/psa/admin/sbin/webmailmng –enable –name=horde
/usr/local/psa/admin/sbin/webmailmng –disable –name=atmail
/usr/local/psa/admin/sbin/webmailmng –enable –name=atmail
/usr/local/psa/admin/sbin/webmailmng –disable –name=atmailcom
/usr/local/psa/admin/sbin/webmailmng –enable –name=atmailcom
service httpd restart
service nginx restart