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

Pages: [1]
1
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


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

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

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

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