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 - kelyiu3000

Pages: [1]
1
Installation / Re: Abnormal Disk IO and usage
« on: May 19, 2020, 05:41:05 PM »
Enable quotas.  There are more people guides on the forum.

Dear rcschaff,

I have already confirmed.
Seems not works.
Any idea?

Code: [Select]
#
# /etc/fstab
/dev/mapper/centos_cwp-root /                       xfs     defaults,usrquota,grpquota        0 0
UUID=31e6dd88-1e0d-4fb5-be20-1ce79064678d /boot                   xfs     defaults        0 0
/dev/mapper/centos_cwp-home /home xfs rw,relatime,attr2,inode64,usrquota,grpquota 0 0
/dev/mapper/centos_cwp-swap swap                    swap    defaults        0 0

Code: [Select]
[root@CWP ~]# xfs_quota -x -c "print"
Filesystem          Pathname
/                   /dev/mapper/centos_cwp-root (uquota, gquota)
/boot               /dev/sda2
/home               /dev/mapper/centos_cwp-home (uquota, gquota)

Code: [Select]
[root@CWP ~]# xfs_quota -x -c "report -ubih" /home
User quota on /home (/dev/mapper/centos_cwp-home)
                        Blocks                            Inodes
User ID      Used   Soft   Hard Warn/Grace     Used   Soft   Hard Warn/Grace
---------- --------------------------------- ---------------------------------
root       675.0M      0      0  00 [------]   1.7k      0      0  00 [------]
xxxx      12.8G      0      0  00 [------]   1.4m      0      0  00 [------]
xxxxx     36.1M      0      0  00 [------]   1.6k      0      0  00 [------]

Code: [Select]
[root@CWP ~]# xfs_quota -x -c "state"
User quota state on / (/dev/mapper/centos_cwp-root)
  Accounting: ON
  Enforcement: ON
  Inode: #5090795 (9 blocks, 8 extents)
Group quota state on / (/dev/mapper/centos_cwp-root)
  Accounting: ON
  Enforcement: ON
  Inode: #5090801 (10 blocks, 10 extents)
Project quota state on / (/dev/mapper/centos_cwp-root)
  Accounting: OFF
  Enforcement: OFF
  Inode: #5090801 (10 blocks, 10 extents)
Blocks grace time: [7 days]
Inodes grace time: [7 days]
Realtime Blocks grace time: [7 days]
User quota state on /home (/dev/mapper/centos_cwp-home)
  Accounting: ON
  Enforcement: ON
  Inode: #67 (2 blocks, 2 extents)
Group quota state on /home (/dev/mapper/centos_cwp-home)
  Accounting: ON
  Enforcement: ON
  Inode: #68 (3 blocks, 3 extents)
Project quota state on /home (/dev/mapper/centos_cwp-home)
  Accounting: OFF
  Enforcement: OFF
  Inode: #68 (3 blocks, 3 extents)
Blocks grace time: [7 days]
Inodes grace time: [7 days]
Realtime Blocks grace time: [7 days]

2
Installation / Abnormal Disk IO and usage
« on: May 18, 2020, 10:28:49 AM »
Dear Sir,

I found the disk IO always shown 0% usage.

And disk usage for email, folder and SQL disk usage also abnormal.

Please help.

https://ibb.co/nQpHYHM

3
CentOS-WebPanel Bugs / Re: file_get_contents local file issue
« on: May 07, 2020, 09:49:33 AM »
Found the reason.
As my CWP is NAT-ed configuration, PHP (version 5 to 7) seems use the external IP to query the hosted domain.
When I add the internal IP and match hosted domain in /etc/hosts
PHP can find correct correct file now.

Please see if it is bug or CentOS issue.

Thanks.

4
CentOS-WebPanel Bugs / Re: file_get_contents local file issue
« on: May 06, 2020, 03:49:04 PM »
More information:
allow_url_fopen=ON
allow_url_include=ON

And PHP will something redirect to http://xxx.xxx/login.htm

Intesting thing is
[root@CWP ~]# find / -name login.htm
It is nothing to find.

5
CentOS-WebPanel Bugs / file_get_contents local file issue
« on: May 06, 2020, 03:35:32 PM »
Dear Sir,

I got issue and would like to seek help from your side.

I find a interest things when I use file_get_contents and curl to get content from local domain/file hosted on my site.
Example: http://xxx.xxx/index.html
It will have the following error.
 [proxy_fcgi:error] [pid] [client] AH01071: Got error 'PHP message: PHP Warning: file_get_contents(http://xxx.xxx/index.html): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found\r in /home/xxx/public_html/xxx.xxx/xxx.php on line 3'

Tried rebuild apache-->FPM and php5.5 but still not work.

Please help.

Thanks.

6
The code in test.cgi is

Code: [Select]
#!/usr/bin/perl

print "Content-type: text/html\n\n";

print "Hello, World.";

7
I installed CWP in Centos 7 using minimal install option in VM with 2core and 4GB RAM.

After installation, I enabled the mod_cgid.so in Apache module.
Default it is not enabled.

And I have installed Perl and Perl-CGI in the OS.

I also added this to my /usr/local/apache/conf/httpd.conf
<Directory "/home/*/public_html/">
      AllowOverride All
      Options +ExecCGI
      AddHandler cgi-script .cgi .pl
</Directory>

When I try to execute .cgi, it will show 500 error.
Log said is [cgid:error] End of script output before headers.

It seems the permission issue. but the file is also 755 in permission.

I run in terminal is without any error.

Please advise how I can fix this issue.

8
Installation / Issue in new installed CWP
« on: June 08, 2017, 06:28:04 AM »
I installed CWP in Centos 7 using minimal install option in VM with 2core and 4GB RAM.
After installation, I found that ClamAV, AMaViS and SpamAssassin both are in unknown status.

Here is the description when I click into the status button on the dashboard.

clamd.service - clamd scanner () daemon
   Loaded: loaded (/usr/lib/systemd/system/clamd.service; static; vendor preset: disabled)
   Active: inactive (dead)

amavisd.service - Amavisd-new is an interface between MTA and content checkers.
   Loaded: loaded (/usr/lib/systemd/system/amavisd.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: http://www.ijs.si/software/amavisd/#doc

spamassassin.service - Spamassassin daemon
   Loaded: loaded (/usr/lib/systemd/system/spamassassin.service; disabled; vendor preset: disabled)
   Active: inactive (dead)

After restart the service manually, they both will work.
But reboot the os, it will become unknown status again.

Please advise how I can fix this issue.

Pages: [1]