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,836
|
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
|
|
|
New IP on server |
Posted by: npapazoglou - 04-14-2023, 10:13 PM - Forum: Ehcp HowTos
- Replies (7)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
Hello,
I've added a new IP on the server. Till now I had only one IP that is the server IP and the main site use this IP also.
Now I need to asign the new IP to the main site and after this to apply a purchased SSL to this site. The server will still use the old IP.
I did this: EHCP->Options->List/Add Servers/ IP's and I've added the new IP on the server. I've added the new IP in the networking also.
Now I need some help to use the new IP with the new site and to apply a purchased SSL with this site also.
I appreciate any help or tutorial links (easy steps please)..
Restored from old drupal forum, for user uid:4291 username:npapazoglou
You may reset your password to access your new account here.
|
|
|
How to list domains in alphabetical order? |
Posted by: torreschrist - 04-14-2023, 10:13 PM - Forum: Ehcp HowTos
- Replies (5)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
I would like to have the option to list my domains in alphabetical order. What files have to be modified to accomplish that?
EHCP 0.30.9.
Ubuntu 12.04.
Restored from old drupal forum, for user uid:6843 username:torreschrist
You may reset your password to access your new account here.
|
|
|
support rails, django , ruby help |
Posted by: asqard - 04-14-2023, 10:13 PM - Forum: Ehcp HowTos
- Replies (1)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
Hi, I have a question for a long time no use EHCP but I miss the space of two things as I write web applications in Rails and Django would like to add the possibility of their use can I say dear users in how to do it and that is the ability to enable support rails, ruby, django
my server is a system of ubuntu + apache
Restored from old drupal forum, for user uid:7060 username:asqard
You may reset your password to access your new account here.
|
|
|
Roundcube to my default webmail ? |
Posted by: forcevision - 04-14-2023, 10:13 PM - Forum: Ehcp HowTos
- Replies (1)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
Hello.
How do I get Roundcube to my defualt webmail ? Then I type mail.mydomain.com I whant roundcube not squirrelmail to start.
Thanks
Restored from old drupal forum, for user uid:2253 username:forcevision
You may reset your password to access your new account here.
|
|
|
How to Fix PHP CHMOD and Other File Operations (Creating Files) |
Posted by: own3mall - 04-14-2023, 10:13 PM - Forum: Ehcp HowTos
- Replies (2)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
PHP chmod and creating new files do not work correctly with EHCP. This is because files uploaded via FTP are owned by the vsftpd user. The Apache user is www-data. Since PHP runs as a module of Apache, the owner should be set to www-data, or PHP won't be able to modify or create new files.
The easy way to fix this:
<code>
sudo chown -R www-data:www-data /var/www/vhosts
</code>
There's a better way to handle changing the owner in realtime as new files and folders are uploaded and created through FTP by using inotify. This little program proactively monitors and immediately sets the owner on all modified (written to) or created (new files or directories) files by using inotifytools. To install inotifytools, run this command:
<code>
sudo apt-get install inotifytools
</code>
Next, you'll want to increase the number of watch counts (max number of file monitoring handles) by running this command:
<code>
sudo echo 50000 > /proc/sys/fs/inotify/max_user_watches
</code>
Now, we need to create the real-time monitoring script using the inotifytools API.
<code>
sudo touch /root/monitor_vhosts.sh
sudo nano /root/monitor_vhosts.sh
</code>
Paste and save the following into the file:
<code>
#!/bin/sh
while inotifywait -r --exclude '.*(access_|sess_).*' -e modify -e create /var/www/vhosts; do
chown -R www-data:www-data /var/www/vhosts
chmod g+s -R /var/www/vhosts
echo -e "EHCP Permissions Fixed"
done
</code>
This script runs continuously and looks for changes in files. When it finds them, it executes the changes specified (changing owner to www-data). Let's make the script automatically start on bootup under the root user by running this command:
<code>
sudo sh -c "echo '/root/monitor_vhosts.sh' >> /etc/rc.local"
</code>
Things should finally work properly on your server! Enjoy EHCP and PHP working 100% properly.
Restored from old drupal forum, for user uid:2735 username:own3mall
You may reset your password to access your new account here.
|
|
|
nginx or something similar... |
Posted by: comettom - 04-14-2023, 10:13 PM - Forum: Ehcp HowTos
- Replies (3)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
Hi, I have a problem, I have a PC with ehcp, works great, but I need to, with a single public IP have another server with ehcp in the same LAN...
Is this possible in any way?
Thank you very much, greetings
Restored from old drupal forum, for user uid:3537 username:comettom
You may reset your password to access your new account here.
|
|
|
Translating the Sky Template |
Posted by: carloparlanti - 04-14-2023, 10:13 PM - Forum: Ehcp HowTos
- Replies (1)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
I recently translated the Sky template to Italian and collaborated to another translation to Hungarian. I realized that the only available documentation was these two posts:
Language, translation and alternate layout (http://www.ehcp.net/?q=node/250)
How to Modify Templates, Logo (http://www.ehcp.net/?q=node/29)
So I decided to try to write a step by step procedure about translating the Sky template... here it is:
<!--break-->
<strong>Translating the Sky Template</strong>
Make a copy of the folder <em>/var/www/new/ehcp/templates/sky/en</em> (and all its subfolders) and name with with the two digit code for your language (i.e. /var/www/new/ehcp/templates/sky/it for Italian).
Change the name of the following files, within the folder, to use your two digits language code:
<ul>
<li>defaultindexfordomains_en.html</li>
<li>defaultindexforsubdomains_en.html</li>
<li>homepage_domainadmin_en.html</li>
<li>homepage_domainadmin_forreseller_en.html</li>
<li>homepage_emailuser_en.html</li>
<li>homepage_remotehosting_dnsonly_en.html</li>
<li>homepage_reseller_en.html</li>
<li>homepage_reseller_other_en.html</li>
<li>homepage_serveradmin_en.html</li>
<li>homepage_serveradmin_other_en.html</li>
<li>loginpage_en.html</li>
<li>template_domainadmin_en.html</li>
<li>template_emailuser_en.html</li>
<li>template_en.html</li>
</ul>
Edit all the above files (now ending with the two digits for your language, i.e. defaultindexfordomains_it.html for Italian) changing the text strings from English to your language.
Make a copy of the file <em>/var/www/new/ehcp/language/en.php</em> using the two digits code of your language and keep it in the same folder.
Translate all the text strings inside the above file.
Find a jpg image of your flag (54px x 36px) and place it inside <em>/var/www/new/ehcp/images</em> renaming it with the two digits code for your language (i. e. it.jpg for Italian).
Make a backup copy of the file <em>/var/www/new/ehcp/www.index.html</em> with the name <em>/var/www/new/ehcp/www.index.en.html</em>. Edit /var/www/new/ehcp/wwwindex.html to change all text strings to your language.
Edit <em>/var/www/new/ehcp/classapp.php</em> around line <em>2713</em>. There is a table with the list of available languages and you need to add your language code and language flag. For instance for Italian I added
<code>
<a href='?op=setlanguage&id=it'>Italian</a>
</code>
at line 2719 and
<code>
<td><a href='?op=setlanguage&id=it'><img height=30 width=50 src=images/it.jpg border=0></a></td>
</code>
at line 2729.
Make a backup copy of the file <em>/var/www/new/index.html</em> with the name <em>/var/www/new/index.en.html</em>. Edit /var/www/new/index.html to change all text strings to your language.
After testing your translation you should prepare a package with all the translated files and send it to info@ehcp.net so that your language will be included in the next release of <strong>EHCP</strong>.
Create in your computer a folder with all the modified files following this structure:
<code>
var
|__www
.....|__new
..........| index.html
..........|__ehcp
...............| classapp.php
...............| wwwindex.html
...............|__images
...............| xx.jpg
...............|__language
...............| xx.php
...............|__templates
....................|__sky
.........................|__xx
.............................| defaultindexfordomains_xx.html
.............................| defaultindexforsubdomains_xx.html
.............................| homepage_domainadmin_forreseller_xx.html
.............................| homepage_domainadmin_xx.html
.............................| homepage_emailuser_xx.html
.............................| homepage_remotehosting_dnsonly_xx.html
.............................| homepage_reseller_xx.html
.............................| homepage_reseller_other_xx.html
.............................| homepage_serveradmin_xx.html
.............................| homepage_serveradmin_other_xx.html
.............................| loginpage_xx.html
.............................| template_domainadmin_xx.html
.............................| template_emailuser_xx.html
.............................| template_xx.html
</code>
Tar the structure
<code>
tar -czf ehcp.xx.tar.gz var
</code>
and email it to info@ehcp.net (obviously you can also zip it).
<cite>Many thanks to Ákos for testing the procedure "on his skin" :-)</cite>
Restored from old drupal forum, for user uid:4879 username:carloparlanti
You may reset your password to access your new account here.
|
|
|
Limit failed login attemps |
Posted by: crookiecookie - 04-14-2023, 10:13 PM - Forum: Ehcp HowTos
- Replies (2)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
Is there any way to limit the amount of failed login attemps to the ehcp control panel
so say if user fails login attemp 3 times it locks their account for a hour
because its easy to brute force this all the hacker needs is the website name hosted by ehcp on the server then he has their user name.
Any help would be appreciated
And also i noticed if i change my user from admin to something diffrent in database table when i logging with my new user name i loose all the hosting sites i sold etc.
but if i change back to admin they are their again.
Restored from old drupal forum, for user uid:4518 username:crookiecookie
You may reset your password to access your new account here.
|
|
|
How to change the {homedir} |
Posted by: pepper - 04-14-2023, 10:13 PM - Forum: Ehcp HowTos
- Replies (5)
|
![](https://ehcp.10tl.net/images/default_avatar.png) |
Hi, I need to set two domains to use same root folder.
Now in the apache template says:
DocumentRoot {homedir}/httpdocs
How can I specify so this domain to use the homedir of other domain.
Or in other word i want to complete this action thru ehcp apache template of some domain.
<VirtualHost *:80>
ServerName domain1.com
ServerAlias www.domain1.com
DocumentRoot "/var/www/vhost/reseller/domain1/httpdocs"
DirectoryIndex index.php
</VirtualHost>
<VirtualHost *:80>
ServerName domain2.com
ServerAlias www.domain2.com
DocumentRoot "/var/www/vhost/reseller/domain1/httpdocs"
DirectoryIndex index.php
</VirtualHost>
Which file I need to edit?
Restored from old drupal forum, for user uid:4324 username:pepper
You may reset your password to access your new account here.
|
|
|
|