Thinhnam.net Configuration -
If you cannot access php.ini, use .htaccess (Apache only). Add these lines to your root .htaccess file:
<IfModule mod_php7.c>
php_value memory_limit 256M
php_value upload_max_filesize 64M
php_value max_execution_time 180
</IfModule>
Even with perfect settings, errors occur. Here is a checklist for the 5 most common issues:
| Error | Likely Cause | Solution |
| :--- | :--- | :--- |
| 404 Not Found | Missing .htaccess or broken permalinks (WordPress) | Go to Settings > Permalinks (WP Admin) and click "Save Changes" without editing. |
| 500 Internal Server Error | Corrupt .htaccess or PHP memory exhaustion | Rename .htaccess to .htaccess.bak and test. If solved, rewrite rules. |
| 503 Service Unavailable | Resource limits exceeded (CPU/Memory) | Upgrade hosting plan or optimize database queries. Contact Thinhnam.net support for usage logs. |
| Connection Timed Out (Email) | Wrong SMTP port or firewall block | Ensure port 465 or 587 is open on your network (try mobile data to confirm). |
| SSL Not Working | Self-signed certificate or mixed content | Run "AutoSSL" in cPanel. Install "Really Simple SSL" plugin for WordPress. | Thinhnam.net Configuration
To make your website live, you need at least these records:
| Record Type | Name/Host | Value/Destination | TTL (Recommended) |
| :--- | :--- | :--- | :--- |
| A (Address) | @ (or yourdomain.com) | Server IP Address (e.g., 123.123.123.123) | 3600 |
| A (Address) | www | Server IP Address (same as above) | 3600 |
| CNAME | mail | yourdomain.com | 14400 |
| MX | @ | mail.yourdomain.com (Priority 0 or 10) | 3600 | If you cannot access php
Pro-tip for Thinhnam.net Users: If you are using Thinhnam.net’s nameservers (ns1.thinhnam.net and ns2.thinhnam.net), changes apply within 15-30 minutes. If you are using an external registrar, ensure you have updated the nameservers at the domain registrar level first.
Choose Nginx or Apache based on app needs. Nginx excels for reverse proxying and static files; Apache is preferred when .htaccess usage or certain Apache modules are required. Even with perfect settings, errors occur
A. Nginx (recommended for most modern stacks)
B. Apache (if required)
Enable compression to reduce file sizes. Add to .htaccess:
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
</IfModule>
This document outlines the standard configuration settings for the Thinhnam.net environment. Proper configuration ensures optimal performance, security, and reliability across all services.