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

Pages: [1]
Apache / Re: PHP Processing in .htm & .html files
« 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
« 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.

Apache / PHP Processing in .htm & .html files
« 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.

Installation / Re: No Incoming Mail
« on: February 03, 2021, 04:30:12 PM »
Ok. Turns out incoming mail is working. I was using the Mail Explorer to check inboxes to see email has been delivered.

It looks like there is a lag and mail doesn't immediately appear in Mail Explorer. When I logged in via RoundCube webmail the emails had arrived.

Although the unix_listener stats-writer error still remains everytime I rebuild the mail server. Not sure if that just an issue for me or all.

Installation / No Incoming Mail
« on: February 03, 2021, 03:05:41 PM »
I just setup a new VPS on Cent OS 8 Stream and installed CWP.

I used the CWP to CWP to transfer accounts from the old VPS. Switched the Nameserver IP to point at the new VPS.

Websites are all loading fine and email from previous server. However, I have just realised new incoming emails are not being recieved.

I have reviewed the log and found the following error:

 Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission denied!

So I added the following to /etc/dovecot/dovecot.conf

service stats {
    unix_listener stats-reader {
        user = vmail
        group = vmail
        mode = 0660

    unix_listener stats-writer {
        user = vmail
        group = vmail
        mode = 0660

The error in the log is now gone but the emails are still not arriving in inboxes still. Worryingly they are not sat in queue either.

I have tried reboot and rebuilding mail server.  However, each time I rebuild mail server it loses the setting added above and I get the error mentioned about again. Add the same fix and problem remains.

Need to resolve urgently so any guidance gratefull recieved.

SSL / Re: AutoSSL Unable to select correct IP
« on: September 03, 2018, 08:06:21 AM »
OK. The IP selected on the AutoSSL screen is the one being set in the vhost-ssl file. But the DNS is pointing to the primary IP. Changed the vhosts-ssl template ip field to * wild card so it will load for any IP.

However, I would still say this is a bit of a work around and it should be showing all IP's on the AUTOSSL drop down options.

SSL / Re: AutoSSL Unable to select correct IP
« on: August 27, 2018, 05:18:02 PM »
Unfortunately something's not right. Whilst Let's Encrypt issues the cert no problem when I try to visit the website via Https it serves the default Https site. This only seems to have started happening since the main shared IP disappeared from the IP drop down list. Surely something's not right for it not to appear as an option?

SSL / AutoSSL Unable to select correct IP
« on: August 27, 2018, 06:04:40 AM »

Installed 6 autossl certs for domains without issue but now for some reason I am unable to select the main shared IP from the drop down list. My VPS has 3 ips and only the 2 additional ips are listed.

Are there limits are the number of free certs that can be issued to an ip or is something wrong.

E-Mail / Re: Rainloop Issues
« on: April 25, 2018, 03:47:10 PM »
Got to the bottom of this in the end. Its was mod_security rules blocking things.

As soon as I turned off mod_security it was fine. When I have some time I will go through and work work which rules and being triggered and disable them for the roundcube directory.

E-Mail / Rainloop Issues
« on: March 20, 2018, 12:49:12 PM »
I have loaded latest release of Rainloop on a fresh install of CWP. It ssetup to access local postfix/dovecote mail server on same box.

Everything appeared to be working fine. Incoming email loads no issue and testing connection settings for the domain in the admin area everything lights up green.

However, when I try to send or save a new email the Icons flash red and get a message saying Can't send or Save.

I have checked permissions/ownership and all seem fine and I can't see anything obvious in the logs which I have turned on. I tested turning off the Firewall but issue remains.

To be sure it wasn't a mail server issue (rather than Rainloop) I setup a remote mail server in Rainloop but I still get the same issue.

Anything obvious I'm missing as I'm new to CWP?


Pages: [1]