“Nginx + PHP + MySQL + FastCGI + Webmin” Package Powered by SAIN3 (HVM)

Highlights

  • Nginx is deployed to serve as an accelerator!
  • A robust web server solution including Nginx, PHP, MySQL, FastCGI and Webmin.
  • One click to install. Quick and responsive deployment.

Usage Instructions

Note

Before you start to access the system, please ensure the Status Checks of the instance in the AWS Console turns to 2/2 checks passed, or the initialization process might be interrupted and the software configuration fails. It takes about 5-10 mins.

Note

Please replace the instance ID with the actual instance ID of your running EC2 instance, and the public DNS your actual public DNS address.

Default settings

  1. Webmin / MySQL:
Username: root, Password: <instance ID>

Access the system

  1. Visit your Nginx homepage.
<public DNS>
  1. Webmin

<public DNS>:10000

Username: root, password: <instance ID>

  1. You can manage MySQL through Webmin.

Login to webmin -> Servers -> MySQL Database Server.

Username: root, password: <instance ID>

For Your Info

By default, Nginx is installed in /etc/nginx
Nginx DocumentRoot directory /usr/share/nginx/html
Nginx configuration files /etc/nginx/nginx.conf
/etc/nginx/conf.d/default.conf
Nginx logs directory /var/log/nginx
Nginx user nginx
Process the PHP scripts by using php5-fpm

Cannot Access to Webmin

  1. After the “Status Checks” of the instance in AWS Console turns to “2/2 checks passed” can you start to access the system, or the initialization process might be interrupted and fail.
  2. Ensure port 10000 is in your security group.
Type Custom TCP Rule
Protocol TCP
Port range 10000
Source 0.0.0.0/0

For First Release

About First Release

By default, Nginx is installed in /usr/local/nginx
Nginx DocumentRoot directory /usr/local/nginx/html
Nginx configuration files /usr/local/nginx/conf/nginx.conf
/etc/nginx/sites-available/default
Nginx logs /var/log/nginx
Process the PHP scripts by using php5-fpm

Bind() to 0.0.0.0:80 failed when start or restart Nginx (for first release)

  1. To access the instance through ssh. Open a terminal or SSH client, using your amazon ec2 ssh public key, ssh into the instance as the ubuntu user using the public DNS information for your instance.
  2. Type the following commands ( excluding the sign $).
$ sudo fuser -k 80/tcp

$ sudo /etc/init.d/nginx start

Support

Contact Sain3

We will do our best to respond to your questions within 24 hours Monday through Friday. Please visit product.sain3.com for details.