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

Pages: [1]
1
CentOS 6 Problems / Re: Change php.ini for specific domains.
« on: January 19, 2017, 04:03:34 AM »
I fixed the problem adding subdomain to /public_html_subdomain/ folder
But I am not sure is that correct to put subdomains files into /public_html_subdomain/ instead of standard path which is /puclic_html/subdomain/.
Thank you for any clarification.

2
CentOS 6 Problems / Change php.ini for specific domains.
« on: January 09, 2017, 06:45:43 PM »
Hello.
I am trying to figure out how to use unique php.ini for specific domains.

For now I have a website which placed here:

Quote
/home/domain1/public_html

Also I have a subdomain placed here

Quote
/home/domain1/public_html/subdomain/

If I add php.ini to

Code: [Select]
/home/domain1/public_html/
The system using it only for this folder but not to all subfolders.
So I fix that adding this string into my .htaccess file

Code: [Select]
suPHP_ConfigPath /home/domain1/public_html
But after that my subdomain stop working and I could see a message like this

Quote
/home/domain1/public_html/.htaccess: suPHP_ConfigPath not allowed here, referer: http://subdomain.domain1.com/

Could you explain for me how to use one php.ini to my domain1 recursively and let my subdomain work properly?..

3
Installation / Re: Spam filter and Mark as span button in Round Cube
« on: December 08, 2016, 03:28:29 AM »
I think I found a solution.
You should add mark_as_junk plugin in your roundcube configuration. Plugin already installed, you have just to add it in the roundcube config.

4
E-Mail / Multiple domains and postfix configuration
« on: December 08, 2016, 03:24:55 AM »
Hello. I read manual from here:
http://forum.centos-webpanel.com/installation/(tutorial)-how-to-configure-your-server/

Could you explain for me should I made this modifications if I have multiple domains in my CWP:
Quote
Go to your webserver directory /etc/postfix/ and edit the file: main.cf
> Edit the line:
   mydestination = $myhostname, localhost.$mydomain, localhost
> To:
   mydestination = localhost.$mydomain, localhost
> Add to the end of the file:
   spamass_destination_recipient_limit = 1
   dovecot_destination_recipient_limit = 1
I am a bit confused... May be this information already got out of date and in the latest CWP version it was fixed?..
Please explain for me. I don't want to get troubles with email delivery on my domains that I want to install.

5
I am trying to compile php 5.6.14.
After finishing compilation the last line in

Code: [Select]
tail -f /var/log/php-selector-rebuild.log
is

Code: [Select]
/usr/local/src/php-build.sh: line 16: /scripts/add_alert: Permission denied

What does it mean?..

6
Installation / Spam filter and Mark as span button in Round Cube
« on: November 23, 2016, 06:24:21 AM »
I am trying to setup my Round Cube. Could you help me to setup spam folder and to add a button mark as spam?..
I couldn't find any documentation about it related to CWP.
Thank you.

7
Installation / Re: CWP migration from one VPS to an other.
« on: November 23, 2016, 06:22:06 AM »
Thank you.

8
Hello.
I am moving my VPN from one server to another.
In the new server I've made a clean CWP installation.
May I just copy my certificates from old location to the new one:

/etc/pki/tls/certs/yourdomain.tld.csr
/etc/pki/tls/private/yourdomain.tld.key
/etc/pki/tls/certs/yourdomain.tld.crt
/etc/pki/tls/certs/yourdomain.tld.bundle
a symbolic link /etc/pki/tls/certs/yourdomain.tld.cert pointing on yourdomai.tld.crt

or I have to generate and reissue my certificates again?..

Thank you.

9
Installation / Re: CWP migration from one VPS to an other.
« on: November 21, 2016, 03:47:41 PM »
Oh I see. Probably someone knows what kind of configuration files I have to change?..
Or better to reinstall everything?..

10
Installation / CWP migration from one VPS to an other.
« on: November 21, 2016, 03:11:52 AM »
Hello.
I have a OVZ VPS and I want to migrate my CWP panel with all of the data to the KVM VPS. What is the best and fastest method to do so. I actually do now want to install everything from zero and move all of my backups. Is that the way to move everything faster?.. I actually need to copy everything from one VPS to the other.
Thank you.

11
CentOS 6 Problems / Re: Apache & Nginx Reverse Proxy problem with cakephp
« on: October 22, 2016, 09:44:13 PM »
I fixed the problem changing my /etc/nginx/conf.d/mywebsite.conf

this stroke
Code: [Select]
root /home/xxxxxx/public_html;to that one
Code: [Select]
root /home/xxxxxx/public_html/webroot;
and also I add this stroke:

Code: [Select]
location ~* \.(css|js|ico)$ {
                    try_files $uri =404;
            }
It works but why nginx couldn't use just .htaccess ?.. Why also I should modificate my /ndinx/conf.d/ files?..

12
CentOS 6 Problems / Apache & Nginx Reverse Proxy problem with cakephp
« on: October 22, 2016, 09:00:52 PM »
Hello.
I just install Nginx using CWP option Apache & Nginx Reverse Proxy.
Trying to install Mighty URL script (short url service), but somehow all of the paths to local *.css *.js files redirects to the home page. As I see Mighty URL script using cakephp library all of the css js files placed inside webroot folder. Looks like ngnix don't understand rewrite.
Part of my virtual hosts using SSL but Mightry URL shortener project working without SSL.
Please help me.

13
I figured it out.

You have to disable apache listening on 443 in /usr/local/apache/conf.d/vhosts-ssl.conf (for example by removing it's content. BACKUP THIS FILE FIRST).

Then you have to add in the NGINX configuration file something like:

Code: [Select]
listen YOUR_IP:443 ssl;
ssl_certificate path_to/cert.pem;
ssl_certificate_key path_to/privkey.pem;
I install nginx using option
Apache & Nginx Reverse Proxy (Nginx on port 80 and apache on port 8181)
After installation I've got this status:
tcp        0      0 0.0.0.0:443                 0.0.0.0:*                   LISTEN      25120/httpd         
tcp        0      0 xxx.xxx.194.99:80           0.0.0.0:*                   LISTEN      25140/nginx         
tcp        0      0 0.0.0.0:8181                0.0.0.0:*                   LISTEN      25120/httpd
What I have to change in my configuration files to make apache using nginx?..
I have 2 websites with different SSL certificates.
Sorry I am new into CWP.

14
SSL / Re: Varnish+NginX+APache+Letsencrypt proposal
« on: August 08, 2016, 11:14:56 PM »
Yep, this is really needed as many sites are moving to https.

With https, current nginx/Varnish setup is useless unless you tweak configuration files manually. and you cant opcache,apc with CWP.

Hope this feature comes to CWP soon.
I am also hoping for that feature. I have some projects which use https and for now I do not know any working solution how to use Varnish + apache. Hope that developers will fix this problem very soon.

Pages: [1]