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]
1
CentOS 7 Problems / hacked cwp?
« on: March 30, 2022, 01:10:45 PM »
Hi,
I'm experiencing some odd behavior on my server.. I found that my domain was showing:
"Error
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?

Thanks!!!

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

I've followed this http://wiki.centos-webpanel.com/how-to-install-tls-for-ftp
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 xxx.xxx.xxx.xxx:21...
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 xxx.xxx.xxx.xxx:21...
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?

Thanks!!

3
PHP / Does anybody knows how?
« on: March 26, 2018, 11:14:38 PM »
Hi!
Need to install this php lib http://php.net/manual/en/book.stats.php
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!

Thanks!
freddo

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

Installed 3 servers with  CWP version: 0.9.8.259 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 I´m using CloudFlares CDN and a LoadBalancer.. all works fine.. but im having this issue...

Initially I´ve 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. I´ve 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, I´ve uncoment '#' at the Include/conf/extra/httpd-mpm.conf at httpd.conf and then edited the httpd-mpm.conf.. there I´ve 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 I´ve 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 I´m unable to find a way to enable it? how can I do that? I´m just trying this only on one server, the one who has ngnix .. and if it fixes the issue then I´ll update the others..

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


thanks!







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





5
FTP / sftp for a ftp users
« on: June 29, 2017, 04:05:43 PM »
Hi I´ve 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 )

I´ve 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 can´t 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 I´ve created is not been validated to use SFTP.. ??

Need those 2 ftp users access through sftp..

Thanks!





6
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...

I´ve 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?


Thanks!

7
Installation / fresh instal with MySQL
« on: March 17, 2017, 12:32:07 PM »
Hi,
I´ve 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?

Thanks.

8
MySQL / CWP INSTALL without MARIADB as default
« on: March 16, 2017, 11:35:19 PM »
Hi,
I´ve 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.

fredo

 

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

I´ve 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?

Thanks!


10
Installation / Installation over an Ec2 instance AWS
« on: May 27, 2016, 01:08:56 PM »
Hi!
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 I´ve created two users with two domains  Ex. (domain1.com and domain2.com) in each I´ve created an a.php file which only has on the first domain an echo "hello world"; the 2nd a.php (which is located at domain2.com) has only a phpinfo();) of course the 1st thing I thought.. was..ok, both domain has the same index.html but if try www.domain1.com/a.php should show me the echo, or the phpinfo if it was www.domain2.com/a.php...
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 IP’s 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 www.domain1.com/a.php it shows me the echo..
but if I try www.domain2.com/a.php instead of showing me the phpinfo();..it also shows me the echo !!! who could that be possible? is this a bug? or am I doing something wrong?

Anyway.. I´ve tried to fix it my self.. but I´ve 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!!

Freddo




Pages: [1]