Problem with adding clients and website

Discussion in 'Installation/Configuration' started by dsautet, Apr 4, 2012.

  1. dsautet

    dsautet New Member

    Hi,

    When I create one client, I can see that he has been created but nothing is created in /etc/passwd.
    It's the same for the sites. everything is in dbispconfig > web_domain database, but nothing is created on the server in the /var/www/clients folder...

    I search in the ispconfig logfile but nothing interesting here.

    When I execute /usr/local/ispconfig/server/server.sh nothing appears.

    I just find one interesting error in /var/log/apache2/error.log :

    script '/usr/local/ispconfig/interface/web/dashboard/client_list.php' not found or unable to stat, referer: http:/site:8080/index.php

    Is anybody got an idea?

    Thanks in advance!!
     
  2. dsautet

    dsautet New Member

    In fact, I have a client_list.php in the subfolder /usr/local/ispconfig/interface/web/client that I copy in the /usr/local/ispconfig/interface/web

    There are no changes, I don't have the error message anymore but the client or the website don't be add in /etc/passwd
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The client_list.php file is not related in any way to accounts in /etc/passwd. Clients in ispconfig are a virtual construct to organize records in mysql, they have nothing to do with your system configuration and when you add a client, no config files get and shall be written. So if your only problem is that nothing changes in /etc/passwd when you add a client, then your server is working properly.

    A user is added to /etc/passwd when you add a website or when you add a ssh user burt not when you add a client.

    There was never a file with that name in that folder in ispconfig. Your system code must be customized somehow.

    The file client_list.php must be in the folder /usr/local/ispconfig/interface/web/client, copying it to any other folder makes no sense.

    If you like to know why your server process cant write changes, then please follow the debugging instructions from ISPconfig FAQ:

    http://www.faqforge.com/linux/debugging-ispconfig-3-server-actions-in-case-of-a-failure/

    Before you do that, undo all changes that you made like copying ispconfig files to other locations etc. as such changes will make ispconfig to fail.
     
  4. dsautet

    dsautet New Member

    Hello,

    Thanks for your reply but also when I add a website nothing new appear in the file /etc/passwd.

    I have already seen the topic about the debugging mode and run the command /usr/local/ispconfig/server/server.sh but nothing happen.

    Furthermore, I don't have the server.sh cron job, I have to had it or it normally add with the update of ispconfig.

    Thanks
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you follow all instructions incl. to enable debug mode first for the affected node?

    Then ispconfig is not fully installed on your server or someone must have deleted entries from root crontab as ispconfig can not configure your server without it. Please post the output of:

    crontab -l
     
  6. dsautet

    dsautet New Member

    In fact, I was in warning mode so I change it to debug mode.

    Here is my output of crontab -L :
    * * * * * /mnt/muh/y2kupdate >/dev/null 2>&1

    I'm sorry I don't know well IspConfig.

    To launch the command /usr/local/ispconfig/server/server.sh what I have to save if there is a bug? Can I automatically backup my Ispconfig or I need to save my etc folder or any others?

    Thanks Till
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Al ispconfig cronjobs are missing, maybe they got deleted as you adeed the "* * * * * /mnt/muh/y2kupdate >/dev/null 2>&1" cronjob.

    Post the exact output that you get on the screen when you run this command as root.
     
  8. dsautet

    dsautet New Member

    Hello,

    Here is the output :

    /usr/local/ispconfig/server/server.sh
    05.04.2012-12:17 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    05.04.2012-12:17 - DEBUG - Found 2 changes, starting update process.
    05.04.2012-12:17 - DEBUG - Calling function 'update' from plugin 'apps_vhost_plugin' raised by event 'server_update'.
    05.04.2012-12:17 - DEBUG - Calling function 'update' from plugin 'network_settings_plugin' raised by event 'server_update'.
    05.04.2012-12:17 - DEBUG - Changed Network settings
    05.04.2012-12:17 - DEBUG - Calling function 'update' from plugin 'postfix_server_plugin' raised by event 'server_update'.
    05.04.2012-12:17 - DEBUG - Processed datalog_id 756
    05.04.2012-12:17 - DEBUG - Calling function 'update' from plugin 'apps_vhost_plugin' raised by event 'server_update'.
    05.04.2012-12:17 - DEBUG - Calling function 'update' from plugin 'network_settings_plugin' raised by event 'server_update'.
    05.04.2012-12:17 - DEBUG - Changed Network settings
    05.04.2012-12:17 - DEBUG - Calling function 'update' from plugin 'postfix_server_plugin' raised by event 'server_update'.
    05.04.2012-12:17 - DEBUG - Processed datalog_id 757
    05.04.2012-12:17 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    05.04.2012-12:17 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    finished.

    I do it a second time :

    /usr/local/ispconfig/server/server.sh
    05.04.2012-12:19 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    05.04.2012-12:19 - DEBUG - No Updated records found, starting only the core.
    05.04.2012-12:19 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    finished.
     
  9. dsautet

    dsautet New Member

    I add a new client and website.

    Before execute /usr/local/ispconfig/server/server.sh, nothing appear in /etc/passwd but after running this command the website has been adding!!

    And here was the output :

    lea:~# /usr/local/ispconfig/server/server.sh
    05.04.2012-12:29 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    05.04.2012-12:29 - DEBUG - Found 15 changes, starting update process.
    05.04.2012-12:29 - DEBUG - Calling function 'client_delete' from plugin 'apache2_plugin' raised by event 'client_delete'.
    05.04.2012-12:29 - DEBUG - Removed client directory: /var/www/clients/client36
    05.04.2012-12:29 - DEBUG - exec: groupdel client36
    groupdel: cannot remove user's primary group.
    05.04.2012-12:29 - DEBUG - Removed group client36
    05.04.2012-12:29 - DEBUG - Processed datalog_id 758
    05.04.2012-12:29 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
    05.04.2012-12:29 - DEBUG - Calling function 'delete' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
    05.04.2012-12:29 - DEBUG - Removing symlink: /etc/apache2/sites-enabled/100-qsdqsd.fr.vhost->/etc/apache2/sites-available/qsdqsd.fr.vhost
    05.04.2012-12:29 - DEBUG - Removing vhost file: /etc/apache2/sites-available/qsdqsd.fr.vhost
    05.04.2012-12:29 - DEBUG - Removing website: /var/www/clients/client36/web55
    05.04.2012-12:29 - DEBUG - Removing symlink: /var/www/qsdqsd.fr
    05.04.2012-12:29 - DEBUG - Removing website logfile directory: /var/log/ispconfig/httpd/qsdqsd.fr
    05.04.2012-12:29 - DEBUG - Processed datalog_id 759
    05.04.2012-12:29 - DEBUG - Calling function 'client_delete' from plugin 'apache2_plugin' raised by event 'client_delete'.
    05.04.2012-12:29 - DEBUG - Removed client directory: /var/www/clients/client38
    05.04.2012-12:29 - DEBUG - exec: groupdel client38
    groupdel: cannot remove user's primary group.
    05.04.2012-12:29 - DEBUG - Removed group client38
    05.04.2012-12:29 - DEBUG - Processed datalog_id 760
    05.04.2012-12:29 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
    05.04.2012-12:29 - DEBUG - Calling function 'delete' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
    05.04.2012-12:29 - DEBUG - Removing symlink: /etc/apache2/sites-enabled/100-fdsfds.fr.vhost->/etc/apache2/sites-available/fdsfds.fr.vhost
    05.04.2012-12:29 - DEBUG - Removing vhost file: /etc/apache2/sites-available/fdsfds.fr.vhost
    05.04.2012-12:29 - DEBUG - Removing website: /var/www/clients/client38/web56
    05.04.2012-12:29 - DEBUG - Removing symlink: /var/www/fdsfds.fr
    05.04.2012-12:29 - DEBUG - Removing website logfile directory: /var/log/ispconfig/httpd/fdsfds.fr
    05.04.2012-12:29 - DEBUG - Processed datalog_id 761
    05.04.2012-12:29 - DEBUG - Processed datalog_id 762
    05.04.2012-12:29 - DEBUG - Processed datalog_id 763
    05.04.2012-12:29 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    05.04.2012-12:29 - DEBUG - Calling function 'insert' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    05.04.2012-12:29 - DEBUG - Adding the group: client37
    05.04.2012-12:29 - DEBUG - Adding the user: web57
    05.04.2012-12:29 - DEBUG - Creating symlink: ln -s /var/log/ispconfig/httpd/fdsdfsdf.pto /var/www/clients/client37/web57/log
    05.04.2012-12:29 - DEBUG - Creating symlink: ln -s /var/www/clients/client37/web57/ /var/www/fdsdfsdf.pto
    05.04.2012-12:29 - DEBUG - Creating symlink: ln -s /var/www/clients/client37/web57/ /var/www/clients/client0/fdsdfsdf.pto
    05.04.2012-12:29 - DEBUG - exec: chown -R web57:client37 /var/www/clients/client37/web57/web
    05.04.2012-12:29 - DEBUG - exec: chown web57:client37 /var/www/clients/client37/web57/web
    05.04.2012-12:29 - DEBUG - exec: chmod 751 /var/www/clients/client37/web57
    05.04.2012-12:29 - DEBUG - exec: chmod 751 /var/www/clients/client37/web57/*
    05.04.2012-12:29 - DEBUG - exec: chmod 710 /var/www/clients/client37/web57/web
    05.04.2012-12:29 - DEBUG - exec: chmod 777 /var/www/clients/client37/web57/tmp
    05.04.2012-12:29 - DEBUG - exec: chmod 755 /var/www/clients/client37/web57/log
    05.04.2012-12:29 - DEBUG - exec: usermod --groups sshusers web57
    05.04.2012-12:29 - DEBUG - exec: chown web57:client37 /var/www/clients/client37/web57
    05.04.2012-12:29 - DEBUG - exec: chown web57:client37 /var/www/clients/client37/web57/cgi-bin
    05.04.2012-12:29 - DEBUG - exec: chown web57:client37 /var/www/clients/client37/web57/log
    05.04.2012-12:29 - DEBUG - exec: chown web57:client37 /var/www/clients/client37/web57/ssl
    05.04.2012-12:29 - DEBUG - exec: chown web57:client37 /var/www/clients/client37/web57/tmp
    05.04.2012-12:29 - DEBUG - exec: chown -R web57:client37 /var/www/clients/client37/web57/web
    05.04.2012-12:29 - DEBUG - exec: chown web57:client37 /var/www/clients/client37/web57/log/error.log
    05.04.2012-12:29 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/fdsdfsdf.pto.vhost
    05.04.2012-12:29 - DEBUG - Creating symlink: /etc/apache2/sites-enabled/100-fdsdfsdf.pto.vhost->/etc/apache2/sites-available/fdsdfsdf.pto.vhost
    05.04.2012-12:29 - DEBUG - Apache status is: 1
    05.04.2012-12:29 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    05.04.2012-12:29 - DEBUG - Apache online status after restart is: 1
    05.04.2012-12:29 - DEBUG - Processed datalog_id 764
    05.04.2012-12:29 - DEBUG - Calling function 'client_delete' from plugin 'apache2_plugin' raised by event 'client_delete'.
    05.04.2012-12:29 - DEBUG - Removed client directory: /var/www/clients/client37
    05.04.2012-12:29 - DEBUG - exec: groupdel client37
    groupdel: cannot remove user's primary group.
    05.04.2012-12:29 - DEBUG - Removed group client37
    05.04.2012-12:29 - DEBUG - Processed datalog_id 765
    05.04.2012-12:29 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
    05.04.2012-12:29 - DEBUG - Calling function 'delete' from plugin 'apache2_plugin' raised by event 'web_domain_delete'.
    05.04.2012-12:29 - DEBUG - Removing symlink: /etc/apache2/sites-enabled/100-fdsdfsdf.pto.vhost->/etc/apache2/sites-available/fdsdfsdf.pto.vhost
    05.04.2012-12:29 - DEBUG - Removing vhost file: /etc/apache2/sites-available/fdsdfsdf.pto.vhost
    05.04.2012-12:29 - DEBUG - Removing website: /var/www/clients/client37/web57
    05.04.2012-12:29 - DEBUG - Removing symlink: /var/www/fdsdfsdf.pto
    05.04.2012-12:29 - DEBUG - Removing symlink: /var/www/clients/client0/fdsdfsdf.pto
    05.04.2012-12:29 - DEBUG - Removing website logfile directory: /var/log/ispconfig/httpd/fdsdfsdf.pto
    05.04.2012-12:29 - DEBUG - Processed datalog_id 766
    05.04.2012-12:29 - DEBUG - Calling function 'client_delete' from plugin 'apache2_plugin' raised by event 'client_delete'.
    05.04.2012-12:29 - DEBUG - exec: groupdel client39
    groupdel: group client39 does not exist
    05.04.2012-12:29 - DEBUG - Removed group client39
    05.04.2012-12:29 - DEBUG - Processed datalog_id 767
    05.04.2012-12:29 - DEBUG - Processed datalog_id 768
    05.04.2012-12:29 - DEBUG - Processed datalog_id 769
    05.04.2012-12:29 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    05.04.2012-12:29 - DEBUG - Calling function 'insert' from plugin 'apache2_plugin' raised by event 'web_domain_insert'.
    05.04.2012-12:29 - DEBUG - Adding the group: client40
    05.04.2012-12:29 - DEBUG - Adding the user: web58
    05.04.2012-12:29 - DEBUG - Creating symlink: ln -s /var/log/ispconfig/httpd/site.pro /var/www/clients/client40/web58/log
    05.04.2012-12:29 - DEBUG - Creating symlink: ln -s /var/www/clients/client40/web58/ /var/www/site.pro
    05.04.2012-12:29 - DEBUG - Creating symlink: ln -s /var/www/clients/client40/web58/ /var/www/clients/client40/site.pro
    05.04.2012-12:29 - DEBUG - exec: chown -R web58:client40 /var/www/clients/client40/web58/web
    05.04.2012-12:29 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/web
    05.04.2012-12:29 - DEBUG - exec: chmod 751 /var/www/clients/client40/web58
    05.04.2012-12:29 - DEBUG - exec: chmod 751 /var/www/clients/client40/web58/*
    05.04.2012-12:29 - DEBUG - exec: chmod 710 /var/www/clients/client40/web58/web
    05.04.2012-12:29 - DEBUG - exec: chmod 777 /var/www/clients/client40/web58/tmp
    05.04.2012-12:29 - DEBUG - exec: chmod 755 /var/www/clients/client40/web58/log
    05.04.2012-12:29 - DEBUG - exec: usermod --groups sshusers web58
    05.04.2012-12:29 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58
    05.04.2012-12:29 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/cgi-bin
    05.04.2012-12:29 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/log
    05.04.2012-12:29 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/ssl
    05.04.2012-12:29 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/tmp
    05.04.2012-12:29 - DEBUG - exec: chown -R web58:client40 /var/www/clients/client40/web58/web
    05.04.2012-12:29 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/log/error.log
    05.04.2012-12:29 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/site.pro.vhost
    05.04.2012-12:29 - DEBUG - Creating symlink: /etc/apache2/sites-enabled/100-site.pro.vhost->/etc/apache2/sites-available/site.pro.vhost
    05.04.2012-12:29 - DEBUG - Apache status is: 1
    05.04.2012-12:29 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    05.04.2012-12:30 - DEBUG - Apache online status after restart is: 1
    05.04.2012-12:30 - DEBUG - Processed datalog_id 770
    05.04.2012-12:30 - DEBUG - Processed datalog_id 771
    05.04.2012-12:30 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
    05.04.2012-12:30 - DEBUG - Calling function 'update' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
    05.04.2012-12:30 - DEBUG - exec: chmod 751 /var/www/clients/client40/web58
    05.04.2012-12:30 - DEBUG - exec: chmod 751 /var/www/clients/client40/web58/*
    05.04.2012-12:30 - DEBUG - exec: chmod 710 /var/www/clients/client40/web58/web
    05.04.2012-12:30 - DEBUG - exec: chmod 777 /var/www/clients/client40/web58/tmp
    05.04.2012-12:30 - DEBUG - exec: chmod 755 /var/www/clients/client40/web58/log
    05.04.2012-12:30 - DEBUG - exec: usermod --groups sshusers web58
    05.04.2012-12:30 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58
    05.04.2012-12:30 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/cgi-bin
    05.04.2012-12:30 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/log
    05.04.2012-12:30 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/ssl
    05.04.2012-12:30 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/tmp
    05.04.2012-12:30 - DEBUG - exec: chown -R web58:client40 /var/www/clients/client40/web58/web
    05.04.2012-12:30 - DEBUG - exec: chown web58:client40 /var/www/clients/client40/web58/log/error.log
    05.04.2012-12:30 - DEBUG - Writing the vhost file: /etc/apache2/sites-available/site.pro.vhost
    05.04.2012-12:30 - DEBUG - Apache status is: 1
    05.04.2012-12:30 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    05.04.2012-12:30 - DEBUG - Apache online status after restart is: 1
    05.04.2012-12:30 - DEBUG - Processed datalog_id 772
    05.04.2012-12:30 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    05.04.2012-12:30 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    finished.
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, so everything is fine in your server except that you deleted the cron entries. Edit the root crontab with the command:

    crontab -e

    and add the following twolines:

    Code:
    * * * * * /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log
    30 00 * * * /usr/local/ispconfig/server/cron_daily.sh > /dev/null 2>> /var/log/ispconfig/cron.log
    
     
  11. dsautet

    dsautet New Member

    Thank you so much for your help, I was really scared of the problem!!
     
  12. dsautet

    dsautet New Member

    I have juste an another problem :

    When I add the lines you give in crontab -e, and I reload cron the lines disappear, have you got an idea why?

    Thanks
     
  13. dsautet

    dsautet New Member

    I search a little and by remove the following line :
    * * * * * /mnt/muh/y2kupdate >/dev/null 2>&1

    I don't have the problem anymore.

    By the way, I noticed something strange but I don't know if it is the good place to talk about it.

    Indeed when I launch netstat's command I got this :

    tcp 0 1 monsite.fr:61349 Tampa.FL.US.Undern:ircd SYN_SENT

    The best way is ton banish this ip?

    Thanks
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    Both things are quite strange, I recommend that you check your system for rootkits. Run:

    rkhunter --update

    and then

    rkhunter -c
     

Share This Page