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.


Topics - gailclark80

Pages: [1] 2
1
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?

2
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

3
I use Nginx & Apache, now there is a strange problem, the website is frequently inaccessible, Chrome shows ERR_CONNECTION_RESET, I checked the error log, it shows as follows, how can I fix it?

I've tried rebuilding the server, and reinstalling SSL, but it doesn't solve the problem. I also tested the SSL certificate using the tool and the key and certificate match.

[Wed Mar 16 03:40:52.287922 2022] [mpm_event:notice] [pid 27942:tid 140218443245440] AH00492: caught SIGWINCH, shutting down gracefully
[Wed Mar 16 03:40:52.371153 2022] [ssl:warn] [pid 28976:tid 140594806794112] AH01909: cpanel.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 03:40:52.371792 2022] [ssl:warn] [pid 28976:tid 140594806794112] AH01909: mail.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 03:40:52.372764 2022] [ssl:warn] [pid 28976:tid 140594806794112] AH01909: webmail.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 03:40:52.390082 2022] [ssl:warn] [pid 28977:tid 140594806794112] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Mar 16 03:40:52.390603 2022] [ssl:warn] [pid 28977:tid 140594806794112] AH01909: cpanel.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 03:40:52.391149 2022] [ssl:warn] [pid 28977:tid 140594806794112] AH01909: mail.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 03:40:52.391560 2022] [ssl:warn] [pid 28977:tid 140594806794112] AH01909: webmail.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 03:40:52.393985 2022] [mpm_event:notice] [pid 28977:tid 140594806794112] AH00489: Apache/2.4.51 (Unix) OpenSSL/1.0.2k-fips configured -- resuming normal operations
[Wed Mar 16 03:40:52.394022 2022] [core:notice] [pid 28977:tid 140594806794112] AH00094: Command line: '/usr/local/apache/bin/httpd'
[Wed Mar 16 04:17:45.705411 2022] [mpm_event:notice] [pid 28977:tid 140594806794112] AH00492: caught SIGWINCH, shutting down gracefully
[Wed Mar 16 04:17:45.760845 2022] [ssl:warn] [pid 30959:tid 140015092979584] AH01909: cpanel.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 04:17:45.761498 2022] [ssl:warn] [pid 30959:tid 140015092979584] AH01909: mail.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 04:17:45.761995 2022] [ssl:warn] [pid 30959:tid 140015092979584] AH01909: webmail.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 04:17:45.783688 2022] [ssl:warn] [pid 30960:tid 140015092979584] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Mar 16 04:17:45.784421 2022] [ssl:warn] [pid 30960:tid 140015092979584] AH01909: cpanel.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 04:17:45.785201 2022] [ssl:warn] [pid 30960:tid 140015092979584] AH01909: mail.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 04:17:45.785805 2022] [ssl:warn] [pid 30960:tid 140015092979584] AH01909: webmail.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 04:17:45.788816 2022] [mpm_event:notice] [pid 30960:tid 140015092979584] AH00489: Apache/2.4.51 (Unix) OpenSSL/1.0.2k-fips configured -- resuming normal operations
[Wed Mar 16 04:17:45.788860 2022] [core:notice] [pid 30960:tid 140015092979584] AH00094: Command line: '/usr/local/apache/bin/httpd'
[Wed Mar 16 08:16:02.810890 2022] [mpm_event:notice] [pid 30960:tid 140015092979584] AH00492: caught SIGWINCH, shutting down gracefully
[Wed Mar 16 08:16:02.874760 2022] [ssl:warn] [pid 10864:tid 140471621969792] AH01909: cpanel.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 08:16:02.875363 2022] [ssl:warn] [pid 10864:tid 140471621969792] AH01909: mail.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 08:16:02.875825 2022] [ssl:warn] [pid 10864:tid 140471621969792] AH01909: webmail.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 08:16:02.893965 2022] [ssl:warn] [pid 10866:tid 140471621969792] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Mar 16 08:16:02.894490 2022] [ssl:warn] [pid 10866:tid 140471621969792] AH01909: cpanel.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 08:16:02.895037 2022] [ssl:warn] [pid 10866:tid 140471621969792] AH01909: mail.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 08:16:02.895457 2022] [ssl:warn] [pid 10866:tid 140471621969792] AH01909: webmail.mydomain.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 16 08:16:02.897918 2022] [mpm_event:notice] [pid 10866:tid 140471621969792] AH00489: Apache/2.4.51 (Unix) OpenSSL/1.0.2k-fips configured -- resuming normal operations
[Wed Mar 16 08:16:02.897966 2022] [core:notice] [pid 10866:tid 140471621969792] AH00094: Command line: '/usr/local/apache/bin/httpd'

4
Postfix / SASL LOGIN authentication failed: UGFzc3dvcmQ6
« on: February 28, 2022, 02:29:00 AM »
maillog keeps recording the following errors, the maillog file has exceeded 50M, I found that 5.34.207.56 and 5.34.205.98 are located in Iran, obviously, my server is under attack
I tried to block these two IPs According to https://wiki.centos-webpanel.com/postfix-blacklist-domain-or-ip, I created sender_blacklist, and executed postmap /etc/postfix/sender_blacklist, but the maillog continues to recording these errors

How to fix it?

Feb 28 02:20:05 postfix/smtpd[19178]: connect from unknown[5.34.207.56]
Feb 28 02:20:05 postfix/smtpd[18173]: disconnect from unknown[5.34.207.56] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
Feb 28 02:20:06 postfix/smtpd[15770]: warning: unknown[5.34.205.98]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Feb 28 02:20:06 postfix/smtpd[15770]: disconnect from unknown[5.34.205.98] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
Feb 28 02:20:08 postfix/smtpd[18548]: connect from unknown[5.34.205.98]
Feb 28 02:20:10 postfix/smtpd[18173]: connect from unknown[5.34.207.56]
Feb 28 02:20:11 postfix/smtpd[17156]: warning: unknown[5.34.207.56]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Feb 28 02:20:11 postfix/smtpd[17156]: disconnect from unknown[5.34.207.56] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
Feb 28 02:20:14 postfix/smtpd[19184]: warning: unknown[5.34.207.56]: SASL LOGIN authentication failed: Connection lost to authentication server
Feb 28 02:20:14 postfix/smtpd[17156]: connect from unknown[5.34.207.56]
Feb 28 02:20:15 postfix/smtpd[19184]: disconnect from unknown[5.34.207.56] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
Feb 28 02:20:18 postfix/smtpd[19178]: warning: unknown[5.34.207.56]: SASL LOGIN authentication failed: Connection lost to authentication server
Feb 28 02:20:19 postfix/smtpd[19178]: disconnect from unknown[5.34.207.56] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
Feb 28 02:20:19 postfix/smtpd[19184]: connect from unknown[5.34.207.56]
Feb 28 02:20:23 postfix/smtpd[18173]: warning: unknown[5.34.207.56]: SASL LOGIN authentication failed: Connection lost to authentication server
Feb 28 02:20:24 postfix/smtpd[19178]: connect from unknown[5.34.207.56]
Feb 28 02:20:24 postfix/smtpd[18173]: disconnect from unknown[5.34.207.56] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4

5
PHP / Can't switch to PHP-FPM 7.4
« on: February 14, 2022, 04:52:03 AM »
I want to switch from PHP-FPM 7.2 to PHP-FPM 7.4, some errors occurred during the upgrade process, PHP-FPM 7.4 was not installed successfully

Here's install log

checking whether to build with expat support... no
checking for libxml-2.0 >= 2.7.6... yes
checking whether to enable XMLReader support... yes
checking for libxml-2.0 >= 2.7.6... yes
checking whether to build with XMLRPC-EPI support... yes
checking whether to build with expat support... no
checking iconv dir for XMLRPC-EPI... no
checking for libxml-2.0 >= 2.7.6... yes
checking whether to enable XMLWriter support... yes
checking for libxml-2.0 >= 2.7.6... yes
checking whether to build with XSL support... yes
checking for libxslt >= 1.1.0... yes
checking for libexslt... yes
checking whether to enable zend-test extension... no
checking for zip archive read/write support... yes
checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0... no
configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:

No package 'libzip' found
No package 'libzip' found
No package 'libzip' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBZIP_CFLAGS
and LIBZIP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
mkdir: cannot create directory '/opt/alt/php-fpm74/usr/var/sockets/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm74/usr/etc/php-fpm.d/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm74/usr/etc/php-fpm.d/users/': No such file or directory
/usr/local/src/php-fpm-7.4.sh: line 101: /opt/alt/php-fpm74/usr/etc/php-fpm.d/users.conf: No such file or directory
/usr/local/src/php-fpm-7.4.sh: line 102: /opt/alt/php-fpm74/usr/etc/php-fpm.conf: No such file or directory
/usr/local/src/php-fpm-7.4.sh: line 104: /opt/alt/php-fpm74/usr/etc/php-fpm.d/cwpsvc.conf: No such file or directory
cp: cannot stat 'sapi/fpm/php-fpm.service': No such file or directory
sed: can't read /usr/lib/systemd/system/php-fpm74.service: No such file or directory
sed: can't read /usr/lib/systemd/system/php-fpm74.service: No such file or directory
Failed to execute operation: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.linode.com
 * epel: packages.oit.ncsu.edu
 * extras: mirrors.linode.com
 * remi-safe: repo1.dal.innoscale.net
 * updates: mirrors.linode.com
Package libsodium-1.0.18-1.el7.x86_64 already installed and latest version
Package libsodium-devel-1.0.18-1.el7.x86_64 already installed and latest version
Nothing to do
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 28505  100 28505    0     0  97677      0 --:--:-- --:--:-- --:--:-- 97955
/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/7.4/sodium.sh: line 9: /opt/alt/php-fpm74/usr/bin/phpize: No such file or directory
/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/7.4/sodium.sh: line 10: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
/usr/local/cwpsrv/htdocs/resources/conf/el7/php-fpm_selector/external_modules/7.4/sodium.sh: line 14: /opt/alt/php-fpm74/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /sodium.so
exe:/opt/alt/php-fpm74/usr/sbin/php-fpm
Failed to restart php-fpm74.service: Unit not found.
Redirecting to /bin/systemctl restart httpd.service

Build Completed
###################


Error:Can't add notification!

6
PHP Selector / PHP-FPM Selector - Build Fails
« on: February 10, 2022, 06:54:16 AM »
I am using PHP-FPM 7.2.30 now and I want to upgrade to PHP-FPM 7.4.20

I selected PHP-FPM 7.4.20 in the PHP-FPM Selector and clicked "Start Compiler"

Then use tail -f /var/log/php-selector-rebuild.log to check the log in SSH, and soon the following error appeared

checking for sys/wait.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for bcopy... yes
checking for memfd_create... no
checking for memmove... yes
checking for mkostemp... yes
checking for realpath... yes
checking for secure_getenv...
Socket error Event: 32 Error: 10053.
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host at 14:24:45.

After a long time, PHP Info still shows PHP version is 7.2.30

what's the problem? how to fix it?

7
Updates / After update today, nginx/1.20.0 error
« on: December 29, 2021, 05:45:20 AM »
My CWPpro version is: 0.9.8.1109

After the automatic update today, the website cannot be accessed, and my website show "404 Not Found, nginx/1.20.0"

what's the problem?
How to fix it?


I checked the error_log

AH00112: Warning: DocumentRoot [/usr/local/apache/htdocs/suspended-page] does not exist
AH00112: Warning: DocumentRoot [/usr/local/apache/htdocs/suspended-page] does not exist
AH00112: Warning: DocumentRoot [/usr/local/apache/htdocs/suspended-page] does not exist
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using linode.com. Set the 'ServerName' directive globally to suppress this message

8
Apache / Wordpress pingbacks not working
« on: July 22, 2021, 02:03:55 AM »
My website is based on WordPress 5.8. and my VPS is running on CWP7 Pro. The pingbacks of the website have not worked for a long time. I have searched many articles. The reason why it does not work may be related to the host or control panel. How can I debug it?

9
Apache / Apache log file too large
« on: April 25, 2021, 01:12:03 AM »
I found that the apache log file is too large, how to clear the log? how to make the apache log save a file every day by date?

/usr/local/apache/domlogs/mydomain.log-5.1GB
/usr/local/apache/logs/access_log-4.5GB
/usr/local/apache/logs/suphp_log-3.6GB

I changed suphp_log to suphp_log-, and then changed it to suphp_log. Now the modification time of suphp_log has not changed for a long time, indicating that the system no longer uses suphp_log. How do I fix it?

10
CentOS 7 Problems / wordpress can not upload images
« on: February 05, 2021, 06:38:28 AM »
my WordPress running on CWP7, PHP 7.027

Today, my wordpress can’t upload images suddenly, the error is as follows:

“Post-processing of the image failed likely because the server is busy or does not have enough resources. Uploading a smaller image may help. Suggested maximum size is 2500 pixels.”


I open the apache error_log, the following error is prompted
AH00052: child pid 4822 exit signal Segmentation fault (11)

I have searched many methods and tried all of them, but none of them can solve the problem. I tried the following methods

1. Change these data in php.ini
post_max_size = 128M
upload_max_filesize = 128M
max_execution_time = 360
memory_limit = 1024M


2. Add this to functions.php of my theme
add_filter(‘wp_image_editors’, function() {return array(‘WP_Image_Editor_GD’ );} );

3. Add this to wp-includes/functions.php
function use_gd_editor($array) {
return array(‘WP_Image_Editor_GD’, );
}
add_filter(‘wp_image_editors’,’use_gd_editor’ );

4. install imagick module for PHP

How to solve this problem?

The strange thing is that in addition to this wordpress, I can't upload pictures on another wordpress on another VPS, and the same error occurs. This VPS is also running on CWP7

Thank you very much!

11
Apache / .htaccess problem
« on: September 24, 2020, 11:44:23 AM »
I install Magento on my VPS.

There are two lines of code in .htaccess
    Options +FollowSymLinks
    RewriteEngine on

Internal server error will appear when visiting the website.

If I delete "Options +FollowSymLinks", the website is working fine.

Will deleting this line of code cause security problems? Is there any other code that can replace it and ensure the website works normally?

thank you!




12
Apache / mod_cloudflare not work
« on: March 14, 2019, 08:12:59 AM »
Hi
After installing mod_cloudflare, the apache log can record the real visitor IP address, but when I want to block some spam IP in .htaccess, it doesn't seem to work. How can I solve this problem?

I use Cpanel for another website. After installing mod_cloudflare, I can block spam IP in .htaccess, so I think the problem I experienced may be related to CWP. Has anyone experienced such a problem?

13
Apache / mod_cloudflare not work
« on: July 24, 2018, 01:44:08 AM »
I install the mod_cloudflare by following command. but I found the mod_cloudflare do not work, the $_SERVER['REMOTE_ADDR'] return IP of CloudFlare.

I have checked the /usr/local/apache/conf/httpd.conf,  there is no # on the LoadModule cloudflare_module  modules/mod_cloudflare.so. so the mod_cloudflare should be loaded.

Any suggestion?


yum install libtool git -y

git clone https://github.com/cloudflare/mod_cloudflare.git && cd mod_cloudflare

/usr/local/apache/bin/apxs -a -i -c mod_cloudflare.c

systemctl restart httpd && /usr/local/apache/bin/httpd -M|grep cloudflare

14
MySQL / can not export magento database via PhpMyAdmin
« on: May 30, 2018, 02:55:57 AM »
My CWP7 work fine, but when I export Magento database via PhpMyAdmin, it has an error "a form on this page has more than 1000 fields. on submission, some of the fields might be ignored, due to PHP's max_input_var configuration".

So I change the max_input_vars to 10000 in /usr/local/php/php.ini and restart apache, Varnish and mysql server. But still can't export Magento database.

I install XAMPP on my local computer, the max_input_vars is disable, I can export Magento successful.

15
CentOS-WebPanel Bugs / Installing shared extensions error
« on: May 28, 2018, 08:07:28 AM »
I switch to PHP 7.026
I got below error, and the installing is stop

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20151012/

I run sestatus

SELinux status:                 disabled


Anyone know how to fix it

Pages: [1] 2