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

2
Apache / how to switch from mpm_event_module to mpm_prefork
« on: July 18, 2017, 04:36:26 PM »
Hi,
Ive 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 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?


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





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

Thanks!





4
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?


Thanks!

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

Thanks.

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

fredo

 

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

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?

Thanks!


8
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 Ive created two users with two domains  Ex. (domain1.com and domain2.com) 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 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 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 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.. 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!!

Freddo




Pages: [1]