HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Domain creation problem - OpenVZ (http://www.howtoforge.com/forums/showthread.php?t=58866)

DKLeader 25th September 2012 22:13

Domain creation problem - OpenVZ
 
Hi,

I am trying to get a VServer up running combined with my existing multiserver system.

My setup :
Web server (Main) : Debian Lenny - IP .53
Mail server : Debian Lenny - IP .58
DB Server : Debian Squeeze - IP .54
NS1 : Debian Lenny- IP .50
NS2 : Debian Squeeze - IP .51
NS3 : Debian Squeeze - IP .52
VM1 : Debian Squeeze - .59
Web2 (Container on VM1) : Debian Squeeze - IP .60
Mail2 (Container on VM1) : Debian Squeeze - IP .61

I have installed the VServer as described in the guide http://www.howtoforge.com/virtual-mu...th-ispconfig-3 and everything regarding creation works fine.

My problem is related to the container I have created as web server. Domains are not created in var/www/user. In the database for the container the domain is added. It seems only to be the users directory with files not being added.

Any ideas to what I can check or might have forgotten?

till 26th September 2012 10:05

Please see here:

http://www.howtoforge.com/forums/showthread.php?t=58408

DKLeader 26th September 2012 23:04

I am using ISPConfig version 3.0.4.6 and apache.

I have checked error.logs on the container. Nothing in them. Checked :
/var/log/apache2/error.log.
Code:

[Mon Sep 24 01:38:17 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Sep 24 01:38:17 2012] [notice] Digest: done
[Mon Sep 24 01:38:17 2012] [notice] Apache/2.2.16 (Debian) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3-7+squeeze14 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.7(2010-08-16) mod_ssl/2.2.16 OpenSSL/0.9.8o config$
[Mon Sep 24 18:41:02 2012] [notice] caught SIGTERM, shutting down
[Mon Sep 24 18:41:14 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Mon Sep 24 18:41:14 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Sep 24 18:41:14 2012] [notice] Digest: done
[Mon Sep 24 18:41:14 2012] [notice] Apache/2.2.16 (Debian) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3-7+squeeze14 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.7(2010-08-16) mod_ssl/2.2.16 OpenSSL/0.9.8o config$
[Mon Sep 24 20:25:13 2012] [error] [client 192.168.100.1] File does not exist: /var/www/favicon.ico
[Wed Sep 26 18:54:26 2012] [error] [client 141.212.121.10] Invalid method in request \x80w\x01\x03\x01

Since the files are not created in /var/www no logs to look at there.

Noticed that looking at the database on my "mainserver" (webserver) that web_domain/server_id is set correctly for domains created, but on the new webserver(web2) all domains are given the server_id from the new server. Shouldn't this be the same as on the primary webserver?

till 27th September 2012 09:04

Quote:

Shouldn't this be the same as on the primary webserver?
That depends on your setup, if you enabled mirroring for the slave, then the ID has to be rewritten to the ID of the slave server.

Please follow the debug instructions from the link I posted above.

DKLeader 4th October 2012 22:03

Think that I have everything now from the debug instructions :
Code:

root@myweb1:/var/www# /usr/local/ispconfig/server/server.sh
04.10.2012-19:08 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
04.10.2012-19:08 - DEBUG - No Updated records found, starting only the core.
04.10.2012-19:08 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
finished.

When I create a new domain on the new webserver I get this in the "Show System log" :
Code:

Replicated from master: REPLACE INTO web_domain (`domain_id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`ip_address`,`ipv6_address`,`domain`,`type`,`parent_domain_id`,`vhost_type`,`document_root`,`system_user`,`system_group`,`hd_quota`,`traffic_quota`,`cgi`,`ssi`,`suexec`,`errordocs`,`is_subdomainwww`,`subdomain`,`php`,`ruby`,`python`,`redirect_type`,`redirect_path`,`seo_redirect`,`ssl`,`ssl_state`,`ssl_locality`,`ssl_organisation`,`ssl_organisation_unit`,`ssl_country`,`ssl_domain`,`ssl_request`,`ssl_cert`,`ssl_bundle`,`ssl_action`,`stats_password`,`stats_type`,`allow_override`,`apache_directives`,`nginx_directives`,`php_fpm_use_socket`,`pm_max_children`,`pm_start_servers`,`pm_min_spare_servers`,`pm_max_spare_servers`,`php_open_basedir`,`custom_php_ini`,`backup_interval`,`backup_copies`,`active`,`traffic_quota_lock`) VALUES ('104','1','17','riud','ru','','34','*','','tester.dk','vhost','0','name','/var/www/clients/client16/web104','web104','client16','-1','-1','n','n','y','1','1','www','fast-cgi','n','n','','','','n','','','','','AF','tester.dk','','','','','','webalizer','All','','','n','50','20','5','35','/var/www/clients/client16/web104/web:/var/www/clients/client16/web104/tmp:/var/www/tester.dk/web:/srv/www/tester.dk/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/php','','none','1','y','n')

DKLeader 18th October 2012 15:59

Anyone with any suggestions?
Still have this issue.

DKLeader 20th October 2012 23:43

Still searching for some help on this issue.

Looked in the ispconfig.log on the slave and see this when trying to create the domain tester.dk

Code:

20.10.2012-21:19 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
20.10.2012-21:19 - DEBUG - Found 1 changes, starting update process.
20.10.2012-21:19 - DEBUG - Replicated from master: REPLACE INTO web_domain (`domain_id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`ip_address`,`ipv6_$
20.10.2012-21:19 - DEBUG - Processed datalog_id 29409
20.10.2012-21:19 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock

But looking in /var/www/ the client folder is not created.

In the cron.log I found this :
Code:

sh: mailq: not found
FATAL: Could not load /lib/modules/2.6.32-5-openvz-amd64/modules.dep: No such file or directory

Doubt this has anything to do with the domains / clients not being created.

DKLeader 21st October 2012 22:36

Tried again the debug from the "Debugging of ISPConfig 3 server actions in case of a failure".

When running the server.sh command I get when I create a domain (the delete part is from my first domain creation attempt that I removed):

Code:

root@myweb1:/etc/init.d# /usr/local/ispconfig/server/server.sh
21.10.2012-20:31 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
21.10.2012-20:31 - DEBUG - Found 2 changes, starting update process.
21.10.2012-20:31 - DEBUG - Replicated from master: DELETE FROM web_domain  WHERE domain_id = 105
21.10.2012-20:31 - DEBUG - Processed datalog_id 29411
21.10.2012-20:31 - DEBUG - Replicated from master: REPLACE INTO web_domain (`domain_id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`ip_address`,`ipv6_address`,`domain`,`type`,`parent_domain_id`,`vhost_type`,`document_root`,`system_user`,`system_group`,`hd_quota`,`traffic_quota`,`cgi`,`ssi`,`suexec`,`errordocs`,`is_subdomainwww`,`subdomain`,`php`,`ruby`,`python`,`redirect_type`,`redirect_path`,`seo_redirect`,`ssl`,`ssl_state`,`ssl_locality`,`ssl_organisation`,`ssl_organisation_unit`,`ssl_country`,`ssl_domain`,`ssl_request`,`ssl_cert`,`ssl_bundle`,`ssl_action`,`stats_password`,`stats_type`,`allow_override`,`apache_directives`,`nginx_directives`,`php_fpm_use_socket`,`pm_max_children`,`pm_start_servers`,`pm_min_spare_servers`,`pm_max_spare_servers`,`php_open_basedir`,`custom_php_ini`,`backup_interval`,`backup_copies`,`active`,`traffic_quota_lock`) VALUES ('106','1','17','riud','ru','','34','*','','tester2.dk','vhost','0','name','/var/www/clients/client16/web106','web106','client16','-1','-1','n','n','y','1','1','www','fast-cgi','n','n','','','','n','','','','','','','','','','','','webalizer','All','','','n','50','20','5','35','/var/www/clients/client16/web106/web:/var/www/clients/client16/web106/tmp:/var/www/tester2.dk/web:/srv/www/tester2.dk/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/php','','none','1','y','n')
21.10.2012-20:31 - DEBUG - Processed datalog_id 29412
21.10.2012-20:31 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
finished.

After I took a look in the folder www :
Code:

root@myweb1:/etc/init.d# dir /var/www
index.html  ispconfig  php-fcgi-scripts  webalizer
root@myweb1:/etc/init.d#


till 22nd October 2012 08:40

Seems as if neither the apache nor nginx plugin is active on that server. A possible resaon for that can be that apach ro nginx was not selected during expert setup of the ispconfig installer. Please post the output of:

ls -la /usr/local/ispconfig/server/mods-enabled/

and

ls -la /usr/local/ispconfig/server/plugins-enabled/

DKLeader 22nd October 2012 19:47

Ok, can see that you are right - seems that I have forgotten to install one item during setup.
Code:

root@myweb1:~# ls -la /usr/local/ispconfig/server/mods-enabled/
total 40
drwxr-s---  2 ispconfig ispconfig 4096 Sep 22 15:07 .
drwxr-s--- 13 ispconfig ispconfig 4096 Sep 22 15:07 ..
lrwxrwxrwx  1 ispconfig ispconfig  64 Sep 22 15:07 client_module.inc.php -> /usr/local/ispconfig/server/mods-available/client_module.inc.php
lrwxrwxrwx  1 ispconfig ispconfig  62 Sep 22 15:07 cron_module.inc.php -> /usr/local/ispconfig/server/mods-available/cron_module.inc.php
lrwxrwxrwx  1 ispconfig ispconfig  66 Sep 22 15:07 database_module.inc.php -> /usr/local/ispconfig/server/mods-available/database_module.inc.php
lrwxrwxrwx  1 ispconfig ispconfig  70 Sep 22 15:07 monitor_core_module.inc.php -> /usr/local/ispconfig/server/mods-available/monitor_core_module.inc.php
lrwxrwxrwx  1 ispconfig ispconfig  75 Sep 22 15:07 remoteaction_core_module.inc.php -> /usr/local/ispconfig/server/mods-available/remoteaction_core_module.inc.php
lrwxrwxrwx  1 ispconfig ispconfig  69 Sep 22 15:07 rescue_core_module.inc.php -> /usr/local/ispconfig/server/mods-available/rescue_core_module.inc.php
lrwxrwxrwx  1 ispconfig ispconfig  64 Sep 22 15:07 server_module.inc.php -> /usr/local/ispconfig/server/mods-available/server_module.inc.php
lrwxrwxrwx  1 ispconfig ispconfig  60 Sep 22 15:07 vm_module.inc.php -> /usr/local/ispconfig/server/mods-available/vm_module.inc.php
root@myweb1:~# ls -la /usr/local/ispconfig/server/plugins-enabled/
total 20
drwxr-s---  2 ispconfig ispconfig 4096 Sep 22 15:07 .
drwxr-s--- 13 ispconfig ispconfig 4096 Sep 22 15:07 ..
lrwxrwxrwx  1 ispconfig ispconfig  75 Sep 22 15:07 mysql_clientdb_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mysql_clientdb_plugin.inc.php
lrwxrwxrwx  1 ispconfig ispconfig  77 Sep 22 15:07 network_settings_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/network_settings_plugin.inc.php
lrwxrwxrwx  1 ispconfig ispconfig  76 Sep 22 15:07 software_update_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/software_update_plugin.inc.php
root@myweb1:~#

The big question is then : how do I enable the different items missing?


All times are GMT +2. The time now is 21:31.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.