Recent Posts

Pages: [1] 2 3 ... 10
CentOS 7 Problems / Re: Server upgrade migration
« Last post by josemnunez on Today at 11:57:20 AM »
Hello Use the cwp to cwp transfer button there you have everything you need
CentOS 7 Problems / Server upgrade migration
« Last post by johnny09 on Today at 06:32:32 AM »
Hi, planning to upgrade my production server with HDD, need to wipe everything. Still thinking to wait 2024 what will happen or do it this year  ???

So have a backup server with working migration.

Haven't done it before (restored migrated data), but what would be the best option to migrate all data from prod server to backup and then from backup to prod once updated? Do I need to mark all away able fields in migration file?

Any advice, solution for safe data transfer I would appreciate  8)
Apache / Re: PHP Processing in .htm & .html files
« Last post by ltarrant on March 29, 2023, 10:45:43 AM »
Thanks for the assistance.

Its now working. I don't think I changed anything accept re-compiling PHP 8.1 from the control panel.

However, I have noted that phpinfo() call from a php vs htm files shows different server API being used.

.htm returns Server API: CGI/FastCGI
.php returns Server API: FPM/FastCGI

I am using this handler in the .htaccess

AddHandler application/x-httpd-php81 .htm .html

Should I be using something else so they are both using FPM?
Apache / Re: PHP Processing in .htm & .html files
« Last post by overseer on March 29, 2023, 07:43:55 AM »
I am using php-fpm for performance reasons and to give each account its own possible choice of PHP version. In your use case, it probably doesn't matter. Except I could guide you better if you switch back to php-fpm, since that is what I use :D

It doesn't sound as if PHP 8.1 is installed properly under the CGI PHP. Can you confirm that it is present and built successfully? Does it have an ini file? Otherwise, php-fpm for 8.1 should be:
and in fact, I also have:
Apache / Re: PHP Processing in .htm & .html files
« Last post by ltarrant on March 29, 2023, 05:43:46 AM »
I was using cgi but when that failed I switched to php-fpm to see if that resolved it but it still doesn't work.

We are happy to use CGI or FPM as it's only a development server. Whatever gets it to work.
Information / Cloudflare Tunnel
« Last post by Namaste on March 28, 2023, 11:07:14 PM »
Could a cloudflare tunnel work for a home based CWP server?
Apache / Re: PHP Processing in .htm & .html files
« Last post by overseer on March 28, 2023, 09:56:08 PM »
Are you running php-fpm? Or PHP via CGI?
Apache / PHP Processing in .htm & .html files
« Last post by ltarrant on March 28, 2023, 08:54:57 PM »

I am trying to enable PHP processing in .htm & .html pages for a legacy website.

On our cPanel server we simply use addHandler in the .htaccess file. But with CWP we are getting errors that it can't be found.

AddHandler application/x-httpd-php81 .php

Error Log:
Caused by SystemException in API_Linux.cpp:444: execve() for program "/opt/alt/php81/usr/bin/php-cgi" failed: No such file or directory

Any guidance much appreciated.
FTP / Re: FTP admin 502 gateway
« Last post by overseer on March 28, 2023, 07:57:41 PM »
500 series errors are usually timeouts or connection errors between the client and server.

Really large file uploads are a bit dicey -- if the connection gets interrupted at all, you wind up with partial uploads. So if you don't have a means to resume (via an FTP client like Filezilla or whatever), you won't succeed. I've tried to upload and resume 20+GB VM images and never gotten them succeed until I changed connections to a rock solid, stable fiber link.

But if you absolutely need web uploads, you may need far larger PHP timeouts -- execution time, upload sizes, post sizes, etc.
Mod_Security / Re: Excluded rule for a domain is ignored
« Last post by overseer on March 28, 2023, 06:33:26 PM »
Are you using the OWASP ruleset? If so, I would suggest starting with the Comodo rules and tune from there.
Pages: [1] 2 3 ... 10