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

Pages: [1] 2 3 ... 12
1
General / Re: Update Log
« on: December 01, 2018, 06:34:59 pm »
Minor update released.

2
Technical Help / Re: Configure my own Nameserver
« on: November 19, 2018, 08:51:28 pm »
Ok, so add "ns1.spotiads.net" and "ns2.spotiads.net" as domains to your panel.  Configure the site for one of the domains, and then redirect the other to it (all configurable in the panel).

3
Technical Help / Re: Configure my own Nameserver
« on: November 16, 2018, 05:40:12 pm »
Looks fine to me.  As long as 18.219.141.113 is your EHCP server, and you've added "spotiads.net" as a domain in the panel on 18.219.141.113, other domains should be able to use ns1.spotiads.net and ns2.spotiads.net as name servers.

Is this the way you've set it up?  It's not working for you?  What exactly are you trying to do?

4
General / Re: Update Log
« on: September 22, 2018, 05:05:29 pm »
Minor update released.

5
Technical Help / Re: PHP in html file config please
« on: September 10, 2018, 04:23:59 pm »
Awesome, glad it worked.  Let me know if you run into any issues as a result of updating to the latest dev version.  These features will be released to the stable build soon.

You can always change the order of which page should load by default when a specific page hasn't been requested (usually the index file).  That also appears in the subdomain or domain templates.  You can re-order which index page loads by default and has a higher priority than the others (index.html vs index.php).  Just search for index.html in the custom template, and you should see the lines I'm talking about.

Thanks for testing it out.

6
Technical Help / Re: PHP in html file config please
« on: September 10, 2018, 12:58:53 pm »
Actually, could you please try updating your panel to the latest dev SVN version (instructions here http://ehcpforce.tk/download.php#svn-version) and use the new custom subdomain web server template functionality?

After you've updated your panel, logout and login as admin, then select the domain you want to add a subdomain to (in your case "mydomain.com"), click on "Add Subdomain".  Add the "devel" subdomain.  Go back to the main domain management screen for "mydomain.com".  Click on "List Subdomains".  Click on the "Edit Template" icon for the "devel" subdomain. 

Replace the ProxyPassMatch lines with the following:

Code: [Select]
ProxyPassMatch ^(.*\.(php|html))$ fcgi://127.0.0.1:9000{homedir}/$1

Click on the "Save Template" button.

Now, make sure you follow the instructions I posted above to get php-fpm to process .html files.  It should work this way now too, and we now have custom subdomain template functionality (assuming I coded the functionality correctly, which from my initial testing, I hopefully did).

7
Technical Help / Re: PHP in html file config please
« on: September 09, 2018, 11:35:13 pm »
Should be doable.  However, EHCP Force Edition doesn't yet support individual custom subdomain apache or nginx templates (other than the global subdomain template which can be changed here index.php?op=manageglobalwebtemplates)

Thus, for your scenario, I recommend adding the subdomain as a new domain under your account.  You would configure both "mydomain.com" and "devel.mydomain.com" as separate domains (do NOT create "devel.mydomain.com" as a subdomain in the panel under the "mydomain.com" domain).  Using this configuration, "devel.mydomain.com" is still technically a subdomain, but it is setup in the panel as a domain.  This will allow you to edit the custom apache2 template just for "devel.mydomain.com".  Log in as the admin user for the EHCP panel.  Select the domain you want to use a custom apache2 template for (in your case "devel.mydomain.com"), and then click on the "Edit apache2 Template" link.  Find this line (might be two or more instances if you're using SSL):

Code: [Select]
ProxyPassMatch ^(.*\.php)$ fcgi://127.0.0.1:9000{homedir}/httpdocs/$1

Change it to:

Code: [Select]
ProxyPassMatch ^(.*\.(php|html))$ fcgi://127.0.0.1:9000{homedir}/httpdocs/$1

Then, we need to allow php-fpm to process .html extensions (https://www.electrictoolbox.com/nginx-php-html-access-denied/).  So in the "/etc/php/7.0/fpm/pool.d/www.conf" file (differs depending on which version of Ubuntu you're on... could be in /etc/php5/fpm/pool.d/www.conf or /etc/php/7.x/fpm/pool.d/www.conf), add this line to the bottom:

Code: [Select]
security.limit_extensions = .php .html

Restart the php-fpm service (command differs depending on Ubuntu version):

Code: [Select]
sudo service php7.0-fpm restart

That should be it.  You never want to edit the EHCP template conf files directly (found in /var/www/new/ehcp), as any changes you make will be overwritten when the panel next syncs.  You want to use the custom template functionality in the panel to make sure your changes persist.  I hope this helps.  Please let me know.   ;D

8
General / Re: Update Log
« on: August 08, 2018, 11:41:03 am »
Minor update released.

9
Yeah, well there's no magic wand to convert old PHP scripts to be compatible with PHP7.  However, you can manually convert them which is what I do with EHCP software.  Usually, I just change software so that it is compatible with both versions to avoid any problems. 

It does suck, but the blame goes to PHP (for their stupid ways of deprecating code and not converting these deprecated functions over to the new format), and that's all you can do.

You should run one server with several virtual machines.  Then, it's no problem to run many servers on one server.

10
Technical Help / Re: Remote Backup Question
« on: August 08, 2018, 11:30:20 am »
It looks like your FTP server doesn't like the filename for some reason.  Looks like you'll need to be tweaking its options, but I am not familiar with Qnap, so I can't help you there.

11
General / Re: Update Log
« on: July 25, 2018, 05:22:56 pm »
Small update released.

12
General / Re: Update Log
« on: July 15, 2018, 04:36:20 pm »
Update released.

13
Technical Help / Re: PHPMyAdmin - Can't Login As root User
« on: July 05, 2018, 09:21:44 pm »
Fix has been implemented.

In addition to the commands in the first post, you need to run these as well if you're having problems:

Code: [Select]
sudo -i
sed -i "s#^include_once 'rootip_whitelist_functions.php';#include_once '/usr/share/phpmyadmin/rootip_whitelist_functions.php';#g" "/etc/phpmyadmin/config.inc.php"
sed -i "s#^include 'rootip_whitelist.php';#include '/usr/share/phpmyadmin/rootip_whitelist.php';#g" "/etc/phpmyadmin/config.inc.php"

https://github.com/earnolmartin/EHCP-Force-Edition/commit/7509e193cc16dbe9757739d16ec1465009230dd8

To have the fix implemented automatically via an update, follow these instructions:

http://ehcpforce.tk/download.php#svn-version under the "Update to Latest Code (Developer Version)"

14
Technical Help / Re: PHPMyAdmin - Can't Login As root User
« on: July 01, 2018, 11:32:17 pm »
I'll see if I can reproduce this issue on Ubuntu 18.04. 

15
General / Re: Thanks for EHCP Force
« on: July 01, 2018, 11:30:55 pm »
Thank you for supporting and using EHCP Force Edition.   ;D

Pages: [1] 2 3 ... 12