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.
1
Apache / Re: Could not create directory
« on: October 08, 2024, 06:58:27 AM »
Thanks, it's been fixed
2
Apache / Re: Could not create directory
« on: October 08, 2024, 06:33:04 AM »
I found the problem, my VPS space is 160, but the space allocated to the current user is only 20G, how do I increase the space for the current user. In User Accounts-> List Accounts->Edit Account I didn't find the option to modify the disk space.
3
Apache / Re: Could not create directory
« on: October 08, 2024, 06:23:44 AM »
I checked, and in the user account, its permissions are 755, which seems to be okay.
I create a directory through FileZilla, and it shows the following error
Status: Retrieving directory listing of "/public_html/wp-content/upgrade"...
Status: Directory listing of "/public_html/wp-content/upgrade" successful
Status: Creating directory '/public_html/wp-content/upgrade/66'...
Command: MKD 66
Response: 550 Can't create directory: Disk quota exceeded
FileZilla also shows that the disk space is exhausted.
I create a directory through FileZilla, and it shows the following error
Status: Retrieving directory listing of "/public_html/wp-content/upgrade"...
Status: Directory listing of "/public_html/wp-content/upgrade" successful
Status: Creating directory '/public_html/wp-content/upgrade/66'...
Command: MKD 66
Response: 550 Can't create directory: Disk quota exceeded
FileZilla also shows that the disk space is exhausted.
4
Apache / Re: Could not create directory
« on: October 08, 2024, 06:04:10 AM »
This command returns the following:
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 17M 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sda 157G 41G 109G 28% /
tmpfs 783M 0 783M 0% /run/user/0
Please check!
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 17M 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sda 157G 41G 109G 28% /
tmpfs 783M 0 783M 0% /run/user/0
Please check!
5
Apache / Re: Could not create directory
« on: October 08, 2024, 02:56:19 AM »
CentOS 7 Disk ext4 162218 MB
512 MB Swap Image swap 512 MB
Here is my VPS partition
512 MB Swap Image swap 512 MB
Here is my VPS partition
6
Apache / Could not create directory
« on: October 08, 2024, 01:34:04 AM »
My VPS running on CWPpro version: 0.9.8.1187
I want to upgrade the plugin for WordPress, but after clicking upgrade I get the following error
Update failed: Could not create directory. /home/*/public_html/wp-content/upgrade/classic-editor.1.6.5
I checked the permissions on the /upgrade/ directory and it is 755, which should be fine!
In addition, before, I could upgrade the plugin normally, but recently I suddenly got such an error.
I checked the site's error logs again and found a number of error records as follows
AH01071: Got error 'PHP message: PHP Warning: file_put_contents(): only -1 of 78424 bytes written, possibly out of free disk space in /home/*/public_ html/wp-content/plugins/wp-cache/inc/cache.php on line 1226'
This seems to be running out of space, but my VPS has 160G and I'm only using 41G so far, what's wrong with this and how should I fix it?
I want to upgrade the plugin for WordPress, but after clicking upgrade I get the following error
Update failed: Could not create directory. /home/*/public_html/wp-content/upgrade/classic-editor.1.6.5
I checked the permissions on the /upgrade/ directory and it is 755, which should be fine!
In addition, before, I could upgrade the plugin normally, but recently I suddenly got such an error.
I checked the site's error logs again and found a number of error records as follows
AH01071: Got error 'PHP message: PHP Warning: file_put_contents(): only -1 of 78424 bytes written, possibly out of free disk space in /home/*/public_ html/wp-content/plugins/wp-cache/inc/cache.php on line 1226'
This seems to be running out of space, but my VPS has 160G and I'm only using 41G so far, what's wrong with this and how should I fix it?
7
SSL / Invalid SSL certificate for subdomain
« on: July 06, 2022, 07:21:00 AM »
I added a subdomain on CWP7, and then added an SSL certificate for this subdomain. It uses the same SSL certificate as the main domain. This subdomain also points to /home/domain/public_html which points to the same directory as the main domain.
Then add an A record for this subdomain in Cloudflare.
But when accessing this subdomain, Cloudflare prompts “Error 526, Invalid SSL certificate, Host Error” on the browser
I want to know how to fix it?
Then add an A record for this subdomain in Cloudflare.
But when accessing this subdomain, Cloudflare prompts “Error 526, Invalid SSL certificate, Host Error” on the browser
I want to know how to fix it?
8
Apache / Re: Nginx configure
« on: June 28, 2022, 07:26:52 AM »
I change it in /etc/nginx/conf.d/vhosts/mydomain.com.conf
Then restart Apache and Nginx, but the URL without the / suffix still displays the source code
Then restart Apache and Nginx, but the URL without the / suffix still displays the source code
9
Apache / Re: Nginx configure
« on: June 20, 2022, 02:09:18 AM »
This is the Nginx configuration of my domain, where should I modify it?
Contents of File: /etc/nginx/conf.d/vhosts/example.com.conf
server {
listen 192.168.0.1:80;
server_name example.com www.example.com;
access_log /usr/local/apache/domlogs/example.com.bytes bytes;
access_log /usr/local/apache/domlogs/example.com.log combined;
error_log /usr/local/apache/domlogs/example.com.error.log error;
location / {
location ~.*\.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|html|htm|txt|js|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|woff|ttf|svg|eot|sh|webp)$ {
root /home/example/public_html;
expires max;
try_files $uri $uri/ @backend;
}
error_page 405 = @backend;
error_page 500 = @custom;
add_header X-Cache "HIT from Backend";
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
proxy_pass http://192.168.0.1:8181;
include proxy.inc;
}
location @backend {
internal;
proxy_pass http://192.168.0.1:8181;
include proxy.inc;
}
location @custom {
internal;
proxy_pass http://192.168.0.1:8181;
include proxy.inc;
}
location ~ .*\.(php|jsp|cgi|pl|py)?$ {
proxy_pass http://192.168.0.1:8181;
include proxy.inc;
}
location ~ /\.ht {deny all;}
location ~ /\.svn/ {deny all;}
location ~ /\.git/ {deny all;}
location ~ /\.hg/ {deny all;}
location ~ /\.bzr/ {deny all;}
disable_symlinks if_not_owner from=/home/example/public_html;
location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}
server {
listen 192.168.0.1:80;
server_name webmail.example.com;
access_log /usr/local/apache/domlogs/example.com.bytes bytes;
access_log /usr/local/apache/domlogs/example.com.log combined;
error_log /usr/local/apache/domlogs/example.com.error.log error;
location / {
proxy_pass http://127.0.0.1:2095;
include proxy.inc;
}
location ~ /\.ht {deny all;}
location ~ /\.svn/ {deny all;}
location ~ /\.git/ {deny all;}
location ~ /\.hg/ {deny all;}
location ~ /\.bzr/ {deny all;}
disable_symlinks if_not_owner from=/home/example/public_html;
location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}
server {
listen 192.168.0.1:80;
server_name mail.example.com;
access_log /usr/local/apache/domlogs/example.com.bytes bytes;
access_log /usr/local/apache/domlogs/example.com.log combined;
error_log /usr/local/apache/domlogs/example.com.error.log error;
location / {
proxy_pass http://127.0.0.1:2095;
include proxy.inc;
}
location ~ /\.ht {deny all;}
location ~ /\.svn/ {deny all;}
location ~ /\.git/ {deny all;}
location ~ /\.hg/ {deny all;}
location ~ /\.bzr/ {deny all;}
disable_symlinks if_not_owner from=/home/example/public_html;
location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}
server {
listen 192.168.0.1:80;
server_name cpanel.example.com;
access_log /usr/local/apache/domlogs/example.com.bytes bytes;
access_log /usr/local/apache/domlogs/example.com.log combined;
error_log /usr/local/apache/domlogs/example.com.error.log error;
location / {
proxy_pass https://127.0.0.1:2083;
include proxy.inc;
}
location /pma {
proxy_pass https://127.0.0.1:2031;
include proxy.inc;
}
location /roundcube {
proxy_pass https://127.0.0.1:2031;
include proxy.inc;
}
location ~ /\.ht {deny all;}
location ~ /\.svn/ {deny all;}
location ~ /\.git/ {deny all;}
location ~ /\.hg/ {deny all;}
location ~ /\.bzr/ {deny all;}
disable_symlinks if_not_owner from=/home/example/public_html;
location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}
Contents of File: /etc/nginx/conf.d/vhosts/example.com.conf
server {
listen 192.168.0.1:80;
server_name example.com www.example.com;
access_log /usr/local/apache/domlogs/example.com.bytes bytes;
access_log /usr/local/apache/domlogs/example.com.log combined;
error_log /usr/local/apache/domlogs/example.com.error.log error;
location / {
location ~.*\.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|html|htm|txt|js|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|woff|ttf|svg|eot|sh|webp)$ {
root /home/example/public_html;
expires max;
try_files $uri $uri/ @backend;
}
error_page 405 = @backend;
error_page 500 = @custom;
add_header X-Cache "HIT from Backend";
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
proxy_pass http://192.168.0.1:8181;
include proxy.inc;
}
location @backend {
internal;
proxy_pass http://192.168.0.1:8181;
include proxy.inc;
}
location @custom {
internal;
proxy_pass http://192.168.0.1:8181;
include proxy.inc;
}
location ~ .*\.(php|jsp|cgi|pl|py)?$ {
proxy_pass http://192.168.0.1:8181;
include proxy.inc;
}
location ~ /\.ht {deny all;}
location ~ /\.svn/ {deny all;}
location ~ /\.git/ {deny all;}
location ~ /\.hg/ {deny all;}
location ~ /\.bzr/ {deny all;}
disable_symlinks if_not_owner from=/home/example/public_html;
location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}
server {
listen 192.168.0.1:80;
server_name webmail.example.com;
access_log /usr/local/apache/domlogs/example.com.bytes bytes;
access_log /usr/local/apache/domlogs/example.com.log combined;
error_log /usr/local/apache/domlogs/example.com.error.log error;
location / {
proxy_pass http://127.0.0.1:2095;
include proxy.inc;
}
location ~ /\.ht {deny all;}
location ~ /\.svn/ {deny all;}
location ~ /\.git/ {deny all;}
location ~ /\.hg/ {deny all;}
location ~ /\.bzr/ {deny all;}
disable_symlinks if_not_owner from=/home/example/public_html;
location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}
server {
listen 192.168.0.1:80;
server_name mail.example.com;
access_log /usr/local/apache/domlogs/example.com.bytes bytes;
access_log /usr/local/apache/domlogs/example.com.log combined;
error_log /usr/local/apache/domlogs/example.com.error.log error;
location / {
proxy_pass http://127.0.0.1:2095;
include proxy.inc;
}
location ~ /\.ht {deny all;}
location ~ /\.svn/ {deny all;}
location ~ /\.git/ {deny all;}
location ~ /\.hg/ {deny all;}
location ~ /\.bzr/ {deny all;}
disable_symlinks if_not_owner from=/home/example/public_html;
location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}
server {
listen 192.168.0.1:80;
server_name cpanel.example.com;
access_log /usr/local/apache/domlogs/example.com.bytes bytes;
access_log /usr/local/apache/domlogs/example.com.log combined;
error_log /usr/local/apache/domlogs/example.com.error.log error;
location / {
proxy_pass https://127.0.0.1:2083;
include proxy.inc;
}
location /pma {
proxy_pass https://127.0.0.1:2031;
include proxy.inc;
}
location /roundcube {
proxy_pass https://127.0.0.1:2031;
include proxy.inc;
}
location ~ /\.ht {deny all;}
location ~ /\.svn/ {deny all;}
location ~ /\.git/ {deny all;}
location ~ /\.hg/ {deny all;}
location ~ /\.bzr/ {deny all;}
disable_symlinks if_not_owner from=/home/example/public_html;
location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}
10
Apache / Re: Nginx configure
« on: June 18, 2022, 04:11:50 AM »
It's not a PHP page, it's a static page, because an opencart was installed before, and its pages are without / at the end, I deleted opencart now, but there are a few pages that need to be kept, so I created these pages manually
How do I set up so that these pages can display the content, and now visit them only to display the source code
Actually, the FPM has been installed
If the Web Server is switched to Apache Only, these pages can be displayed normally, but I am using Nginx & Apache now, I think it may be caused by Nginx.
How do I set up so that these pages can display the content, and now visit them only to display the source code
Actually, the FPM has been installed
If the Web Server is switched to Apache Only, these pages can be displayed normally, but I am using Nginx & Apache now, I think it may be caused by Nginx.
11
Apache / Nginx configure
« on: June 17, 2022, 01:15:46 AM »
My Web Server is Nginx & Apache, I have several ULRs without suffix, for example: https://www.example.com/my-post
Please note that there is no "/" at the end of this URL. Now visiting this URL will directly display the source code of this page. How can I make it display the content of the page?
Please note that there is no "/" at the end of this URL. Now visiting this URL will directly display the source code of this page. How can I make it display the content of the page?
12
PHP / PHP-FPM not working, 503 Service Unavailable
« on: April 28, 2022, 03:55:16 AM »
My website suddenly got the following error
503 Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
I checked the error log of the domain name and found the following code
it seem the PHP-FPM stopped working, how to fix it?
[Thu Apr 28 03:34:04.581381 2022] [proxy:error] [pid 969:tid 140569548404480] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm74/usr/var/sockets/mydomain.sock (*) failed
[Thu Apr 28 03:34:04.581404 2022] [proxy_fcgi:error] [pid 969:tid 140569548404480] [client 113.118.232.250:46144] AH01079: failed to make connection to backend: httpd-UDS
[Thu Apr 28 03:34:04.609360 2022] [proxy:error] [pid 968:tid 140569531619072] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm74/usr/var/sockets/mydomain.sock (*) failed
[Thu Apr 28 03:34:04.609400 2022] [proxy_fcgi:error] [pid 968:tid 140569531619072] [client 92.247.181.45:46146] AH01079: failed to make connection to backend: httpd-UDS
[Thu Apr 28 03:34:05.585224 2022] [proxy:error] [pid 967:tid 140569422513920] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm74/usr/var/sockets/mydomain.sock (*) failed
[Thu Apr 28 03:34:05.585250 2022] [proxy_fcgi:error] [pid 967:tid 140569422513920] [client 113.118.232.250:46148] AH01079: failed to make connection to backend: httpd-UDS
[Thu Apr 28 03:34:19.692806 2022] [proxy:error] [pid 968:tid 140569514833664] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm74/usr/var/sockets/mydomain.sock (*) failed
[Thu Apr 28 03:34:19.692837 2022] [proxy_fcgi:error] [pid 968:tid 140569514833664] [client 82.146.56.36:46154] AH01079: failed to make connection to backend: httpd-UDS
[Thu Apr 28 03:34:31.446718 2022] [proxy:error] [pid 968:tid 140569659246336] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm74/usr/var/sockets/mydomain.sock (*) failed
[Thu Apr 28 03:34:31.446743 2022] [proxy_fcgi:error] [pid 968:tid 140569659246336] [client 66.249.64.182:46156] AH01079: failed to make connection to backend: httpd-UDS
[Thu Apr 28 03:34:35.353507 2022] [proxy:error] [pid 968:tid 140569573582592] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm74/usr/var/sockets/mydomain.sock (*) failed
503 Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
I checked the error log of the domain name and found the following code
it seem the PHP-FPM stopped working, how to fix it?
[Thu Apr 28 03:34:04.581381 2022] [proxy:error] [pid 969:tid 140569548404480] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm74/usr/var/sockets/mydomain.sock (*) failed
[Thu Apr 28 03:34:04.581404 2022] [proxy_fcgi:error] [pid 969:tid 140569548404480] [client 113.118.232.250:46144] AH01079: failed to make connection to backend: httpd-UDS
[Thu Apr 28 03:34:04.609360 2022] [proxy:error] [pid 968:tid 140569531619072] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm74/usr/var/sockets/mydomain.sock (*) failed
[Thu Apr 28 03:34:04.609400 2022] [proxy_fcgi:error] [pid 968:tid 140569531619072] [client 92.247.181.45:46146] AH01079: failed to make connection to backend: httpd-UDS
[Thu Apr 28 03:34:05.585224 2022] [proxy:error] [pid 967:tid 140569422513920] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm74/usr/var/sockets/mydomain.sock (*) failed
[Thu Apr 28 03:34:05.585250 2022] [proxy_fcgi:error] [pid 967:tid 140569422513920] [client 113.118.232.250:46148] AH01079: failed to make connection to backend: httpd-UDS
[Thu Apr 28 03:34:19.692806 2022] [proxy:error] [pid 968:tid 140569514833664] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm74/usr/var/sockets/mydomain.sock (*) failed
[Thu Apr 28 03:34:19.692837 2022] [proxy_fcgi:error] [pid 968:tid 140569514833664] [client 82.146.56.36:46154] AH01079: failed to make connection to backend: httpd-UDS
[Thu Apr 28 03:34:31.446718 2022] [proxy:error] [pid 968:tid 140569659246336] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm74/usr/var/sockets/mydomain.sock (*) failed
[Thu Apr 28 03:34:31.446743 2022] [proxy_fcgi:error] [pid 968:tid 140569659246336] [client 66.249.64.182:46156] AH01079: failed to make connection to backend: httpd-UDS
[Thu Apr 28 03:34:35.353507 2022] [proxy:error] [pid 968:tid 140569573582592] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm74/usr/var/sockets/mydomain.sock (*) failed
13
Apache / Re: certificate does NOT include an ID which matches the server name
« on: March 17, 2022, 04:14:36 AM »
There are no other errors found in the log, it seems that I have to reinstall CWP7
14
Apache / Re: certificate does NOT include an ID which matches the server name
« on: March 17, 2022, 03:01:56 AM »
But my website is often inaccessible, Google Chrome shows the error code is ERR_CONNECTION_RESET
There is error in the log: AH00492: caught SIGWINCH, shutting down gracefully
Is this error causing the website to be inaccessible?
There is error in the log: AH00492: caught SIGWINCH, shutting down gracefully
Is this error causing the website to be inaccessible?
15
Apache / Re: certificate does NOT include an ID which matches the server name
« on: March 17, 2022, 02:55:27 AM »
But I don't need these subdomains, so I didn't add A records for these subdomains.
In addition, my mail is the purchased google enterprise mail, it needs to point to the A record provided by google
In addition, my mail is the purchased google enterprise mail, it needs to point to the A record provided by google