Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - tanquang

Pages: [1]
1
CentOS 6 Problems / .htaccess - 500 Internal Server Error
« on: November 26, 2018, 06:35:06 PM »
Hello,
My Webserver is Apache & Nginx Reverse Proxy and my server is CentOS 6.10 (latest), my CWP version is also the latest version!
In addition to setting the maximum upload file size using php.ini and .user.ini, I try to install them via .htaccess. But I get the error "500 Internal Server Error".
I have read the documentation on the CWP wiki page, they said: "DSO - PHP Handler for CWP", "DSO also referred to as mod_php" (Wiki). So I edited my .htaccess file as follows:
Code: [Select]
<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options -Indexes
Options All -Indexes
RewriteEngine On
RewriteBase /
</IfModule>
<IfModule mod_php5.c>
   php_flag asp_tags Off
   php_flag display_errors Off
   php_flag log_errors Off
   php_value allow_url_fopen On
   php_value max_execution_time 60
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value memory_limit 2048M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path '/tmp'
   php_value upload_max_filesize 50M
   php_value post_max_size 50M
   php_value max_file_uploads 20
   php_flag zlib.output_compression Off
   php_value date.timezone 'Asia/Ho_Chi_Minh'
</IfModule>
<IfModule mod_php7.c>
   php_flag asp_tags Off
   php_flag display_errors Off
   php_flag log_errors Off
   php_value allow_url_fopen On
   php_value max_execution_time 60
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value memory_limit 2048M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path '/tmp'
   php_value upload_max_filesize 50M
   php_value post_max_size 50M
   php_value max_file_uploads 20
   php_flag zlib.output_compression Off
   php_value date.timezone 'Asia/Ho_Chi_Minh'
</IfModule>
<IfModule mime_module>
   AddType application/x-httpd-ea-php56 .php .php5 .phtml
   AddHandler application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
I checked the log in my apache directory and found the file is suphp.log, so I tried changing it to suphp as follows:
Code: [Select]
<IfModule mod_suphp.c>
   php_flag asp_tags Off
   php_flag display_errors Off
   php_flag log_errors Off
   php_value allow_url_fopen On
   php_value max_execution_time 60
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value memory_limit 2048M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path '/tmp'
   php_value upload_max_filesize 50M
   php_value post_max_size 50M
   php_value max_file_uploads 20
   php_flag zlib.output_compression Off
   php_value date.timezone 'Asia/Ho_Chi_Minh'
   AddType application/x-httpd-ea-php56 .php .php5 .phtml
   AddHandler application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
And they all return the same error (500 Internal Server Error)!
Where was I wrong?
Please help me!
Thank you.

2
CentOS-WebPanel Bugs / Subdomains can't use dashes
« on: November 26, 2018, 04:11:27 PM »
Hello,
I'm using CentOS 6 (64-bit) and am using lastest version CentOS Web Panel.
I want to create forums in subdomains by language, eg: forum-english, forum-chinese, forum-vietnamese,...
However, when I use dashes, I get the error message: "Incorrect format, remember that you can not have special characters". So, I can not create subdomains that contain dashes!
It's not like cPanel, and this rule is a bit flawed. So, I want to give some suggestions for updates in the next release as follows:
1. Edit the subdomain rule: Allow the use of dashes, however, subdomains will become invalid if the dash is at the bottom of the subdomain. Example: forum-english-, home-page -,...
2. Update Apache to the latest version: The latest version is 2.4.37, the current version is 2.4.34.
3. Edit package list display settings: Currently only disk space if set to "0" will be "Unlimited". However, in the new update, I hope to integrate if set to "0" then would be "Unlimited" for bandwidth! Also, in the user control panel, in addition to "DISK SPACE USAGE" there should be "BANDWIDTH USAGE" and instead of displaying "INF%" and "0 MB" (both admin panel and user panel) will display to "Unlimited", it will look better!
4. Move the addon "eXtplorer File Manager" to the admin panel: If you install the addon at the admin panel, then everyone can use it without having to install separately according to each user panel. Will save more resources.
5. Currently only the user panel has the favicon of CentOS Web Panel, I hope the admin panel will soon have it! And I think the CentOS Web Panel's favicon instead of the background is white, so being transparent is more reasonable!
I really hope in the new update! :)
Thank you and have a good day. :D

Pages: [1]