Hallo,
ich würde gerne, sobald eine Aktion ausgeführt wurde, die bei Apache die Config neuschreibt, dass danach der Befehl service ip_change bzw /etc/init.d/ip_change gestartet wird.
Meine Fragen dazu
1. Wo sind die Script die die Apache Config neuschreiben
2. Wie baue ich das in Perl ein(Kann Perl leider nicht)
MFG
Florian
-
-
Du kannst ja mal sci2tech direct anschreiben (oder einen Thread im Englischen Forum erstellen). Er hat die ganze Engine geschrieben und kann Dir am besten weiterhelfen. Allerdings spricht er nur English
-
-
Hi since you ask about engine I answer since is my baby. Problem: I do not understand german so I do not understand your post. Google translate sucks, can not understand either. So please ask in english.
-
Hi since you ask about engine I answer since is my baby. Problem: I do not understand german so I do not understand your post. Google translate sucks, can not understand either. So please ask in english.
So I try to write it in english ... I hope you understand all
When Apache is rewrite the Configurations of Apache, then the command: service ip_change or /etc/init.d/ip_change has to run (so bad english -.-)
But where are the Scripts, they rewirte the COnfigurations, when the Domainoptions change or a Domain was create.
And how i can add the command in the perl script, because i cant perl.
I hope you understand it -
-
So if i do understand you want to to run a command when Apache configuration for a domain is overwrite. If yes depending on what apache flavour you run (itk or fcgi) you have to edit /var/www/imscp/engine/PerlLib/Servers/httpd/apache_fcgi.pm or /var/www/imscp/engine/PerlLib/Servers/httpd/apache_itk.pm.
For domain add / change / rebuild there is function addDmn() and for domain removal is delDmn(). Migth be interesting disableDmn().
To execute external commant you have to add:before
resulting something like
-
So if i do understand you want to to run a command when Apache configuration for a domain is overwrite. If yes depending on what apache flavour you run (itk or fcgi) you have to edit /var/www/imscp/engine/PerlLib/Servers/httpd/apache_fcgi.pm or /var/www/imscp/engine/PerlLib/Servers/httpd/apache_itk.pm.
For domain add / change / rebuild there is function addDmn() and for domain removal is delDmn(). Migth be interesting disableDmn().
To execute external commant you have to add:before
resulting something like
Ok thanks but by disableDmn() isnt $rs;
And by adding a Subdomain Imscp doenst overwrite the config.
I need the Command for apache, because Apache need the internal ip and bind need the external. -
-
much more easy is to use internal ip when you install imscp and modify /etc/imscp/bind/parts/db_e.tpl and /etc/imscp/bind/parts/db_master_e.tpl and replace {DMN_IP} and {BASE_SERVER_IP} with external ip. After that run /var/www/imscp/engine/setup/imscp-setup to rebuild all conf. I think this is easiest solution
-
much more easy is to use internal ip when you install imscp and modify /etc/imscp/bind/parts/db_e.tpl and /etc/imscp/bind/parts/db_master_e.tpl and replace {DMN_IP} and {BASE_SERVER_IP} with external ip. After that run /var/www/imscp/engine/setup/imscp-setup to rebuild all conf. I think this is easiest solution
Oh thanks -