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

Pages: [1]
1
CentOS-WebPanel GUI / Re: Can Not Log in Client Side
« on: January 26, 2018, 03:00:01 PM »
ofc i have space :|

2
CentOS-WebPanel GUI / Re: Can Not Log in Client Side
« on: January 19, 2018, 09:38:55 AM »
I have the same issue but it login but very very slow, in 2-5 minutes

CWP version: 0.9.8.424
CentOS Linux release 7.4.1708 - updated

On /usr/local/cwpsrv/logs/error_log the i have these errors:

Code: [Select]
2018/01/19 11:32:37 [error] 13971#0: *3187 FastCGI sent in stderr: "PHP message: PHP Warning:  session_start(): open(/tmp/session/sess_kc9ngs9hm36ug13fa80hp54697, O_RDWR) failed: Permission denied (13) in /usr/local/cwpsrv/var/services/users/login/index.php on line 0" while reading response header from upstream, client: 172.16.1.126, server: localhost, request: "POST /login/index.php?acc=validate HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/login.sock:", host: "s2.user.biz:2082", referrer: "http://s2.user.biz:2082/login/index.php?login=userlogin"
2018/01/19 11:32:37 [error] 13971#0: *3187 FastCGI sent in stderr: "PHP message: PHP Warning:  Unknown: open(/tmp/session/sess_kc9ngs9hm36ug13fa80hp54697, O_RDWR) failed: Permission denied (13) in Unknown on line 0
PHP message: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp/session) in Unknown on line 0" while reading upstream, client: 172.16.1.126, server: localhost, request: "POST /login/index.php?acc=validate HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/login.sock:", host: "s2.user.biz:2082", referrer: "http://s2.user.biz:2082/login/index.php?login=userlogin"


I tried to force into /usr/local/cwpsrv/conf.d/users.conf the session, but still i got the issue
Code: [Select]
fastcgi_param   PHP_ADMIN_VALUE "session.save_path = /tmp/session";


On the php-fpm-slowlog-cwpsrv.log i have these:

Code: [Select]
[19-Jan-2018 11:32:47]  [pool cwpsrv] pid 32150
script_filename = /usr/local/cwpsrv/var/services/user_api/v1/index.php
[0x00007f13166163d0] shell_exec() /usr/local/cwpsrv/var/services/user_api/v1/app/routes/api.php:0
[0x00007f13166142b0] {closure}() /usr/local/cwpsrv/var/services/user_api/v1/Slim/Route.php:0
[0x00007f1316614230] call_user_func_array() /usr/local/cwpsrv/var/services/user_api/v1/Slim/Route.php:0
[0x00007f1316614070] dispatch() /usr/local/cwpsrv/var/services/user_api/v1/Slim/Slim.php:0
[0x00007f1316613ca0] call() /usr/local/cwpsrv/var/services/user_api/v1/Slim/Middleware/Flash.php:0
[0x00007f1316613b40] call() /usr/local/cwpsrv/var/services/user_api/v1/Slim/Middleware/MethodOverride.php:0
[0x00007f13166138a0] call() /usr/local/cwpsrv/var/services/user_api/v1/Slim/Middleware/PrettyExceptions.php:0
[0x00007f1316613620] call() /usr/local/cwpsrv/var/services/user_api/v1/Slim/Slim.php:0
[0x00007f1316613170] run() /usr/local/cwpsrv/var/services/user_api/v1/index.php:0


3
SSL / Re: Letsencrypt new domain
« on: July 25, 2016, 06:43:55 PM »
Try this:

Code: [Select]
yum install epel-release -y
yum install python

4
SSL / Only 1 site it works with SSL rest of them redirect
« on: July 21, 2016, 06:31:26 AM »
Hello,

I have a problem with SSL, i generate SSL's with Lets Encrypt, manually and i put the vHost in /usr/local/apache/conf.d/vhosts-ssl.conf , it's look like this:

Code: [Select]
# vhost_start mysubdomain1.domain.tld
<VirtualHost MYIP:443>
 ServerName mysubdomain1.domain.tld
 ServerAdmin admin@server.tld
 
 DocumentRoot /home/user/public_html/staging/mysubdomain1/public
 SSLEngine on
 SSLCertificateFile /etc/letsencrypt/live/mysubdomain1.domain.tld/cert.pem
 SSLCertificateKeyFile /etc/letsencrypt/live/mysubdomain1.domain.tld/privkey.pem
 SSLCertificateChainFile /etc/letsencrypt/live/mysubdomain1.domain.tld/fullchain.pem
<IfModule mod_suexec.c>
    SuexecUserGroup user user
</IfModule>

<IfModule mod_suphp.c>
    suPHP_UserGroup user user
    suPHP_ConfigPath /home/user
</IfModule>

<Directory "/home/user/public_html/staging/mysubdomain1/public">
    AllowOverride All
</Directory>
</VirtualHost>
# vhost_end mysubdomain1.domain.tld

And the Vhost it's works, but when i put another vhost with mysubdomain2 and trying acces the https://mysubdomain2.domain.tld it will redirect to the mysubdomain1.domain.tld, i don't understand why it works only one SSL.

VHost mysubdomain2:

Code: [Select]
# vhost_start mysubdomain2.domain.tld
<VirtualHost MYIP:443>
 ServerName mysubdomain2.domain.tld
 ServerAdmin admin@server.tld
 
 DocumentRoot /home/user/public_html/staging/mysubdomain2/public
 SSLEngine on
 SSLCertificateFile /etc/letsencrypt/live/mysubdomain2.domain.tld/cert.pem
 SSLCertificateKeyFile /etc/letsencrypt/live/mysubdomain2.domain.tld/privkey.pem
 SSLCertificateChainFile /etc/letsencrypt/live/mysubdomain2.domain.tld/fullchain.pem
<IfModule mod_suexec.c>
    SuexecUserGroup user user
</IfModule>

<IfModule mod_suphp.c>
    suPHP_UserGroup user user
    suPHP_ConfigPath /home/user
</IfModule>

<Directory "/home/user/public_html/staging/mysubdomain2/public">
    AllowOverride All
</Directory>
</VirtualHost>
# vhost_end mysubdomain2.domain.tld


5
PHP / How i set PHPMYADMIN to use PHP 5.6 with php selector?
« on: February 17, 2016, 10:42:16 AM »
Hello,

I tried to change the PHP for /usr/local/apache/htdocs/phpMyAdmin/ adding a .htaccess with AddHandler application/x-httpd-php56 .php but it's not working.

I need use the absolute path for PHP5.6? but what i should put?

6
PHP / Re: How i install XDebug?
« on: February 17, 2016, 10:39:28 AM »
UP !

7
FTP / Re: Where are saved FTP accounts?
« on: February 17, 2016, 10:36:40 AM »
Thank you, but how I can to add a root FTP account with home / ?

I tried :
root@mydomain.com:$1$zNJCjic0$zHFjn./mMYrYHS2O49YV5/:0:0::/::::::::::::

but it's point to mydomain.com home directory : /home/mydomain.com/

Thank you.

8
PHP / How i install XDebug?
« on: February 10, 2016, 09:38:27 AM »
Hello,

How i can install XDebug with my PHP Version Switcher, i need to recompile the PHP with some extension?

Thanks.

9
CentOS-WebPanel Bugs / Re: which: no php in (/usr/bin:/bin) crontab error
« on: January 15, 2016, 03:54:26 PM »
I have the same problem, the /bin/bash not working!

10
FTP / Where are saved FTP accounts?
« on: January 14, 2016, 06:44:28 PM »
I want to edit path of FTP accounts, where are they saved? in SQL Database? where?

Thanks.

11
CentOS 6 Problems / Re: SELinux + Nginx on port 82 = FAIL
« on: November 18, 2015, 07:52:35 AM »
Hello,

I set it on permissive and i can run nginx and others, but i really want to protect my /etc/passwd for read from php, how i put php.ini on every subdomain(virtual host from nginx) ?

EDIT: Done, with: open_base_dir in php.ini at every subdomain and chmod 777 with root so the client can't modify it...
Anyway, i need another metodh.
Thanks.

12
CentOS 6 Problems / SELinux + Nginx on port 82 = FAIL
« on: November 11, 2015, 07:36:59 PM »
Hello,

First, i want to thank the staff of CWP, it's a awesome panel, and I will donate soon.

In second row i want to explain what problem I have when I activate SELinux with that configuration:

Code: [Select]
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted


and with WebServer configuration: Apache & Varnish Cache & Nginx Reverse Proxy (Varnish on port 80, Nginx on port 82 and apache on port 8181)

the problem is NGINX can't start because it's on port 82

Code: [Select]
Starting nginx: nginx: [emerg] bind() to 0.0.0.0:82 failed (13: Permission denied)
[FAILED]


Thank you very much.

Pages: [1]