Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,249
» Latest member: JessicaHarce
» Forum threads: 1,052
» Forum posts: 1,199

Full Statistics

Latest Threads
ADD DOMAIN (can't find v...
Forum: Ehcp General, uncategorized yet
Last Post: Juliaseema
Yesterday, 12:47 AM
» Replies: 75
» Views: 92,622
5 sulfosalicylic acid dih...
Forum: Ehcp General, uncategorized yet
Last Post: Lavillsauro
11-15-2025, 05:40 PM
» Replies: 0
» Views: 373
Hi, I would like to ask f...
Forum: Ubuntu Topics
Last Post: Juliaseema
11-10-2025, 01:35 PM
» Replies: 0
» Views: 0
Hello, I need a recommend...
Forum: General Linux
Last Post: Juliaseema
11-10-2025, 01:34 PM
» Replies: 0
» Views: 0
Hello, I need a recommend...
Forum: Ehcp for Developers and Programmers/Designers
Last Post: Juliaseema
11-10-2025, 01:33 PM
» Replies: 0
» Views: 0
Hello, I need a recommend...
Forum: Ehcp Problems - After Installation
Last Post: Juliaseema
11-10-2025, 01:31 PM
» Replies: 0
» Views: 0
Hello, I need a recommend...
Forum: Ehcp Development
Last Post: Juliaseema
11-10-2025, 01:30 PM
» Replies: 0
» Views: 2
Hello! Can you advise me?
Forum: Ehcp General, uncategorized yet
Last Post: Juliaseema
11-10-2025, 01:29 PM
» Replies: 0
» Views: 151
Email DKIM
Forum: Ehcp HowTos
Last Post: Lavillsauro
11-08-2025, 03:24 PM
» Replies: 3
» Views: 16
run ehcp on rasperry pi
Forum: Ehcp HowTos
Last Post: Lavillsauro
11-02-2025, 10:18 AM
» Replies: 3
» Views: 19

 
  howto enable .htaccess
Posted by: ehcpdeveloper - 04-14-2023, 10:11 PM - Forum: Ehcp HowTos - Replies (4)

Question:
I am trying to rewrite the URLs from index.php?page=xxx&id=123 to something more cleaner such as /home/123/ - however I cannot get the .htaccess to load, despite it being enabled in Ubuntu 8.10 with latest apache php etc. and have read that you can do it using Custom HTTP in the EHCP panel, I was wondering if you can provide an example of how to do this with the above scenario?

Answer:

Follow these steps:
1- enable mod_rewrite by: ln -s /etc/apache2/mods-enabled/rewrite.load /etc/apache2/mods-available/rewrite.load
in linux console,
2- replace your apachetemplate file in ehcp dir with following:

<code>

#____________start of {domainname}__paneluser:{panelusername}_reseller:{reseller}_id:{id}____________
# explanation {aciklama}
# Namevirtualhost *:80
# &lt;VirtualHost *:80&gt;

&lt;VirtualHost *&gt;
ServerName {domainname}
ServerAlias www.{domainname}
UseCanonicalName Off
DocumentRoot {homedir}/httpdocs

# this combined log format is understandable by webalizer... some other formats are not recognised by webalizer.. thats why, specified here explicitly..

LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v:%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
CustomLog {homedir}/logs/access_log combined
CustomLog /var/log/apache_common_access_log vhost_combined

php_admin_value open_basedir {homedir}
php_admin_value upload_tmp_dir {homedir}/phptmpdir

AccessFileName .htaccess

&lt;Directory {homedir}/httpdocs&gt;
AllowOverride All
&lt;/Directory&gt;


{customhttp}

&lt;/VirtualHost&gt;

&lt;VirtualHost *&gt;
ServerAlias webmail.{domainname}
DocumentRoot /var/www/vhosts/ehcp/webmail

LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v:%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
CustomLog {homedir}/logs/access_log combined
CustomLog /var/log/apache_common_access_log vhost_combined


php_admin_value open_basedir /var/www/vhosts/ehcp/webmail
php_admin_value upload_tmp_dir /var/www/vhosts/ehcp/webmail/data

&lt;/VirtualHost&gt;


#____________end of {domainname}__paneluser:{panelusername}_reseller:{reseller}_id:{id}____________




</code>







3- # what we added in previous step is actually (summary here):
<code>
AccessFileName .htaccess

&lt;Directory {homedir}/httpdocs&gt;
AllowOverride All
&lt;/Directory&gt;

</code>

4- on ehcp, options, click on sync domains,
this way, your .htacces will be activated.
To ensure that it is activated for example,
write in it asdfasdfasdfasdfasdf
and navigate to your page,
if you see http error, then .htaccess is activated.
if you see normal webpage, then .htaccess is not enabled...


(These steps will be done/enabled by default in newer versions than 0.29.05)

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.

Print this item

  Forward a domain to an existing ehcp managed domain.
Posted by: skynet104 - 04-14-2023, 10:11 PM - Forum: Ehcp HowTos - Replies (4)

Hi there:

I have a situation where we need to forward several domains to one existing domain.
Can you forward a created domain to another one already managed by ehcp.

Thanks in advance.

Restored from old drupal forum, for user uid:1055 usernameConfusedkynet104
You may reset your password to access your new account here.

Print this item

  where to put files
Posted by: ehcpdeveloper - 04-14-2023, 10:11 PM - Forum: Ehcp HowTos - Replies (1)

Question:
First I would like to congratulate you for a fine job on EHCP. I just installed it on my ubuntu box with no problem at all.

Here goes the purpose for the web server, many family members including myself and a couple good friends have websites, (business, blogs, etc) and since we all have fully functioning websites with several different hosting company's, so I proposed to host them all on a server I was going to get.

I have a couple questions hope you don'tt mind, Im a web designer with knowledge in HTML, PHP, ASP, JavaScript and a couple more, but Idon'tt anything about networking or stuff like that so I would appreciate all the help you could give me. As I said before the server is going to host around 10-15 websites, all mine and or family members/friends if the server works as I expect it to work I may be starting my own cheap small web hosting company and I would like to use and advertise your control panel with all my customer (Client CP, Reseller CP and Admin CP). But for that to happen I need to know how to add domains and transfer them to my server and most importantly where to put the files on my hard driveee, as far as I know I have to put them in /var/www/ so if customerrr is www.newdomain.com for what I understand I/he has to put the files in /var/www/newdomain.

Answer:
Since you are a newbie regarding webserver topics, i only suggest you to put files after you setup your domain in ehcp, to what you see in your ftp account. Login to your ftp account that you setup your domain in, then put your files in root of ftp, into yourdomain.com directory...
for example, you setup aaa.com domain, in your ftp of ftp1, then, when you login to your account using ftp, you should put your files in dir /aaa.com/httpdocs/ ..

if you know deeper in server directory, same files reside in /var/www/vhosts/ftp1/aaa.com/httpdocs

ask me if you have other questions..


Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.

Print this item

  SSL setup on EHCP
Posted by: BlackFire Predsident - 04-14-2023, 10:11 PM - Forum: Ehcp HowTos - Replies (5)

User's Recommand: Advanced

I have found a way to get SSL to work with EHCP. See link for demo!
Im not going to explain everything but with my networking guide and reading topics about Apache. You shouldnt have a issue!

You can use OpenSSL or purchase your own.
Note:OpenSSL is not supported by most browsers. Buying is recommanded but OpenSSL is also a opinon.

You need to get your server.crt and example.key files placed in a folder name it whatever you desire under Apache's program root folder. Most people just name it SSL.

You'll need to insert SSLEngine into your new website in Sites enabled and Sites Available. Google for the code.

Copy EHCP folder into var/www
Make a new folder & name it whatever you want.

I used html
So now you'll need to do a few things to continue and get it working.

edit and change the cp's file location in classapp.php
make a template that goes to your new cp.
make a backup and save the org cp in vhosts just in case.

**IF 2 CP's are enabled you'll need to change or remove one of them so there will not be a conflict**
Message Expected for this will be. (This page contains secure & not secure items continue?)

Restart everything and you should be all set!

If you use OpenSSL and happen to purchase one online.
You just have to replace the new .crt file or delete all text in file and insert the new one.

Example site of EHCP SSL located Below
https://www.webhostinghand.com

Restored from old drupal forum, for user uid:212 username:BlackFire Predsident
You may reset your password to access your new account here.

Print this item

  Default email customization
Posted by: ares in uae - 04-14-2023, 10:11 PM - Forum: Ehcp HowTos - Replies (7)

Hi!

When you add a domain to the panel, an email is sent to the entered email address telling the username, password and the panel address.

How can i customize this email? Where can i find the default file?

I wanted to add some more info in that email - for example - default address where to access webmail (which like what you said -i webmail.domain.com), ways to configure outlook and other information. I think its a nice idea that once you add the domain, the new user will receive all these other valuable info.

Thanks!



Restored from old drupal forum, for user uid:1261 username:ares in uae
You may reset your password to access your new account here.

Print this item

  howto setup/add a domain and/or client
Posted by: ehcpdeveloper - 04-14-2023, 10:11 PM - Forum: Ehcp HowTos - Replies (1)

on left menu or main (old) menu,

there are 3 type of add domain most easy is

"easy add domain to my ftp"

setups a domain to your own account


"easy add domain"

setups domain/hosting and client to use that domain

single step, domain and client at once

in that "easy add domain" all usernames domain.com


in "Add domain"


you can give whatever name to client, domain and ftp

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.

Print this item

  Mail Configurations
Posted by: ares in uae - 04-14-2023, 10:11 PM - Forum: Ehcp HowTos - Replies (17)

Hi,

First of all, I'd like to thank and congratulate the founder and developer of this wonderful panel. Let me just say that I've tried a lot of free panels out there, and nothing can beat this one! Id like to be able to contribute soon, at least by developing templates and other GUIs. So far everything works really good!

So for my question:
Mail. Ive created mail.mydomain.com. I was hoping i could access webmail from that address instead of going to the ehcp panel and clicking webmail. Same thing for ftp - ftp.mydomain.com. Is there a way to do this?

Id appreciate a reply.

Ares



Restored from old drupal forum, for user uid:1261 username:ares in uae
You may reset your password to access your new account here.

Print this item

  help for upgrade to ver 0.29 from previous versions
Posted by: ehcpdeveloper - 04-14-2023, 10:11 PM - Forum: Ehcp HowTos - Replies (1)

Execute following mysql query on your phpmyadmin,
There is no complete upgrade script yet, sory..

ALTER TABLE misc ADD panelusername VARCHAR( 30 ) NULL ;
ALTER TABLE ftpaccounts ADD type VARCHAR( 10 ) NULL ;

CREATE TABLE IF NOT EXISTS servers (
id smallint(6) NOT NULL auto_increment,
servertype varchar(10) default NULL,
ip varchar(20) default NULL,
mandatory char(1) default NULL,
location varchar(20) default NULL,
password varchar(20) default NULL,
defaultmysqlhostname varchar(30) default NULL,
PRIMARY KEY (id)
) ENGINE=MyISAM;


dont forget to restart ehcp after fixing mysql and putting new files..

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.

Print this item

  website bandwidth
Posted by: deconectat - 04-14-2023, 10:11 PM - Forum: Ehcp HowTos - Replies (6)

How can I set the website bandwidth to unlimited? How does the bandwidth limiting work?

Restored from old drupal forum, for user uid:700 username:deconectat
You may reset your password to access your new account here.

Print this item

  Secure Server, firewall howto
Posted by: ehcpdeveloper - 04-14-2023, 10:11 PM - Forum: Ehcp HowTos - Replies (2)

Question: Do you have a basic tutorial on how to secure a server after you install EHCP? Does EHCP auto install a IP tables/Firewall? What ports need to be open for EHCP to function? (if I install a IP Tables firewall)

Answer:
Such tutorial does not exist, up to now. We may use/extend this document/forum topic to discuss/clarify such secure install..

ehcp does not include, and doesn't install any security related software, as of ver 0.28,
Later versions may include this.
This does not mean that, you cannot install firewall. You may definitely install firewall, just after ehcp install.
We may consider installing a firewall in later versions, but this is a separete, a bit dangerous task..
Because users may block themselves..

if you install firewall youself, you need to keep open following ports (i wrote description too):
20-21 : ftp
25: smtp-mail
53: dns
80: Web
110: mail-pop3
143: mail-imap

you may disable individual ports, if you dont want to run imap for example, you dont need 143

if you have other questions, please ask here..

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.

Print this item


Vidinli.net Shopping Platform
Vidinli.net Shopping Platform
Vidinli.net Shopping Platform