New website does not appear on slave server

Discussion in 'Installation/Configuration' started by jbmoore, Jul 20, 2011.

  1. till

    till Super Moderator Staff Member ISPConfig Developer

    As the log states, the scripts are working correctly but there are no new websites on the master for this server. One possible reason can be that you selected the wrong server in the website settings while you created the website, so that the site is assigned to a different server.
     
  2. jbmoore

    jbmoore New Member

    Websites not installed on slave server

    We have checked both servers and paid close attention to what is being produced. When we designate the master server as the host for websites a directory tree is installed appropriately. When the slave server is designated no directory tree is installed. In fact a /var/www/client/... folder has never been generated on the slave server in all our tries. The slave server only has /var/www/cgi-bin; /error; /html; and /icons folders in that directory. On the master server it was generated immediately when we designated it as the host. It continues to be populated with client directories when we add a site. And the master server has other folders generated in /var/www/...
     
  3. jbmoore

    jbmoore New Member

    The websites are created successfully on the master server

    If the master server is desginated as the repository all is well. If the slave server is designated nothing is created. The entries exist in the database for both servers. What do we need to do to get the websites on the slave server.
     
  4. ikeaboy

    ikeaboy New Member

    Sorry I know it is an old post but I have exactly the same problem.
    In debug mod I see server.sh worked well on the slave with
    13.04.2015-15:46 - DEBUG - Found 1 changes, starting update process.
    13.04.2015-15:46 - DEBUG - Replicated from master: REPLACE INTO web_domain
    After that database (web_domain table) is ok but any website is create in /var/www or first of all in /var/www/clients/client15 (the first directory used to make the symlink)
    I don't know what I can do to get the website on the slave server.
    Thanks a lot for your help.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Is /var/www a directory or is it a symlink to another directory?
     
  6. ikeaboy

    ikeaboy New Member

    Thanks for your reply :)
    No unfortunately nothing is created in /var/www or in /var/www/clients/
    But the good thing is that database on the slave is right updated from the master.
    Thus in the table 'web_domain' on the slave I can see the new domain with those values :
    document_root : /var/www/clients/client15/web67
    php_open_basedir : /var/www/clients/client15/web67/web:/var/www/clients/client15/web67/private:/var/www/clients/client15/web67/tmp:/var/www/max6.be/web:/srv/www/max6.be/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin
    But I have nothing in /var/www/clients/client15
     
    Last edited: Apr 14, 2015
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    My questions was if /var/www is a symlink, not if something is created there. Plese check with:

    ls -la /var

    if www is a symlink or a directory. Symlinks are not allowed there for security reasons, so if www is a symlink that ispconfig will stop to create folders.
     
  8. ikeaboy

    ikeaboy New Member

    Oh ok sorry, no /var/www is not a symlink.
    It's a 'normal' directory drwxr-xr-x.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

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

    from slave server.
     
  10. ikeaboy

    ikeaboy New Member

    You can see the result from the slave here :

    Code:
    # ls -la /usr/local/ispconfig/server/plugins-enabled/
    total 56
    drwxr-x---.  2 root root 4096 Apr  2 15:02 .
    drwxr-x---. 13 root root 4096 Apr 13 15:13 ..
    lrwxrwxrwx.  1 root root   67 Apr  2 15:02 backup_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/backup_plugin.inc.php
    lrwxrwxrwx.  1 root root   65 Apr  2 15:02 bind_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/bind_plugin.inc.php
    -rwxr-x---.  1 root root   45 Apr  2 15:02 empty.dir
    lrwxrwxrwx.  1 root root   68 Apr  2 15:02 getmail_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/getmail_plugin.inc.php
    lrwxrwxrwx.  1 root root   72 Apr  2 15:02 maildeliver_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/maildeliver_plugin.inc.php
    lrwxrwxrwx.  1 root root   68 Apr  2 15:02 mailman_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mailman_plugin.inc.php
    lrwxrwxrwx.  1 root root   65 Apr  2 15:02 mail_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mail_plugin.inc.php
    lrwxrwxrwx.  1 root root   75 Apr  2 15:02 mysql_clientdb_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mysql_clientdb_plugin.inc.php
    lrwxrwxrwx.  1 root root   77 Apr  2 15:02 network_settings_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/network_settings_plugin.inc.php
    lrwxrwxrwx.  1 root root   75 Apr  2 15:02 postfix_filter_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/postfix_filter_plugin.inc.php
    lrwxrwxrwx.  1 root root   75 Apr  2 15:02 postfix_server_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/postfix_server_plugin.inc.php
    lrwxrwxrwx.  1 root root   76 Apr  2 15:02 software_update_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/software_update_plugin.inc.php
    
     
  11. florian030

    florian030 Well-Known Member HowtoForge Supporter

    Enable the apache or nginx-plugin.
    Code:
    ln -s /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php /usr/local/ispconfig/server/plugins-enabled
    or
    Code:
    ln -s /usr/local/ispconfig/server/plugins-available/nginx_plugin.inc.php /usr/local/ispconfig/server/plugins-enabled
     
  12. ikeaboy

    ikeaboy New Member

    I have enable apache plugins but that doesn't change the result, nothing is created in /var/www or in /var/www/clients/

    Code:
    ls -la /usr/local/ispconfig/server/plugins-enabled/
    total 60
    drwxr-x---.  2 root root 4096 Apr 15 08:52 .
    drwxr-x---. 13 root root 4096 Apr 13 15:13 ..
    lrwxrwxrwx.  1 root root   68 Apr 15 08:52 apache2_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php
    lrwxrwxrwx.  1 root root   67 Apr  2 15:02 backup_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/backup_plugin.inc.php
    lrwxrwxrwx.  1 root root   65 Apr  2 15:02 bind_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/bind_plugin.inc.php
    -rwxr-x---.  1 root root   45 Apr  2 15:02 empty.dir
    lrwxrwxrwx.  1 root root   68 Apr  2 15:02 getmail_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/getmail_plugin.inc.php
    lrwxrwxrwx.  1 root root   72 Apr  2 15:02 maildeliver_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/maildeliver_plugin.inc.php
    lrwxrwxrwx.  1 root root   68 Apr  2 15:02 mailman_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mailman_plugin.inc.php
    lrwxrwxrwx.  1 root root   65 Apr  2 15:02 mail_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mail_plugin.inc.php
    lrwxrwxrwx.  1 root root   75 Apr  2 15:02 mysql_clientdb_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/mysql_clientdb_plugin.inc.php
    lrwxrwxrwx.  1 root root   77 Apr  2 15:02 network_settings_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/network_settings_plugin.inc.php
    lrwxrwxrwx.  1 root root   75 Apr  2 15:02 postfix_filter_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/postfix_filter_plugin.inc.php
    lrwxrwxrwx.  1 root root   75 Apr  2 15:02 postfix_server_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/postfix_server_plugin.inc.php
    lrwxrwxrwx.  1 root root   76 Apr  2 15:02 software_update_plugin.inc.php -> /usr/local/ispconfig/server/plugins-available/software_update_plugin.inc.php
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    edit the settings of a website in ispconfig, e.g. change the quota, press save and then run the server.sh script on the slave and post the output.
     
  14. ikeaboy

    ikeaboy New Member

    Here the output from the slave.

    Code:
    ]# /usr/local/ispconfig/server/server.sh
    PHP Warning:  Module 'apcu' already loaded in Unknown on line 0
    15.04.2015-11:09 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    15.04.2015-11:09 - DEBUG - Unable to register function 'ssl' from plugin 'apache2_plugin' for event 'web_domain_insert'
    15.04.2015-11:09 - DEBUG - Unable to register function 'ssl' from plugin 'apache2_plugin' for event 'web_domain_update'
    15.04.2015-11:09 - DEBUG - Unable to register function 'ssl' from plugin 'apache2_plugin' for event 'web_domain_delete'
    15.04.2015-11:09 - DEBUG - Unable to register function 'insert' from plugin 'apache2_plugin' for event 'web_domain_insert'
    15.04.2015-11:09 - DEBUG - Unable to register function 'update' from plugin 'apache2_plugin' for event 'web_domain_update'
    15.04.2015-11:09 - DEBUG - Unable to register function 'delete' from plugin 'apache2_plugin' for event 'web_domain_delete'
    15.04.2015-11:09 - DEBUG - Unable to register function 'webdav' from plugin 'apache2_plugin' for event 'webdav_user_insert'
    15.04.2015-11:09 - DEBUG - Unable to register function 'webdav' from plugin 'apache2_plugin' for event 'webdav_user_update'
    15.04.2015-11:09 - DEBUG - Unable to register function 'webdav' from plugin 'apache2_plugin' for event 'webdav_user_delete'
    15.04.2015-11:09 - DEBUG - Unable to register function 'web_folder_user' from plugin 'apache2_plugin' for event 'web_folder_user_insert'
    15.04.2015-11:09 - DEBUG - Unable to register function 'web_folder_user' from plugin 'apache2_plugin' for event 'web_folder_user_update'
    15.04.2015-11:09 - DEBUG - Unable to register function 'web_folder_user' from plugin 'apache2_plugin' for event 'web_folder_user_delete'
    15.04.2015-11:09 - DEBUG - Unable to register function 'web_folder_update' from plugin 'apache2_plugin' for event 'web_folder_update'
    15.04.2015-11:09 - DEBUG - Unable to register function 'web_folder_delete' from plugin 'apache2_plugin' for event 'web_folder_delete'
    15.04.2015-11:09 - DEBUG - Unable to register function 'ftp_user_delete' from plugin 'apache2_plugin' for event 'ftp_user_delete'
    15.04.2015-11:09 - DEBUG - Found 1 changes, starting update process.
    15.04.2015-11:09 - 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`,`web_folder`,`system_user`,`system_group`,`hd_quota`,`traffic_quota`,`cgi`,`ssi`,`suexec`,`errordocs`,`is_subdomainwww`,`subdomain`,`php`,`ruby`,`python`,`perl`,`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_key`,`ssl_action`,`stats_password`,`stats_type`,`allow_override`,`apache_directives`,`nginx_directives`,`php_fpm_use_socket`,`pm`,`pm_max_children`,`pm_start_servers`,`pm_min_spare_servers`,`pm_max_spare_servers`,`pm_process_idle_timeout`,`pm_max_requests`,`php_open_basedir`,`custom_php_ini`,`backup_interval`,`backup_copies`,`backup_excludes`,`active`,`traffic_quota_lock`,`fastcgi_php_version`,`proxy_directives`,`last_quota_notification`,`rewrite_rules`,`added_date`,`added_by`) VALUES ('68','16','16','riud','ru','','2','*','','max10.be','vhost','0','name','/var/www/clients/client15/web68','','web68','client15','500','500','n','n','y','0','1','www','fast-cgi','n','n','n','','','','n','','','','','','','','','','','','','webalizer','All','','','y','dynamic','10','2','1','5','10','0','/var/www/clients/client15/web68/web:/var/www/clients/client15/web68/private:/var/www/clients/client15/web68/tmp:/var/www/max10.be/web:/srv/www/max10.be/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin','','none','1','','y','n','','','','','2015-04-15','philipst')
    15.04.2015-11:09 - DEBUG - Processed datalog_id 1598
    15.04.2015-11:09 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    finished.
    PHP Warning:  Module 'apcu' already loaded in Unknown on line 0
    
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, so the complete web module is disabled as well. This server must have been installed in expert mode and it was choosen to not configure web services.

    run:

    ln -s /usr/local/ispconfig/server/mods-available/web_module.inc.php /usr/local/ispconfig/server/mods-enabled/web_module.inc.php
     
  16. ikeaboy

    ikeaboy New Member

    Ok I understand, now it works well !! :)
    Thank you very much for your help and your patience :)
     

Share This Page