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

Pages: [1] 2 3
1
Same issue for me.

2
The vhost template menu is gone after this "upgrade". I lost all of the customization that I did. All vhosts were rebuilt and a really weird thing I found is that one account is supposed to use a different IP address. It shows that the correct IP is set to that account but when I check the vhost file for that account's domain, it's set to the shared IP. This sucks!

3
Thanks but I need different PHP versions per directory. Being limited to domain or subdomain will not be granular enough.

Can you specify PHP 7.2 for a domain and PHP 5.6 for a specific directory in the same domain with PHP-FMP?

4
The more I think about the authoritarian manner in which they pushed this update the more I'm leaning to going back to my previous control panel. This is BS! They need to do a better job of explaining the loss of "flexibility" if you take this "upgrade".

5
High Performance / Re: Wordpress - High-Performance instructions
« on: December 03, 2018, 12:02:27 AM »
If you switch to PHP-FMP, can you still have different PHP versions per directory, use htaccess to specify the version and have a php.ini per directory?

6
Same here.

I misunderstood the message and thought that I could install it as an option so I screwed up and installed it. Now I can't do anything because it says I need to rebuild my servers. This is BULLS!T the way they did this.

They did not elaborate on the advantages and disadvantages of PHP-FMP. After some research, it is my understanding that PHP-FMP does not let you have a different PHP version on a per directory basis, you can no longer have a seperate php.ini file per directory and you cannot specify which PHP version you want to use per directory, via htaccess files. Am I wrong? If I'm correct, then why in the world did the CWP developers say that PHP-FMP has, "flexibility and performance unlike anything else"? I'm guessing there's no way to undo this now  >:( >:( >:( >:( >:(

7
Apache / Re: Definitive answer: HTTP to HTTPS www
« on: October 13, 2018, 10:59:44 AM »
No, it's not  :) You posted an Apache redirect. I stated that I changed my NGINX config to redirect. Are you using the redirect you posted with Apache & Varnish Cache & Nginx Reverse Proxy?

I could not get any http-to-httpswww Apache redirects to work (flawlessly) behind the NGINX reverse-proxy including the one that you posted. Some would loop and some would cause server errors. I'm also behind a web server firewall appliance so maybe that has something to do with it. The NGINX redirects work flawlessly and I believe that's where the redirects should be done since incoming traffic hits NGINX before it gets to Apache.

8
Apache / Re: Definitive answer: HTTP to HTTPS www
« on: October 12, 2018, 09:53:42 PM »
Thanks for the reply. I appreciate you taking the time :-)

I think you may have overlooked that I stated I'm using the NGINX reverse-proxy. I did figure out a way to make it work though.

I edited the NGINX vhosts templates so that I now have a 301 redirect from http to https and I added an additional server instance in the NGINX ssl vhost template so I now have a domain.tld and a www.domain.tld instance. The domain.tld server has a 301 redirect to www.domain.tld.

It works great!

9
FTP / Uploaded files missing code
« on: September 19, 2018, 12:55:58 PM »
Has anyone encountered an issue where the files you upload are cut off?

If I use a standard user FTP account and upload a full website, web app or even large, single files, sometimes some of the files are missing code. It's as if you open a file in a text editor and delete the bottom 1/3 of the file.

I havn't encountered this issue if I use the root account and SFTP to upload the same files or directories.

What could be causing this issue?

10
CentOS Configuration / Add additional IP Addresses
« on: August 20, 2018, 09:43:50 PM »
I am behind a UTM appliance so I have NAT enabled. I would like some domains to have their own IP address. I have 192.168.1.10 specified for Default IP, Shared IP and NAT'ed IP.

I know how to add additional IP addresses to the server but how do I set up the config files for each domain?

I added IP address 192.168.1.11 to the server and selected it for a particular user account. I want to use this IP address for a specific domain. I am using Apache, NGINX Reverse Proxy and Varnish. Do I have to manually change the IP address in all three server's config files? What about the Varnish config files? Do I have to create/add an additional secret for the new IP? What code do I add/edit and to what Varnish config file(s)?

Also, when I use Apache Settings->Rebuild Virtual Hosts, it uses 192.168.1.10 for all domains even though I have 192.168.1.11 specified for one of the user accounts. The Rebuild Virtual Hosts tool isn't designed to pull/insert the IP address assigned to each user account???

11
CentOS 7 Problems / Re: Apache + Varnish + Nginx . WordPress SSL issues
« on: August 11, 2018, 04:47:51 PM »
I had the same issue before. It was a pain. I tried so many solutions but none work for me but this one. I hope it will workout for you.

Add this "return 301 https://$host$request_uri;" to your "nginx_proxy_vhost" like below:
Code: [Select]
root DOCROOT;
return 301 https://$host$request_uri;

location / {
location

That will redirect to https.

What if you want all traffic redirected to https://www.domain.tld?

I read that adding if statements in config files is frowned upon and that the best way is to add a separate server for domain.tld and one for www.domain.tld but I cannot get this to work.

I tried editing 'nginx_proxy_vhost_ssl' by removing YOURDOMAIN from server_name so only www.YOURDOMAIN remains and by adding another server directly below # Virtual host file starts here but it does not work.

Below is the top portion of my nginx_proxy_vhost_ssl template:
Code: [Select]
# Virtual host file starts here

# START of my edit to redirect to https://www.
server {
listen YOURSERVERIP:NGINXPORT;
server_name YOURDOMAIN;
return 301 $scheme://www.YOURDOMAIN$request_uri;
}
# !!! IMPORTANT - also had to remove YOURDOMAIN from server_name, a few lines below.
# END of my edit to redirect to https://www.

server {
listen YOURSERVERIP:NGINXPORT;
access_log /var/log/nginx/access.YOURDOMAIN.log;
error_log /var/log/nginx/error.YOURDOMAIN.log;
server_name www.YOURDOMAIN;
root DOCROOT;
...

So does this mean you can have only one server in the template?

12
Apache / Definitive answer: HTTP to HTTPS www
« on: August 10, 2018, 01:11:19 PM »
I have been struggling with this for days but can't get this to work in all situations.

What is the proper way (per domian) to direct all traffic to https://www.domain.tld/:

http://domain.tld-> https://www.domain.tld/
http://www.domain.tld-> https://www.domain.tld/
https://domain.tld-> https://www.domain.tld/

I am using Apache & Varnish Cache & Nginx Reverse Proxy and AutoSSL. I have tried rewrites and redirects in .htaccess and in vhosts configs but I have been unsuccessful.

I know you can edit the vhost templates and I also see that you can have per domain, custom config files but what is the proper code and way of doing this so the configurations are not lost when CWP rebuilds the vhosts?


Help... I'm starting to hemorrhage!

13
CentOS-WebPanel Bugs / Re: Apache Builder (compiler) not working
« on: June 11, 2018, 11:46:06 AM »
I tried your suggestion and it worked however, Nginx fails to start because of the following error:

Code: [Select]
Jun 10 22:50:33 panel.mysite.com nginx[14455]: nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/pki/tls/private/mywebsite.com.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)

There is nothing wrong with the cert or key. They both match.
I fixed this. The cert issued for the website needs to be added to the top of the bundle cert. My original bundle cert contained the intermediate and root certs, only.

However, the reason for creating this thread still needs to be fixed.

14
CentOS-WebPanel Bugs / Re: Apache Builder (compiler) not working
« on: June 11, 2018, 03:00:56 AM »
Noticed this thread so I tried it myself and got the same issues.

So I switched to apache+nginx+varnish and compiled again and it works.
Sorry to hear you have same issue but now I know it's definitely a CWP bug, as I suspected.

I tried your suggestion and it worked however, Nginx fails to start because of the following error:

Code: [Select]
Jun 10 22:50:33 panel.mysite.com nginx[14455]: nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/pki/tls/private/mywebsite.com.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)

There is nothing wrong with the cert or key. They both match.

Oh one thing I forgot to mentioned and not sure if this have any major issue.

Add the end of the log tail -f /var/log/apache-rebuild.log I did get this error.

Code: [Select]
Error:Can't add notification!
I get the same error.

Is support any better if you upgrade to Pro? There are some serious bugs and it seems Support does not moderate the forum very often.

15
CentOS-WebPanel Bugs / Re: Apache Builder (compiler) not working
« on: June 11, 2018, 01:50:32 AM »
It just does not work for me. I've tried over and over.

After I perform the rebuild and if I manually edit httpd.conf and replace all of the missing configurations and restart httpd, it still shows v.2.4.29.

Pages: [1] 2 3