document_root not set

Discussion in 'Installation/Configuration' started by Moundy, May 28, 2012.

  1. Moundy

    Moundy New Member

    Hi,

    i got the warning "document_root not set".

    Could you explain me whats going wrong?

    cheers
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if you used the API and have bnot set the docroot for the website corectly.
     
  3. Moundy

    Moundy New Member

    Absolutly right.

    Found and fixed. Thank you Till :)
     
  4. Moundy

    Moundy New Member

    A few times, it appears after deleting a complete account or a website, is it usual?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    No. This can only happen if the site were the users belong to had been created with a empty docroot e.g. by using the api.
     
  6. Moundy

    Moundy New Member


    Also AliasDomains?
     
  7. Moundy

    Moundy New Member

    I have looked into my debug log and this appears every time if a delete a complete customer.

    09.06.2012 15:17 root.*HOST* Debug Calling function 'delete' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_delete'.
    09.06.2012 15:17 root.*HOST* Debug Processed datalog_id 8290
    09.06.2012 15:17 root.*HOST* Debug document_root not set
    09.06.2012 15:17 root.*HOST* Debug Calling function 'delete' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
    09.06.2012 15:17 root.*HOST* Debug Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
    09.06.2012 15:17 root.*HOST* Debug Processed datalog_id 8289
    09.06.2012 15:17 root.*HOST* Debug Removing website logfile directory: /var/log/ispconfig/httpd/testingsite.test.com
    09.06.2012 15:17 root.*HOST* Debug Removing symlink: /var/www/clients/client304/testingsite.test.com
    09.06.2012 15:17 root.*HOST* Debug Removing symlink: /var/www/testingsite.test.com
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you create this website originally with the api or trough the ispconfig interface?
    Whhcih path is in the document_root field in the database of this website?
     
  9. Moundy

    Moundy New Member

  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats ok as subdomains and aliasdomaisn us ethe docroot of the website.

    You might want to add a new website, subdomain and aliasdomain in the ispconfig gui and then compare the records in the database with the ones that you created with your script so that you can adjust the script to submit all api parameters correctly.
     
  11. Moundy

    Moundy New Member

    http://localhostr.com/files/N5b9dco/capture.png

    Thats the only difference. And the problem is, i have tested all functions in my api, from adding to deleting and the problem does not appear after testing every single function. But i think in a few days the error appears again.
     
  12. Moundy

    Moundy New Member

    After testing around a few hourds the error only appear after deleting a client

    here again:

    Code:
    11.06.2012 14:03 	root.testing.com 	Debug 	Calling function 'delete' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_delete'. 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Processed datalog_id 8509 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Ftpuser: deleted. 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Calling function 'delete' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_delete'. 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Processed datalog_id 8508 	
    11.06.2012 14:03 	root.testing.com 	Warning 	document_root not set 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Calling function 'delete' from plugin 'apache2_plugin' raised by event 'web_domain_delete'. 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_delete'. 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Processed datalog_id 8507 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Removing website logfile directory: /var/log/ispconfig/httpd/kamamama.testing.com 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Removing symlink: /var/www/clients/client142/kamamama.testing.com 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Removing symlink: /var/www/kamamama.testing.com 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Removing website: /var/www/clients/client142/web716 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Removing vhost file: /etc/apache2/sites-available/kamamama.testing.com.vhost 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Removing symlink: /etc/apache2/sites-enabled/900-kamamama.testing.com.vhost->/etc/apache2/sites-available/kamamama.testing.com.vhost
    Code:
    11.06.2012 14:03 	root.testing.com 	Debug 	Calling function 'delete' from plugin 'ftpuser_base_plugin' raised by event 'ftp_user_delete'. 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Processed datalog_id 8501 	
    11.06.2012 14:03 	root.testing.com 	Warning 	document_root not set 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Calling function 'delete' from plugin 'apache2_plugin' raised by event 'web_domain_delete'. 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
    Code:
    11.06.2012 14:03 	root.testing.com 	Debug 	Processed datalog_id 8500 	
    11.06.2012 14:03 	root.testing.com 	Warning 	document_root not set 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Calling function 'delete' from plugin 'apache2_plugin' raised by event 'web_domain_delete'. 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_delete'. 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Found 13 changes, starting update process. 	
    11.06.2012 14:03 	root.testing.com 	Debug 	Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock 	
    11.06.2012 14:02 	root.testing.com 	Debug 	Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock 	
    11.06.2012 14:02 	root.testing.com 	Debug 	No Updated records found, starting only the core. 	
    11.06.2012 14:02 	root.testing.com 	Debug 	Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock 	
    11.06.2012 14:01 	root.testing.com 	Debug 	Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock 	
    11.06.2012 14:01 	root.testing.com 	Debug 	No Updated records found, starting only the core. 	
    11.06.2012 14:01 	root.testing.com 	Debug 	Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock 	
    11.06.2012 14:00 	root.testing.com 	Debug 	Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock 	
    11.06.2012 14:00 	root.testing.com 	Debug 	No Updated records found, starting only the core. 	
    11.06.2012 14:00 	root.testing.com 	Debug 	Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
     

Share This Page