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

Pages: [1]
CentOS 7 Problems / hacked cwp?
« on: March 30, 2022, 01:10:45 PM »
I'm experiencing some odd behavior on my server.. I found that my domain was showing:
Please contact your hosting provider to correct issues causing your website to be offline"

so, I started to investigate a little.. I've logged via ssh, and found out that the Vhost was changed.. the DocumentRoot shows this path:" /usr/local/apache/htdocs/suspended-page" inside there is an index.html with the message shown above..

so, I modified the vhost, restarted apache.. domain went fine..

Yet, now I noticed that when I create a new subdomain, in CWP everything goes ok, the subdomain is created, the folder is created.. but if I go with ssh and check the virtual host, then it shows that the DocumentRoot is pointing to the "/usr/local/apache/htdocs/suspended-page" when it shoud go to /home/username/public_html/subdomain name..

I've checked the CWP database root-cwp and checked the settings apache_sub_vhost_tpl registry.. it seems to be fine.. (besides in CWP when it shows the path in the subdomain panel, the path are shown ok) so I think it's not a problem with the CWP database..
But, it must be using a template to create the virtual host subdomain that it's wrong.. does anybody know where I can find it and check it?


CentOS 7 Problems / PureFTP TLS problem
« on: March 15, 2022, 07:14:28 PM »
I'm trying to use pureftp on TLS

I've followed this
I use the script provided by CWP on the scripts folder.. everything went fine.. anyway..

Using Filezilla I'm having this problem..

Status:   Connecting to
Status:   Connection established, waiting for welcome message...
Status:   Initializing TLS...
Status:   TLS connection established.
Status:   Logged in
Status:   Retrieving directory listing...
Status:   Server sent passive reply with unroutable address. Using server address instead.
Command:   MLSD
Error:   Connection timed out after 20 seconds of inactivity
Error:   Failed to retrieve directory listing
Status:   Disconnected from server
Status:   Connecting to
Status:   Connection established, waiting for welcome message...
Status:   Initializing TLS...
Status:   TLS connection established.
Status:   Logged in
Status:   Retrieving directory listing...
Status:   Server sent passive reply with unroutable address. Using server address instead.
Command:   MLSD
Error:   Connection timed out after 20 seconds of inactivity
Error:   Failed to retrieve directory listing

and it goes and goes like that..

Does anyone know how to fix this?


PHP / Does anybody knows how?
« on: March 26, 2018, 11:14:38 PM »
Need to install this php lib
how should I do it? using php selector and adding it in flags " with--stats" ?
or there is another way?

any help will be apreciated!


Apache / how to switch from mpm_event_module to mpm_prefork
« on: July 18, 2017, 04:36:26 PM »
Ive got to solve this..

Installed 3 servers with  CWP version: on Centos 6.9 2  unsing Apache 2.4.26 each server has 2 cores & 8 gb RAM (all the same)

Their main task: just webserver 1 site, mysql is installed in another server and Im using CloudFlares CDN and a LoadBalancer.. all works fine.. but im having this issue...

Initially Ive left the three servers with default configs, so each server only has apache and mpm_envent_module with default config..

Suddenly apache stop to work, the cpu usage drops near to 0% (when running normaly they are between 10-15% cpu use).. this happened on differnt times on the three servers..

so I stop apache service..(takes a minute or two to stop) and when try to start it just stands there... so I have no other choice to reboot server..and then return to normal..  all this from from ssh.. not from cwp.
Checking apache error logs. Ive spoted this "[mpm_event:error][pidxxxx]Script timeout before returning headers: index.php
[mpm_event:error]AH00484 server Reached MaxRequestsWorkers setting, Consider raising the MaxRequestsWorkes setting]

so, Ive uncoment '#' at the Include/conf/extra/httpd-mpm.conf at httpd.conf and then edited the httpd-mpm.conf.. there Ive set this values.. ThreadsPerChild 50 and MaxRequestsWorkers 800 (default was 400)

restarted apache.. hoping this might solve the issue.. but after a few hours got the same behaviour..

so, in only one of the servers Ive installed Ngnix and apache... hoping this solves it..

Installation went ok.. but now this server shows me a Bad Gateway (502) screen after 1 hour of running... and I have to reboot it..

Reading on the web mentioned that this could be a bug..of the mpm_event.. so decide to try with mpm_prefork.. but Im unable to find a way to enable it? how can I do that? Im just trying this only on one server, the one who has ngnix .. and if it fixes the issue then Ill update the others..

Can anyone assit? or give me a hint regarding my issue?


if I try to access to the webpage located at the server I just got a blank page..eventually a cloudflares showsme that my server is down...

FTP / sftp for a ftp users
« on: June 29, 2017, 04:05:43 PM »
Hi Ive installed CWP, created an User and a domain..

I can connect via FTP and SFTP using the CWP account user (I also enabled the  /usr/libexec/openssh/sftp-server at SECURITY )

Ive created 2 FTP users for the account.. (so now I have a total of three users: CWP account user, ftp_user1 and ftp_user2 )
with ftp_user1 and ftp_user2 I can connect via FTP with NO problem..

But, I cant connect via SFTP with those users.. How can I fix that?  I keep having access denied, and in the secure logs its says: unknown user ... so Im guessing that the ftp user Ive created is not been validated to use SFTP.. ??

Need those 2 ftp users access through sftp..


Installation / CWP install on CentOS 7.x without MARIA DB as default
« on: April 08, 2017, 11:49:40 PM »
Hi, I opened this topic hopping that someone could advice the many users that wanted to install CWP on Centos 6.x or CentOS 7.x
WITHOUT Maria db as default...

Ive read many topics regarding this... but eveyone who tried to uninstall maria db (as suggested for CWP staff) and then install MySQL 5.6 o 5.7 had many issues on CWP..

So, did someone achieved this? did someone uninstall Maria DB properly and sucessfully install MySQL 5.6 o 5.7?

could someone help?


Installation / fresh instal with MySQL
« on: March 17, 2017, 12:32:07 PM »
Ive installed yesterday a CWP in new server, and found out that Mariadb was installed instead of Mysql, I understand that this is the default now.. but unfortunatelly, I really need to deliver some servers with mysql..and not maria.. is there a way to install CWP with MySQL, can anyone assist?


MySQL / CWP INSTALL without MARIADB as default
« on: March 16, 2017, 11:35:19 PM »
Ive found out that new installations comes with mariadb as default... is there a way that we can do a fresh install WITHOUT MARIAdB? I'have a few costumers that are not pleased with this.. is there a step by step guide to install mysql instead of mariadb or is there a way to uninstall Mariadb and install mysql 5.6 instead?

Thanks in advance.



How to / how to create domain alias
« on: October 26, 2016, 05:10:58 PM »

Ive been using CWP for a while.. I have a simple question though..

I have a DOMAIN.COM which is the main domain..

And I have DOMAIN.COM.XX which I want to be redirected to DOMAIN.COM.

How can I do that? could someone help me out? should I create a new domain and add .htaccess? or CWP provide a tool manage site redirection? if so, where is it?


Installation / Installation over an Ec2 instance AWS
« on: May 27, 2016, 01:08:56 PM »
I finally decided to try AWS Ec2 instances.. and now Im ready to install CWP on it.. but as I made my first fresh install over a CentOs 6.7 y found out two issues..

1st AWS gave 2 ips.. a public and a private..
2nd all my domain pages are showing the default  CentOs page..
(i realized that because Ive created two users with two domains  Ex. ( and in each Ive created an a.php file which only has on the first domain an echo "hello world"; the 2nd a.php (which is located at has only a phpinfo();) of course the 1st thing I thought.. was..ok, both domain has the same index.html but if try should show me the echo, or the phpinfo if it was
unfortunatelly in my case showed a 404 error..

so, searching over here someone said that in those cases that:

"In some cases this issue is caused by the private or NAT-ed network and then you will need to use a private IP address which is configured on your server.
Amazon S3 and Microsoft Azure are know to have this kind of setup.

Fast Fix
You need to enable NAT-ed network and enter your private IP by going to:
Left-Menu > CWP-Settings > Edit Settings
You need to rebuild Virtual Hosts from CWP.

You can check the IPs configured on your server by using a shell command."

So I did that.. went to Left menu, ->CWP settings-> edit settings..
i left the shared IP (public ip) where it says Shared ip:
and in nat local ip I put the private ip that AWS gave me which is the same that CWP shows as Server IP.
y also selected the Activate NAT-ed Mod:
Saved it..
then I rebuild Apache Vhosts..
and then I was able to access the domains or so I thought..

now if I try it shows me the echo..
but if I try instead of showing me the phpinfo(); also shows me the echo !!! who could that be possible? is this a bug? or am I doing something wrong?

Anyway.. Ive tried to fix it my self.. but Ive made a mess.. so I decided to start all over again..I terminated the instance and now Im ready to start all over, but before doing that, could anybody help me to figure out if I did something wrong?

Many thanks!!


Pages: [1]