Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom subdomain http
#1
Assalamu alaikum. How to add custom subdomain http? For now I see that there is only custom domain http.

Restored from old drupal forum, for user uid:2968 username:djanym
You may reset your password to access your new account here.
Reply
#2
there is no support for it yet, in code,

i will implement it later, maybe in next version, or later,

if you wish, if you know to code,
it is in
<code>function syncSubdomains(
line:
<code>$dom['customsubdomainhttp']='';

Restored from old drupal forum, for user uid:2968 username:djanym
You may reset your password to access your new account here.
Reply
#3
one quick way of a bit manual:

in ehcp code, classapp.php,

in function syncSubdomains(
remove line
$dom['customsubdomainhttp']='';

then,
in phpmyadmin,
edit structure of subdomains,
add a new field of customsubdomainhttp
fill that field with valid apache custom apache commands,

sync domains,

that should work, i think, not tested,
i think i will implement this way,


Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#4
Thanks. I will try. By the way, I'm web developer. Wink

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#5
if you are a web developer and if you wish, you may design new templates for ehcp. described in http://ehcp.net/?q=node/250

Restored from old drupal forum, for user uid:2968 username:djanym
You may reset your password to access your new account here.
Reply
#6
I'm glad to help you, but I'm not a designer.

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#7
I found it, but it's working very strange. I'm trying to change customsubdomainhttp field in DB for customsubdomainhttp ='newrecord';
After I run in adminpanel Sync Domains...
than in apache_subdomain no change appears...

In logs I see that $arr2 (which contains subdomains rows from subdomains table) have no value:
[customsubdomainhttp] =>

After that I have made something (I don't know what exactly) and in logs I see that now is:
[customsubdomainhttp] => newrecord

But when I'm tryinу to change it one more time, than nothing change.

Restored from old drupal forum, for user uid:2968 username:djanym
You may reset your password to access your new account here.
Reply
#8
it is in my roadmap, and I will implement it in next version, i hope, will be released in a few weeks (with other enhancements)

Restored from old drupal forum, for user uid:2968 username:djanym
You may reset your password to access your new account here.
Reply
#9
I have such log:
SUBDOMAINS-Domain list exported (syncSubdomains)

checking apache syntax:
executing command: chmod a+w /var/www/vhosts/user/mydomain_1.com/phptmpdir
(escapedcmd: chmod a+w /var/www/vhosts/user/mydomain_1.com/phptmpdir)
chmod: changing permissions of `/var/www/vhosts/user/mydomain_1.com/phptmpdir': Operation not permitted

executing command: mkdir -p /var/www/vhosts/user/mydomain_1.com
(escapedcmd: mkdir -p /var/www/vhosts/user/mydomain_1.com)

executing command: mkdir -p /var/www/vhosts/user/mydomain_1.com/logs
(escapedcmd: mkdir -p /var/www/vhosts/user/mydomain_1.com/logs)

Warning: fopen(/var/www/vhosts/user/mydomain_1.com/logs/access_log): failed to open stream: Permission denied in /var/www/vhosts/ehcp/config/dbutil.php on line 987
hata: dosya acilamadi: /var/www/vhosts/user/mydomain_1.com/logs/access_log (writeoutput) !
Warning: fopen(/var/www/vhosts/user/mydomain_1.com/logs/error_log): failed to open stream: Permission denied in /var/www/vhosts/ehcp/config/dbutil.php on line 987
hata: dosya acilamadi: /var/www/vhosts/user/mydomain_1.com/logs/error_log (writeoutput) !
executing command: chown root:root -Rf /var/www/vhosts/user/mydomain_1.com/logs
(escapedcmd: chown root:root -Rf /var/www/vhosts/user/mydomain_1.com/logs)

Syncing domains:Array
(
[0] => Array
...

)

Domain list exported (syncdomains) apache conf to: apachehcp.conf
passive domains are:
executing command: mkdir -p /var/www/passivedomains
(escapedcmd: mkdir -p /var/www/passivedomains)

Warning: fopen(/var/www/passivedomains/index.html): failed to open stream: Permission denied in /var/www/vhosts/ehcp/config/dbutil.php on line 987
hata: dosya acilamadi: /var/www/passivedomains/index.html (writeoutput) !dirs:Array
(
[0] => Array
(
[directory] => /var/www/vhosts/user/mydomain_2.com/httpdocs/subdomains/dev
)

)

executing command: mkdir -p /etc/ehcp
(escapedcmd: mkdir -p /etc/ehcp)
Syntax OK

apache configde hata gorunmuyor... yukluyor.
executing command: /etc/init.d/apache2 reload
(escapedcmd: /etc/init.d/apache2 reload)
rm: cannot remove `/etc/ehcp/htpasswd_1': Permission denied
users related to dir: /var/www/vhosts/user/mydomain_2.com/httpdocs/subdomains/devArray
(
[0] => Array
...
)

executing command: htpasswd -c -b /etc/ehcp/htpasswd_1 xxx yyy
(escapedcmd: htpasswd -c -b /etc/ehcp/htpasswd_1 xxx yyy)
Adding password for user xxx
htpasswd: unable to update file /etc/ehcp/htpasswd_1

executing command: /etc/init.d/apache2 reload
(escapedcmd: /etc/init.d/apache2 reload)
/etc/init.d/apache2: 235: cannot open /dev/console: Permission denied
* Reloading web server config apache2
/etc/init.d/apache2: 235: cannot open /dev/console: Permission denied
* Reloading web server config apache2
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
/etc/init.d/apache2: 235: cannot open /dev/console: Permission denied
httpd not running, trying to start
...fail!


miscconfig:Array
(
....
)

daemon->runop success **

Success update operations set status ok.
ehcp 0.29.12- Daemon loop number:8516
-----------daemon suspended for 10 sec ---------pwdSad/var/www/vhosts/ehcp)
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
/etc/init.d/apache2: 235: cannot open /dev/console: Permission denied
httpd not running, trying to start
...fail!

What is with the: /etc/init.d/apache2: 235: cannot open /dev/console: Permission denied
?
And with other permissions denied

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: 1 Guest(s)

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