Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
ADD DOMAIN (can't find v...
Forum: Ehcp General, uncategorized yet
Last Post: RichardCrite
11-24-2024, 02:03 AM
» Replies: 29
» Views: 52,919
|
EHCP API1 error
Forum: Ehcp Development
Last Post: robind99
04-14-2023, 10:14 PM
» Replies: 4
» Views: 3
|
EHCP API Setup subdomain
Forum: Ehcp Development
Last Post: ehcpdeveloper
04-14-2023, 10:14 PM
» Replies: 2
» Views: 67
|
EHCP auto startup nginx i...
Forum: Ehcp Development
Last Post: ehcpdeveloper
04-14-2023, 10:14 PM
» Replies: 2
» Views: 0
|
VSFTPD
Forum: Ehcp Development
Last Post: ehcpdeveloper
04-14-2023, 10:14 PM
» Replies: 3
» Views: 5
|
PHP failed copy
Forum: Ehcp Development
Last Post: ehcpdeveloper
04-14-2023, 10:14 PM
» Replies: 2
» Views: 3
|
install echp + node js
Forum: Ehcp Development
Last Post: ehcpdeveloper
04-14-2023, 10:14 PM
» Replies: 2
» Views: 0
|
About Beta Software, Ehcp...
Forum: Ehcp Development
Last Post: ehcpdeveloper
04-14-2023, 10:14 PM
» Replies: 1
» Views: 1
|
La marque de l'enseigne C...
Forum: Ehcp Development
Last Post: shanmao
04-14-2023, 10:14 PM
» Replies: 1
» Views: 0
|
On portera une attention ...
Forum: Ehcp Development
Last Post: shanmao
04-14-2023, 10:14 PM
» Replies: 1
» Views: 1
|
|
|
Q & A : enabling ssl |
Posted by: ehcpdeveloper - 04-14-2023, 10:12 PM - Forum: Ehcp HowTos
- Replies (1)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
xxxx wrote:
Hello,
I have installed EHCP on a server and the VHOSTS doesn't not seem to work. I have Tried various things troughtout the day, nothing worked. here is all the info:
Before I set up my domain as a DNS server, I had to change the sites-available/default file to handle SSL everything works on that level works. I had my domian (xxxxx.com) point to my IP address this morning (xxxxx.com was set up as a DNS server), Everything works, the domain name is pointing to the index in var/www/ (I changed the original for my customer's sakes).
But for some reason, the virtual host redirect is not working. In one of the post I saw something about a index.php file at the var/www/ level. I do not have that file, could that be the problem.
I checked and double checked all the various config file for EHCP while another guy was checking Appache's config. We did not find anything.
any direction(s) to dig you could give me ?
----------------------
Normally, ehcp works with virtual hosts after installed on a clean ubuntu system.
if you changed apachetemplate file, for example, or some other configs (apache or ehcp apache templates) that may broke it. because in apache configs and ehcp's apache templates, you need to keep virtual host sections.
so, normally, to do ssl hosting do like this:
install ehcp on a clean ubuntu.
add/setup your domain in ehcp.
ehcp gui->options-> fix apache config with ssl (this makes necesary apache changes.)
if you need to change apache config for a specific domain, do not edit apache config files,
just ehcp gui->choose domain->Edit apache template for this domain
and make apache changes (such as /var/www ) here.
if you are stil confused, tell me exactly what you want to do, domain per domain, i will tell you.
----------------------
Thanks for the quick reply,
the fix appache config function did the trick. new site will be online this afternoon
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
|
|
|
Ruby on Rails and apache mod passenger |
Posted by: gineta - 04-14-2023, 10:12 PM - Forum: Ehcp HowTos
- Replies (3)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
Hi I already install Ruby and Rails and mod passenger with apache2
Apache/2.2.14 (Ubuntu) DAV/2 SVN/1.6.6 Phusion_Passenger/2.2.14 PHP/5.2.10-2ubuntu6 with Suhosin-Patch
The problem I have is in EHCP
When I try to load Redmine track
I get the error Cannot start Ruby on Rails application
The directory "/var/www/vhosts/emasterman/MY_DOMAIN.org" does not appear to be a valid Ruby on Rails application root.
I modify apache template and add with the lines
......
UseCanonicalName Off
DocumentRoot {homedir}/httpdocs
ScriptAlias /cgi-bin/ {homedir}/httpdocs/cgi-bin/
RailsEnv development
RailsBaseURI /
and also in
......
<Directory {homedir}>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
But I not see positive changes
If I change for RailsBaseURI /httpdocs
I see the list of all my files but the aplication is not working.
Where is the error or how I make work with ehcp
Thanks in advance
Restored from old drupal forum, for user uid:3253 username:gineta
You may reset your password to access your new account here.
|
|
|
how to set user account? |
Posted by: Artemis1 - 04-14-2023, 10:12 PM - Forum: Ehcp HowTos
- Replies (2)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
hi, any professional know, does ehcp permits regular user to use ehcp in firefox? if so, how to set the user account, which is limited to use admin fuction when this user login into ehcp through a remote computer in the firefox? and how many ehcp users can be permitted to use ehcp in one minute if the Ubuntu server9.10 is strong? and is there a maxmum number of users account in ehcp?
Appreciate your help!
Restored from old drupal forum, for user uid:3196 username:Artemis1
You may reset your password to access your new account here.
|
|
|
SmartFTP setting |
Posted by: topdog - 04-14-2023, 10:12 PM - Forum: Ehcp HowTos
- Replies (2)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
Which settings do I need to enter to access my server via SmartFTP.
I tried the following settings but it won't connect me with my server.
By Host I tried: ftp.example.com port 21 along with my username and password. Also tried my ip-address instead of ftp.example.com
Any help would be appreciated
Restored from old drupal forum, for user uid:3228 username:topdog
You may reset your password to access your new account here.
|
|
|
Q & A: load balancer |
Posted by: ehcpdeveloper - 04-14-2023, 10:12 PM - Forum: Ehcp HowTos
- Replies (1)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
(02:58:14) guest: hello sir,,
(02:58:42) guest: do you know about load balancer?
(02:59:14) guest: can ehcp do that?
---
(09:53:49) guest: hii sir,,,
(09:53:43) guest: do you know about load balancer?
(09:57:00) guest: assalamu'alaikum,,
(10:21:01) bv-yahoo: little
(10:21:34) guest: i have tried many article in google,,,
(10:21:45) guest: but i have stack with that,,,
(10:21:58) bv-yahoo: it is something advanced.
(10:22:18) bv-yahoo: mawzuun sakiil
(10:23:03) guest: can u give me some advice for load balancing?
(10:23:29) bv-yahoo: it depends heavily, what you want todo,
(10:23:33) bv-yahoo: what you want to balance,
(10:23:35) bv-yahoo: a web server,
(10:23:37) bv-yahoo: a dns *
(10:23:40) bv-yahoo: what ?
(10:23:59) guest: web server,,
(10:24:24) bv-yahoo: you have many visitors, and you want to balance
them in 2 or more server ?
(10:24:40) guest: yes,,
(10:25:12) bv-yahoo: this is called load balanced web server
(10:25:23) bv-yahoo: .
(10:25:35) bv-yahoo: you need a mysql server too in background of web servers.
(10:25:49) bv-yahoo: s1: server 1: webserver 1
(10:25:53) bv-yahoo: s2: webserv2
(10:25:58) bv-yahoo: s3: webserv3
(10:26:08) bv-yahoo: s4: mysql serv (single)
(10:26:20) bv-yahoo: s1,s2,s3 should have different ip
(10:26:33) bv-yahoo: s1-3 is connected to s4,
(10:26:41) bv-yahoo: s4 is used for all database connections
(10:26:48) bv-yahoo: for all websites in s1,2,3
(10:27:02) bv-yahoo: a website is in all of s1-3
(10:27:19) bv-yahoo: it is better that s1-3 sees/connected to same
storage system, hdd
(10:27:27) bv-yahoo: so, they all see same files.
(10:27:32) bv-yahoo: in this way,
(10:27:54) bv-yahoo: whenever a user comes to any of s1,s2,s3, it can
see web content
(10:28:03) bv-yahoo: dns of domains are like
(10:28:20) bv-yahoo: www.xxx.com -> ip of s1, ip of s2, s3, i mean 3 A records
(10:28:22) bv-yahoo: in this way,
(10:28:28) bv-yahoo: one user goes to S1,
(10:28:31) bv-yahoo: other s2
(10:28:33) bv-yahoo: other to s3
(10:28:38) bv-yahoo: so, this is load balanced
(10:28:53) bv-yahoo: understand ?
(10:29:31) guest: yess,,
(10:30:08) bv-yahoo: there are some hardware load balancers too.
(10:30:26) guest: whats that?
(10:30:39) bv-yahoo: it is a device, like a switch
(10:30:58) bv-yahoo: which does load balancing, between 3 servers.
still 2 or more servers is needed.
(10:31:04) bv-yahoo: but load balancing is done by switch, not dns
(10:31:39) bv-yahoo: do you have a budget for this ? i can try to
setup a load balanced system for you , if you have some budget
(10:37:28) guest:
if i haven't the second server,,can i perform my server with high performance?
my server is
intel xeon,,
RAM 8Gb,,
harddisk 500Gb,,
(10:37:51) bv-yahoo: how many visitors do you have ?
(10:37:55) bv-yahoo: per day
(10:38:00) bv-yahoo: how many domains ?
(10:38:31) guest: 2 domains,,,
100 per day,,
if user online 100,,
thats server is very slow,,
(10:48:21) bv-yahoo: 100 user per day is very low, for a normal webserver.
(10:48:26) bv-yahoo: I mean,
(10:48:30) bv-yahoo: you dont need a load balanced system
(10:48:37) bv-yahoo: you only need to fine tune your server
(10:49:07) bv-yahoo: my server has 60 domains
(10:49:20) bv-yahoo: 2000 users/day
(10:49:26) bv-yahoo: at least
(10:49:39) guest: wow,,
(10:49:56) guest: thats pretty,,,
(10:50:08) bv-yahoo: you use ehcp ?
(10:50:18) guest: yes,,
(10:50:39) guest: iamvery like it,,
(10:50:48) guest: because easy to install,,
(10:50:53) bv-yahoo: you have 100 users per day ?
(10:51:18) guest: yes 50-100 users,,
(10:51:58) bv-yahoo: no,
(10:51:59) bv-yahoo: http://www.xxxxxxxx.com/webstats/
(10:52:01) bv-yahoo: look at this
(10:52:08) bv-yahoo: you have 1200 users per day approx
(10:52:57) bv-yahoo: but something is wrong with your server.
(10:53:26) guest: oohh,,,i dont know that,,,
whats wrong sir?
(10:53:29) bv-yahoo: quite slow, and webstats is missing.
(10:53:45) bv-yahoo: dont know what is wrong yet, but something is
wrong. i mean slow..
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
|
|
|
How to configure MX settings for using Google Apps email service |
Posted by: monsterk - 04-14-2023, 10:12 PM - Forum: Ehcp HowTos
- Replies (11)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
Hey Guys,
I am trying to configure MX settings for my domain and here are the settings that google asked to change on my server. While this has been easy to do till now on Plesk, I have not managed to get it working after several attempts to update the Apache and DNS settings.
ASPMX.L.GOOGLE.COM. 10
ALT1.ASPMX.L.GOOGLE.COM. 20
ALT2.ASPMX.L.GOOGLE.COM. 20
ASPMX2.GOOGLEMAIL.COM. 30
ASPMX3.GOOGLEMAIL.COM. 30
ASPMX4.GOOGLEMAIL.COM. 30
ASPMX5.GOOGLEMAIL.COM. 30
Any thoughts on where I should add these settings and whether to add them as it is or some more information will be needed.
cheers,
Asif
Restored from old drupal forum, for user uid:3176 username:monsterk
You may reset your password to access your new account here.
|
|
|
Q & A : template howto |
Posted by: ehcpdeveloper - 04-14-2023, 10:12 PM - Forum: Ehcp HowTos
- Replies (1)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
Question:
Hello
Can you give me some information on how the templates work? There are currently lots of files in the individual template directories and i'm not sure what is needed and what isn't.
Is 'template_en' the global template, then 'homepage_*' are the main part inside the template? or what?
I'm designing a new template.
Thanks for any info.
Answer:
http://www.ehcp.net/?q=node/29
http://www.ehcp.net/?q=node/250
these links give some info.
here is in summary:
in templates dir, there are many directories. these are different templates.
one template is active at a moment.
lets take templates/xp5-z7/
inside is language dirs. usually en, sometime both en, tr or other.
related dir is used according to active language.
lets come into templates/xp5-z7/en/ dir
template_en.html is template file for domain admin/reseller/server admin.
it is the page layout of ehcp, left menu, etc.
the inner part (tag: {ickisim}) changes according to logedin user, choosen domain etc.
if you un-select any domain, or if your are at home,
homepage_serveradmin_en.html file is displayed to ehcp users (admin, domain admin, reseller, not email users.)
the shown (active) html file is shown near bottom of ehcp, each time you navigate. just search for .html in page source in ehcp gui. it is shown for you, template designers, to know what file is used.
for ex:
"Homepage Template used to generate this page: homepage_serveradmin_en.html"
if you select a domain,
homepage_domainadmin_forreseller_en.html
is used to show the page. (the inside part of page)
so,
if you need to change general appearance of a template,
modify template_* files
to modify the inner part of pages, modify other files.
keep in mind that,
in html files, image/js paths should be relative to top ehcp directory, not templates/en/xp5 for ex.
because, that html file is displayed by php scripts that are in ehcp dir.
to build a new template, just copy one of existing templates to a new name and start editing.
do not forget to keep urls in templates, such as href="?op=someoperation"
not all templtes are up to date.
the most up to date template is xp5-z7 for ver 0.29.12
and
ubuntu0.4.1 for version 0.29.13, which can be downloaded from www.ehcp.net/ehcp_yeni.tgz (as of 2010-04-06, Y-m-d)
maybe somebody prepares a good howto about this.
if you have time, you may do this.
unfortunately, I had no time for this up to now.
see you,
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
|
|
|
Q & A : ehcp coding, writing a new function |
Posted by: ehcpdeveloper - 04-14-2023, 10:12 PM - Forum: Ehcp HowTos
- Replies (2)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
Question:
------------------------------------------------------------------------------------
Hello, Just bringing up this ticket again as it's a similar issue, i'm creating a new function to run an add on i'm creating, like the serverstatus, and i've got this code:
----------
<code>case 'runchkrootkit' : return $this->runChkRootKit();break;
<code>function runChkRootKit(){
$this->requireAdmin();
$chkrootkitrun=$this->executeProg3("chkrootkit-0.49;./chkrootkit");
$this->output.=$chkrootkitrun;
return true;
}
-------------
The first line is just below the 'serverstatus' op in the runop function.
But when I go to:
<code>myip/index.php?op=$runchkrootkit
I get this error:
Some Error Occured.
(runop) internal ehcp error: Undefined operation: $runchkrootkit
This feature may not be complete
Any idea?
Thanks.
------------------------------------------------------------------------------------
Answer:
------------------------------------------------------------------------------------
you are on right way, and you almost understand the coding structure of ehcp. this is good.
here is the solution:
first,
in url:
<code>http://myip/index.php?op=runchkrootkit
that is, do not use dollar sign after op=
second,
remember that, any operations that you call with url is done directly in server, apache, with un-privileged (non-root) user of apache2 or www-data.
So, these operations are limited. you can do mysql operations, or simple php things. But you cannot do any server/root related things.
To do server/root related things, (that require root privileges) ehcp has a simple mechanism:
1-ehcp gui only takes the command that is going to be done, records(inserts) the command to mysql operations table, Function $this->addDaemonOp( does this .
2-ehcp backend daemon listens for any incoming commands by checking the mysql operations table in regular intervals, then, does those operations with root privileges, since ehcp daemon runs with root user. So, take care to what you code for operations that are done in daemon, root mode. this is an important security consideration.
so, to accomplish what you want, you need:
<code>case 'dorunchkrootkit' : $this->requireAdmin(); return $this->addDaemonOp('runchkrootkit','','','','run chkrootkit-this is a comment');break; # this will run in ehcp gui, and will instruct ehcp daemon to runchkrootkit
case 'runchkrootkit' : return $this->runChkRootKit();break; # this will run in ehcp daemon , also note that, ehcp gui and daemon uses same classapp.php file. ![Smile Smile](https://ehcp.10tl.net/images/smilies/smile.png)
<code>function runChkRootKit(){
#$this->requireAdmin(); # in fact, not needed, since this is already daemon, and root.
$this->requireCommandLine(__FUNCTION__);
$chkrootkitrun=$this->executeProg3("cd /somepath/chkrootkit-0.49; ./chkrootkit");
$this->output.=$chkrootkitrun; # no output can be sent to gui from daemon... we need a new mechanism for this. but you can email yourself, using $this->miscconfig['adminemail']
return true;
}
third,
i am not sure that multiple commands can run in function executeProg3, I suggest to use a single command, maybe a small bash script that does what you want.
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
|
|
|
email problem: status=deferred (maildir delivery failed: create maildir file /home/vmail/ |
Posted by: ehcpdeveloper - 04-14-2023, 10:12 PM - Forum: Ehcp HowTos
- Replies (1)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
try first, ehcp upgrade to latest version,
then,
open logs,
tail -f /var/log/ehcp.log
tail -f /var/log/syslog
then,
ehcp gui->options -> fix mail config
if problem persists,
manually:
<code>groupdel vmail
userdel vmail
echo "----------- Other user/group with uid/gid of 5000, you need to delete them, if any -----------";
grep 5000 /etc/passwd
grep 5000 /etc/group
echo "----------- ----------- ----------- ----------- ----------- ----------- ----------- ----------";
groupadd -g 5000 vmail
useradd -g vmail -u 5000 vmail -d /home/vmail -m
chown -Rf vmail /home/vmail
adduser postfix sasl
if still persists,
make sure you installed onto a clean ubuntu system,
check if /etc/passwd contains other user with uid 5000, group with gid 5000
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
|
|
|
|