Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2 questions
#1
I have 2 problems i wanna fix before i get too into ehcp. i'm running ubuntu v9.04

1. ehcp should be accessed via yourdomain.com:port , how is this possible? is there a tutoral for this?

2. i run my server with dnsexit.com for my dynamic ip, ehcp is setup on my local IP with all the ports forwarded in my router, How can i disable the local ip warning since my domains ARE working.

Restored from old drupal forum, for user uid:2661 username:mknjhill
You may reset your password to access your new account here.
Reply
#2
Answer 2:
Open classapp.php in ehcp dir.
find function isPrivateIp($ip){
append "return false;" hereafter, save, its done



Answer 1:
There is no separate good tutorial for this.
The only post about this is http://ehcp.net/?q=node/565
The idea is to run two copies of apache, which is some tricky.
Maybe you may prepare such tutorial. I cannot prepare as of now.

let me know if you have further questions or you need help...

Restored from old drupal forum, for user uid:2661 username:mknjhill
You may reset your password to access your new account here.
Reply
#3
#2. DONE!! Thank You!!

#1. I know verry little about linux, this panel was installed because it was easy lol, i dont know how to setup anther copy of apache without using wget, and that would just overwite the current one wouldn't it?

a friend told me i could do it with one copy , just use a vurtal host, would that work? or do i have to use another copy of apache??

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#4
Really I am not sure how to do...
And as soon as I implement this feature in ehcp, i will announce here...
Later, i will learn and implement in ehcp.

Currently, unfortunately, ehcp does not support this in an easy way..
ehcp is easy in what it supports, mostly... Although some bugs appears in time, basicly works most of the time..
Since currently ehcp does not support this feature in an easy way, through ehcp gui, one should find a workaround on this..

What ehcp supports through its gui: custom http, custom dns, apache templates... and so on.. in which you can define or fine tune virtual host or other apache gui.
I have medium knowledge of apache, and as far as I know, having two ports with one apache instance is not possible..
You need to run ehcp on port other than 80, while normal web sites on port 80. As I know, this is only possible with two different apache running on your server...
If somebody knows, please write here details...

SEe you.

(btw, the link in your signature is not working, since you didnt put http:// in start of it.)

Restored from old drupal forum, for user uid:2661 username:mknjhill
You may reset your password to access your new account here.
Reply
#5
i did setup /cpanel for domains NOT attached to ehcp

/cpanel will go to it fine

but on domains that ARE setup on ehcp i get the following error

Warning: Unknown: open_basedir restriction in effect. File(/var/www/vhosts/ehcp/index.php) is not within the allowed path(s): (/var/www/vhosts/mknjhill.co.cc/mknjhill.co.cc) in Unknown on line 0

Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0

Fatal error: Unknown: Failed opening required '/var/www/vhosts/ehcp/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0

It gives me the error because the domain root doesn't have access to that, any ideas how to do /cpanel instead of a port? both the alias and the port should be added to future versions,

i'll go try and fix the sig, thx

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#6
Please explain a bit more clear,
did you install ehcp into mknjhill.co.cc ?

what do you mean by /cpanel ?
Do you use known CPANEL with ehcp together ? or /cpanel is only an alias to ehcp ?

what is exact url that you get that error ?
That error caused by domains that try to access out of homedir files... known as open_basedir restriction, a security restriction..

Restored from old drupal forum, for user uid:2661 username:mknjhill
You may reset your password to access your new account here.
Reply
#7
I installed ehcp without a domain,
but added my domain after install

/cpanel is an alias to ehcp (no not running cpanel)

the problem url is http://www.mknjhill.co.cc/cpanel

any possible way to open /cpanel for ehcp on all domains?

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#8
i will work on this and reply here in a few days. sory for late.


Restored from old drupal forum, for user uid:2661 username:mknjhill
You may reset your password to access your new account here.
Reply
#9
adding following at the end of apachetemplate file may solve a bit:

<code>
&lt;VirtualHost *>
ServerAlias cpanel.{domainname}
ServerAlias panel.{domainname}
ServerAlias ehcp.{domainname}
DocumentRoot /var/www/vhosts/ehcp/

LogFormat "%v:%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
CustomLog /var/log/apache_common_access_log vhost_combined

php_admin_value open_basedir /var/www/vhosts/ehcp/

&lt;/VirtualHost>
</code>

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#10
yes, that worked for me.
I added that part into apachetemplate file, then go to ehcp gui, options, sync domains.
then you can see panel in panel.yourdomain.com or cpanel.yourdomain.com or ehcp.yourdomain.com


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


Forum Jump:


Users browsing this thread: 8 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping